RSS Amplifier

Blog

SWE Prep

Interview questions straight to your inbox.

sweprep.substack.comSource feed ↗10 posts

Dormant Last read · last published · next check
Read 4 days ago and current, but nothing has been published for 5 years.

Written by

Latest posts

Count Largest Group

Lessons Learned: HashMaps

Invert Binary Tree

Question: Invert a binary tree.

Divisor Game

Alice and Bob take turns playing a game, with Alice starting first.

Single Number

Question: Given a non-empty array of integers nums, every element appears twice except for one.

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].

Find the Distance Value Between Two Arrays

Lessons Learned: TreeSet, Array Manipulation

Valid Parentheses II

Question: Implement an algorithm to print all valid (properly opened and closed) combinations of n pairs of parentheses.

Median of Two Sorted Arrays

Lessons Learned: Array parsing

Word Ladder

The problem: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end.

Word Break II

Lessons learned: DFS