Bytedance Software Engineer Coding & Algorithms Interview Questions
Practice 36 real Coding & Algorithms interview questions for Software Engineer roles at Bytedance.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"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."
Reverse Words While Preserving Spaces
Implement a C++ function that reverses the order of words in a string. Assume a word is any maximal sequence of non-space characters, and the input co...
Compute root-to-leaf number sum
This question evaluates understanding of binary tree data structures and the competency to aggregate values along root-to-leaf paths, combining tree t...
Find Minimum Time Across a Grid
This question evaluates algorithm design and problem-solving skills related to grid-based reachability with time-dependent constraints, assessing the ...
Assign Meetings and Find the Most-Used Room
Assign Meetings and Find the Most-Used Room There are n rooms numbered from 0 through n - 1 and meetings [start, end] with distinct start times. Proce...
Solve Search Speed and String Product
You are asked to solve two coding problems. Problem 1: Find the Minimum Constant Processing Speed You are given an array piles, where piles[i] is the ...
Build a validated add-sub calculator
Given a string expression, write a function that validates and evaluates it. The expression represents arithmetic using only non-negative integers and...
Count Similar Photo Groups
You are given n photos labeled 0 to n - 1 and an n x n binary matrix isSimilar. - isSimilar[i][j] = 1 means photo i and photo j are directly similar. ...
Elements Occurring More Than n/3 Times in a Sorted Array
You are given a sorted (non-decreasing) integer array nums of length n, where n >= 3. Return every distinct value that occurs strictly more than n / 3...
Course Schedule Feasibility
This question tests graph traversal skills and the ability to detect cycles in a directed graph, a core competency in algorithm interviews. It falls u...
Find the Best Word for a Query Suffix
Practice a Bytedance coding interview problem focused on find the best word for a query suffix. The prompt emphasizes edge cases, clean implementation...
Shortest Path in a Grid with Limited Obstacle Removal
This question evaluates a candidate's ability to extend classic breadth-first search into a state-augmented shortest-path problem, where the state inc...
Find Words in a Character Grid
Implement findWords(board, words) for a word-search game. You are given an m x n grid of lowercase English letters and a list of lowercase dictionary ...
Implement an LRU Cache
This question evaluates competency in designing efficient stateful data structures, understanding cache eviction policies (least recently used), and m...
Compute square root with precision
Given a non-negative integer val and a non-negative integer precise, compute the square root of val without using any built-in square-root function. R...
Find Missing Ranges with Bounds
Given a sorted array of distinct integers nums and two integers lower and upper that define an inclusive interval [lower, upper], return all maximal r...
Validate a bracket string
Given a string s containing only the characters '(', ')', '{', '}', '[', and ']', determine whether the input string is valid. A string is valid if: 1...