All puzzles › Business
Business Practice Problems
21 puzzles (8 easy, 10 medium, 3 hard), 4 free, in Python, JavaScript and C++.
Profit, payroll, inventory and cash-flow turned into puzzles.
The puzzles, easiest first
- A Market With No Market Maker (Easy, free): A decentralized exchange has no order book.
- Everyone Owes Everyone (Easy, free): Banks owe each other money all day long.
- Apply Discount (Easy): Given [price, percentOff], return the price after the discount.
- Gross Margin (Easy): Given revenue and the cost of goods sold, return the gross margin as a percentage, rounded to 1 decimal.
- Items to Reorder (Easy): Given stock levels and a reorder threshold, return how many products are below the threshold.
- Markup Price (Easy): Given [cost, markupPercent], return the selling price, rounded to a whole number.
- Net Profit (Easy): Given [revenue, costs], return the profit: revenue minus costs.
- Total Payroll (Easy): Given an array of salaries, return the total.
- Fill the Order, Cheapest First (Medium, free): A stock exchange keeps an order book of sell offers, each one a price and a number of shares, sorted from cheapest to dearest.
- Which Shares Did You Sell? (Medium, free): You bought shares at different prices over time, and now you sell some.
- Break-Even Units (Medium): Given [fixedCost, price, unitCost], return how many units you have to sell to cover the fixed cost.
- Cash Runway (Medium): Given [cash, monthlyBurn], return how many full months the cash will last.
- Compound Interest (Medium): Given a starting amount, a yearly rate as a decimal, and a number of years, return the final amount, rounded to 2 decimals.
- Inventory Value (Medium): Given two arrays that line up, quantities and prices, return the total value of the stock.
- Lowest Cash Balance (Medium): Given a list of deposits and withdrawals, starting from a balance of 0, return the lowest the balance ever gets.
- Net Present Value (Medium): Given a discount rate and a list of yearly cash flows, starting with year 0, return the net present value, rounded to 2 decimals.
- Payback Period (Medium): Given what an investment cost and a list of monthly cash returns, return the first month (counting from 1) where the running total covers the cost.
- Profit Margin (Medium): Given [revenue, profit], return the profit margin as a percentage, rounded to a whole number.
- Best Month Profit (Hard): Given two arrays that line up, monthly revenue and monthly cost, return the biggest profit from any single month.
- Break-Even Month (Hard): Given each month's profit or loss, return the first month where the RUNNING TOTAL goes above 0, counting months from 1.
- Months to Double (Hard): Given a monthly growth rate as a percentage, return how many months until an amount doubles.
Practice another pattern
Or browse by subject
Browse all 676 puzzles