A problem library by pattern
153 algorithm problems across 18 patterns, plus 25 Terraform tasks, in Easy, Medium and Hard. Each one has 3 hints and a full solution.
See the libraryPractice the problems. Then practice the interview.
OphyAI Coding Practice is a practice room for coding interview prep. Solve 153 algorithm problems across 18 patterns in Python or JavaScript, plus 25 Terraform tasks. Open hints one at a time, ask an AI coach to check your plan and review your code, then run a mock coding interview with a voice AI interviewer.
Free account: 4 sample problems. Pro ($29 a month) or Premium ($59 a month): the full library and the coach, with no credits per problem.
One pass. Keep a map from value to index. For each value, check if target minus value is already in the map.
That plan works and meets the target: O(n) time and O(n) space. Before you code, say why you check the map before you store the value. Then try [4, 4] with a target of 8 in your head.
def pair_sum(nums: list[int], target: int) -> list[int]: seen = {} for i, value in enumerate(nums): need = target - value if need in seen: return [seen[need], i] seen[value] = i return []Learn the patterns, solve problems with real tests, get feedback on your plan and your code, then sit a full mock technical interview. It all lives in one tab.
153 algorithm problems across 18 patterns, plus 25 Terraform tasks, in Easy, Medium and Hard. Each one has 3 hints and a full solution.
See the libraryIt checks your plan before you code, points at the bug when a test fails, and reviews your code once it passes. It never hands over the answer.
How a session worksA timed round with two problems and a voice AI interviewer. You finish with a scorecard and three fixes for next time.
See the mock roundA coding streak, a heatmap of your last 120 days, progress for each pattern and achievements as you go.
See your progress viewProblems are grouped by the pattern that solves them, so you learn the idea once and use it again. Filter by pattern, level, company or status, or search by name.
Every problem is written by OphyAI, with our own tests and solutions. "Also known as" shows the classic name, so you know which well-known problem it matches.
Company tags show where we think a problem type comes up. They are our judgment, not company question lists. Filter by a company to focus your prep.
One problem, the same for everyone, every day. A quick way to keep your streak going when you only have a few minutes.
Write the Terraform for a real-world ask, such as a private bucket for app logs or a VPC with public and private subnets. Tasks use the AWS provider 5.x. Each one lists its requirements, and your code is checked against every one of them. It is not a real terraform plan or apply, and nothing is created in an AWS account.
Getting ready for a DevOps round? Read our Terraform interview questions guide.
Example requirements from the free task: versioning is turned on for the bucket, all four public access settings are blocked, and the bucket ARN is output as bucket_arn.
New to patterns? Start with our guide to coding interview patterns.
A practice session works the way a good interview does: you say your plan, write the code, test it, and talk about the cost. The coach helps at each step without giving you the answer.
Choose from the library or the problem of the day. Pick Python or JavaScript. The starter code is ready.
Type your approach in a few lines and press Check my plan. The coach tells you if it works, without writing code.
Your code runs in the browser. Run checks the sample tests. Submit runs every test.
Each problem has 3 hints. They open one at a time, so you only see as much as you need.
Why is it failing uses your last run to point at the bug. Review my code gives a verdict, your Big O against the target, and the edge cases.
Once every test passes, the solution opens: how to solve it, the target time and space, code in both languages, and "If they ask next" follow-up questions.
You can open it any time. The problem is marked as revealed and goes on your Worth a retry list, so you come back and solve it on your own later. Pro and Premium include 30 coach requests a day; the free sample problems include 3 a day.
A mock coding round is 45 or 60 minutes with two problems picked for your level, a voice AI interviewer (typing always works too) and a scorecard for problem solving, coding, correctness, complexity, testing and communication.
| Level | Problems | Bar |
|---|---|---|
| Junior | Two easy problems | 65 |
| Mid level | One easy, one medium | 70 |
| Senior | One medium, one hard | 80 |
The bar is OphyAI's own benchmark for each level, not any company's hiring bar. Each round uses 20 credits on Pro or Premium.
Start a mock roundSee what you have done, and what to do next.
The library covers the classic questions that come up in coding interviews. Each one has starter code, tests and a solution in both Python and JavaScript. Here are 12 of them, by our name and the classic name.
| Problem | Also known as | Pattern | Level |
|---|---|---|---|
| Pair with target sum | Two Sum | Arrays and hashing | Easy |
| Product of the others | Product of Array Except Self | Arrays and hashing | Medium |
| Balanced brackets | Valid Parentheses | Stack | Easy |
| Longest stretch without repeats | Longest Substring Without Repeating Characters | Sliding window | Medium |
| Triplets that cancel out | 3Sum | Two pointers | Medium |
| Search a rotated list | Search in Rotated Sorted Array | Binary search | Medium |
| Reverse a chain of nodes | Reverse Linked List | Linked lists | Easy |
| Recent items cache | LRU Cache | Linked lists | Medium |
| Layer by layer | Binary Tree Level Order Traversal | Trees | Medium |
| Count the landmasses | Number of Islands | Graphs | Medium |
| Merge overlapping ranges | Merge Intervals | Intervals | Medium |
| Fewest coins for an amount | Coin Change | 1D dynamic programming | Medium |
Coding Practice is included on Pro and Premium, with no credits per problem. Free accounts can try 4 problems.
| Free account | 4 sample problems: Balanced brackets, Pair with target sum, Tallest branch, and the Terraform task Private bucket for app logs. 3 coach requests a day on them. |
|---|---|
| Pro | $29 a month with 300 credits, or $278 a year. The full library, the coach on every problem (30 requests a day) and mock rounds. |
| Premium | $59 a month with 500 credits, or $566 a year. Everything in Pro, plus Coding Interview for the live round and the other Premium tools. |
| Mock coding round | 20 credits a round, on Pro or Premium |
| Interview Passes and the Copilot trial | Do not unlock Coding Practice |
Credits are shared with Interview Copilot and the other tools. See pricing
Coding Practice is for getting ready before the interview. For help in the live round, Premium has Coding Interview.
Getting ready for a first technical interview or an internship screen, and want a plan to follow.
After a few years in one job, the patterns need to come back fast.
You want a coach that explains why a plan works, not just a list of answers.
The Terraform track covers the infrastructure tasks that show up in those interviews.
The mock round makes you explain your thinking out loud, with a timer running.
153 algorithm problems, grouped by pattern, is a set you can actually work through.
Comparing practice sites? See our honest list of LeetCode alternatives, or read about Coding Interview for the live round.
Coding Practice is a place to practice for coding interviews. It has 178 problems: 153 algorithm problems across 18 patterns and 25 Terraform tasks, in Easy, Medium and Hard. You write code in an editor in your browser, run tests, open hints one at a time, and ask an AI coach to check your plan or review your code. When you feel ready, a mock coding round puts you in a timed interview with a voice AI interviewer and ends with a scorecard.
No. Every problem is written in our own words, with our own tests and solutions, and OphyAI is not tied to LeetCode in any way. Many interview problems have a well-known classic name, so each problem shows it under "Also known as". That way you can tell, for example, that "Pair with target sum" is the problem people call Two Sum.
Python and JavaScript for the 153 algorithm problems. You can switch between them on any problem, and the starter code and the solution come in both. The 25 Terraform tasks use Terraform with the AWS provider 5.x. No other languages are available.
The coach has three buttons. Check my plan reads the approach you typed and tells you if it works, without writing code. Why is it failing uses your last run to point at the bug. Review my code gives a verdict, your Big O against the target, and the edge cases to think about. You can also ask it any question about the problem. It does not hand over the full solution before you solve the problem or choose to see the solution. Pro and Premium include 30 coach requests a day.
A mock coding round is a 45 or 60 minute practice interview with two problems picked for your level. Junior gets two easy problems, Mid level gets one easy and one medium, and Senior gets one medium and one hard. A voice AI interviewer asks for your approach, reacts to your test runs and asks follow-ups. You can talk hands free, hold to talk, or type. You can also pick a company style. The round ends with a scorecard. Each round uses 20 credits on Pro or Premium.
An overall score from 0 to 100 next to the bar for your level, six skill scores (problem solving, coding, correctness, complexity, testing and communication), how many tests each problem passed and how long it took, three fixes for next time, the moments that mattered, and the patterns to practice next. The scorecard is an AI estimate, and the bar for each level is OphyAI's own benchmark, not any company's hiring bar.
Yes. Anyone with a free OphyAI account can open 4 sample problems: Balanced brackets, Pair with target sum, Tallest branch and the Terraform task Private bucket for app logs, with 3 coach requests a day on them. The full library, the coach on every problem and mock rounds come with Pro ($29 a month) or Premium ($59 a month), with no credits per problem. Interview Passes and the Copilot trial do not unlock Coding Practice.
Each Terraform task lists its requirements, such as "Versioning is turned on for the bucket", and your code is checked against each one. It is not a real terraform plan or apply, and nothing is created in an AWS account. The tasks use the AWS provider 5.x and cover variables and outputs, storage, networking, compute, IAM and security, and modules.
Coding Practice is for getting ready before the interview: problems, hints, a coach and mock rounds. Coding Interview is a separate Premium tool for the live technical round: you screenshot the problem and get an approach and working code beside your editor. Practice is included on Pro and Premium; Coding Interview is on Premium only.
Coding Practice runs in your web browser at app.ophyai.com. The OphyAI desktop app for Mac and Windows links to it. It is not in the iPhone or Android app.
Start with the 4 free problems. When you are ready, the full library, the coach and mock rounds come with Pro.