Sofi Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Format words into wrapped/justified lines
You are given a list of words (strings with no spaces) and an integer maxWidth. Implement text formatting in two variants: Variant A — Basic word wrap...
Implement a multithreaded task executor with semaphores
Design and implement a thread-safe TaskExecutor that limits concurrent work using a semaphore-like mechanism. You are given an interface similar to: -...
Generate all permutations of an array
Problem Given an array nums of distinct integers, return all possible permutations of the array. A permutation is an ordering of all elements in the a...
Count numbers with same popcount up to all-ones bound
Problem For any positive integer n, define f(n) as the smallest integer >= n whose binary representation consists only of 1 bits. Equivalently, if k i...
Find the second most frequent tag
You are given a list of strings in the following repeating order: [id1, name1, tag1, id2, name2, tag2, ...] So every 3 consecutive elements describe o...
Rearrange array to maximize positive prefix sums
Problem You are given an integer array a of length n. You may rearrange the elements in any order. Define the prefix sums of a permutation p as: - pre...
Find maximum-occurring character in a string
Problem Given a non-empty string s, return the character that occurs the most times in s. Tie-breaking If multiple characters have the same maximum fr...
Count completed car journeys from sensor logs
You are given a time-ordered list of highway sensor logs. Each log entry contains: - timestamp (integer; strictly increasing) - sensor_type (one of "E...
Implement chance of a personal best
You are given a simplified model for tracking race times on an obstacle course. - A course has a fixed number of obstacles. - A run records the time s...
Solve Time-Window and Binary Swap Problems
This online assessment contained two coding problems: 1. Maximum requests in a time window You are given a non-decreasing integer array requestTimes...
Design a key-value store with getLast
Design and implement an in-memory key–value store with this API: add(key, value), get(key), remove(key), and getLast(). The operation getLast() must r...
Simulate 1-D collisions and scale to huge inputs
Given an array of integers representing objects on a 1-D track, where the sign indicates direction (positive moves right, negative moves left) and the...
Determine reachability and minimum jumps
Given an array of non-negative integers nums of length n, where nums[i] is the maximum number of steps you can move forward from index i: ( 1) Determi...
Find Kth Unique Maximum
You are given two integer arrays sorted in non-decreasing order. Each array may contain duplicates, and the same value may appear in both arrays. Find...
Implement tree ops and LRU cache
Question Implement set(index) and clear(index) for the leaves of a full binary tree initially filled with 0s, where a parent node becomes 1 only when ...