SWE Prep
Subscribe
Sign in
Home
Archive
About
More
return
;
Share this publication
SWE Prep
sweprep.substack.com
Copy link
Twitter
Facebook
Email
SWE Prep
Interview questions straight to your inbox.
By Sameer Khoja · Launched 2 years ago
Subscribe
Login
About
Archive
Top posts
About
Archive
Authors
Login
Let me read it first
Interview questions straight to your inbox.
Your guide for nailing the technical interview
Sameer Khoja
Share
Share this post
Interview questions straight to your inbox.
sweprep.substack.com
Copy link
Twitter
Facebook
Email
New
Top
Count Largest Group
Lessons Learned: HashMaps
Sameer Khoja
Apr 23, 2021
Share
Share this post
Count Largest Group
sweprep.substack.com
Copy link
Twitter
Facebook
Email
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…
Sameer Khoja
Apr 14, 2021
Share
Share this post
Invert Binary Tree
sweprep.substack.com
Copy link
Twitter
Facebook
Email
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…
Sameer Khoja
Apr 7, 2021
Share
Share this post
Divisor Game
sweprep.substack.com
Copy link
Twitter
Facebook
Email
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…
Sameer Khoja
Mar 31, 2021
Share
Share this post
Single Number
sweprep.substack.com
Copy link
Twitter
Facebook
Email
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…
Sameer Khoja
Mar 24, 2021
Share
Share this post
Smallest Range
sweprep.substack.com
Copy link
Twitter
Facebook
Email
Find the Distance Value Between Two Arrays
Lessons Learned: TreeSet, Array Manipulation
Sameer Khoja
Mar 7, 2021
Share
Share this post
Find the Distance Value Between Two Arrays
sweprep.substack.com
Copy link
Twitter
Facebook
Email
Valid Parentheses
Question: Implement an algorithm to print all valid (properly opened and closed) combinations of n pairs of parentheses.
Sameer Khoja
Feb 28, 2021
Share
Share this post
Valid Parentheses II
sweprep.substack.com
Copy link
Twitter
Facebook
Email
See all
SWE Prep
Subscribe
About
Archive
Authors
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts