SWE Prep

Home
Archive
About
Interview questions straight to your inbox.
Your guide for nailing the technical interview
May 18, 2020 • 
Sameer Khoja
New
Top
Count Largest Group
Lessons Learned: HashMaps
Apr 23, 2021 • 
Sameer Khoja
Invert Binary Tree
Question: Invert a binary tree. Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 Solution Approach 1: Recursive The inverse of an…
Apr 14, 2021 • 
Sameer Khoja
Divisor Game
Alice and Bob take turns playing a game, with Alice starting first. Initially, there is a number N on the chalkboard. On each player's turn, that player…
Apr 7, 2021 • 
Sameer Khoja
Single Number
Question: Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. Solution Approach 1: Hash Table We…
Mar 31, 2021 • 
Sameer Khoja
Smallest Range
Given an array A of integers, for each integer A[i] we may choose any x with -K <= x <= K, and add x to A[i]. After this process, we have some array B…
Mar 24, 2021 • 
Sameer Khoja
Find the Distance Value Between Two Arrays
Lessons Learned: TreeSet, Array Manipulation
Mar 7, 2021 • 
Sameer Khoja
Valid Parentheses II
Question: Implement an algorithm to print all valid (properly opened and closed) combinations of n pairs of parentheses.
Feb 28, 2021 • 
Sameer Khoja
SWE Prep
SWE Prep
Interview questions straight to your inbox.

SWE Prep

AboutArchiveSitemap
Share this publication

SWE Prep

sweprep.substack.com
SWE Prep Logo

SWE Prep

Interview questions straight to your inbox.

By Sameer Khoja
· Launched 3 years ago
By registering you agree to Substack's Terms of Service, our Privacy Policy, and our Information Collection Notice
© 2023 Sameer Khoja
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing