Skip to main content

All Questions

4 votes
2 answers
545 views

Geektrust coding challenge: simulating a marketplace for loans

This is the my solution to a coding challenge in Geektrust. The question is linked here. A shortened version would be as follows. The aim is to simulate a marketplace for banks to lend money to ...
SATW's user avatar
  • 43
5 votes
2 answers
1k views

Calculating the necessary contribution to attain a savings goal with compound interest

This is a problem set from the MIT online course : Suppose you want to set a particular goal, e.g. to be able to afford the down payment in three years. How much should you save each month to ...
Elbasel's user avatar
  • 602
0 votes
2 answers
3k views

Calculating and printing a credit card balance

I am working on a problem that simply calculates and prints the credit card balance. I hope this code can be improved/optimized a lot. I am from a Java background. If it was Java code, I would have ...
srk's user avatar
  • 608
3 votes
1 answer
8k views

Concurrency Bank exercise with multiple accounts

I am doing an exercise in Java concurrency. The problem statement is as follows: Bank holds an array of Accounts. Client do (in a loop) the following operations: (1) work, then sleep for random ...
syntagma's user avatar
  • 231
11 votes
3 answers
2k views

Clean code attempt at ATM problem on codechef.com

The problem asks you to take an integer (debit amount) and a double (credit or initial balance amount) and process the requested debit verifying that 1 it's a multiple of the minimum denomimation ...
M K's user avatar
  • 397
8 votes
1 answer
6k views

Hypothetical SalesTax challenge

I have a small solution to the following hypothetical problem: Basic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical products that are exempt. Import duty ...
manwood's user avatar
  • 259