All puzzles › Law

Law Practice Problems

19 puzzles (9 easy, 8 medium, 2 hard), 2 free, in Python, JavaScript and C++.

Billing, conflict checks and case logic, one puzzle at a time.

The puzzles, easiest first

  1. A Log Nobody Can Quietly Edit (Easy, free): Evidence is only useful in court if you can show nobody altered it.
  2. Hiding in a Crowd of k (Easy, free): Removing names from a dataset does not make it anonymous.
  3. Balance Due (Easy): Given [hours, rate, retainer], return how much the client still owes.
  4. Count Overdue Cases (Easy): Given an array of days left until each deadline, return how many are overdue.
  5. Is Quorum Met? (Easy): Given how many people showed up, the total number of seats, and the fraction needed, return true if there's a quorum.
  6. Legal Fee (Easy): Given [hours, hourlyRate], return the total fee: hours times rate.
  7. Statute Deadline (Easy): Given the day of an incident and the number of days allowed to file, return the last day a claim is still valid.
  8. Total Billable Minutes (Easy): Given an array of logged minutes, return the total.
  9. Unanimous Verdict? (Easy): Given an array of votes, return true only if every vote is a yes (1).
  10. Billable Rounding (Medium): Given the minutes worked, round UP to the next multiple of 6 and return that.
  11. Conflict Check (Medium): Given two lists of names, return true if any name shows up in both.
  12. Days Remaining (Medium): Given [filedDay, limitDays, today], return how many days are left before the deadline.
  13. Does the Ruling Pass? (Medium): Given an array of votes, 1 for yes and 0 for no, return true only if yes wins a STRICT majority.
  14. Matter Total Fee (Medium): Given two arrays that line up, hours and rates, return the total fee.
  15. Overdue by Date (Medium): Given a list of deadlines and today's date, return how many deadlines have passed.
  16. Redaction Count (Medium): Given a list of words and a target word, return how many times the target shows up.
  17. Verdict Reached? (Medium): Given jury votes, 1 for guilty and 0 for not guilty, return "guilty" if more than half voted guilty, "acquit" if more than half voted not guilty, and "hung" otherwise.
  18. Cross-Matter Conflict (Hard): Given a list of matters, each with a list of party names, return true if any party shows up in two different matters.
  19. Schedule Conflict (Hard): Given a list of [start, end] bookings, return true if any two overlap.

Practice another pattern

Or browse by subject

Browse all 676 puzzles