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
- A Log Nobody Can Quietly Edit (Easy, free): Evidence is only useful in court if you can show nobody altered it.
- Hiding in a Crowd of k (Easy, free): Removing names from a dataset does not make it anonymous.
- Balance Due (Easy): Given [hours, rate, retainer], return how much the client still owes.
- Count Overdue Cases (Easy): Given an array of days left until each deadline, return how many are overdue.
- 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.
- Legal Fee (Easy): Given [hours, hourlyRate], return the total fee: hours times rate.
- 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.
- Total Billable Minutes (Easy): Given an array of logged minutes, return the total.
- Unanimous Verdict? (Easy): Given an array of votes, return true only if every vote is a yes (1).
- Billable Rounding (Medium): Given the minutes worked, round UP to the next multiple of 6 and return that.
- Conflict Check (Medium): Given two lists of names, return true if any name shows up in both.
- Days Remaining (Medium): Given [filedDay, limitDays, today], return how many days are left before the deadline.
- 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.
- Matter Total Fee (Medium): Given two arrays that line up, hours and rates, return the total fee.
- Overdue by Date (Medium): Given a list of deadlines and today's date, return how many deadlines have passed.
- Redaction Count (Medium): Given a list of words and a target word, return how many times the target shows up.
- 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.
- 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.
- 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