Reverse a Doubly Linked List: Iterative, Recursive, and Common Mistakes
6 min read Reverse a Doubly Linked List: Iterative, Recursive, and the Common Mistakes Reversing a doubly linked list (DLL) is a classic […] Read article
// data-structures
Deep dive into essential data structures that every software engineer must master.
6 min read Reverse a Doubly Linked List: Iterative, Recursive, and the Common Mistakes Reversing a doubly linked list (DLL) is a classic […] Read article
6 min read Two Sum: Find a Pair in an Array That Sums to a Target Two Sum is the most-asked coding interview Read article
5 min read Right Rotate an Array by K Elements: Three-Reverse, Cyclic Replacements, and Modulus Tricks Rotating an array by k positions is Read article
4 min read Question: You have two identical eggs. Standing in front of a 100 floor building, you wonder what is the maximum Read article
3 min read Suppose you had a Stack class. Write a new class MaxStack which, in addition to push() and pop(), has a Read article
3 min read A typical programming interview question is “reverse a string, in place”. if you understand pointers, the solution is simple. even Read article
4 min read Problem: you have two jars, 50 red marbles, 50 blue marbles. you need to place all the marbles into the Read article
3 min read dave winer is stuck on a deserted island, with lots of trees, which is very thin and ten miles long Read article
7 min read this is a classic problem which i have heard many times before. this is the “harder” of the two problems, Read article
4 min read You find an old treasure map in your grandma’s attic. the map shows a cannon, a coconut tree, and a Read article
3 min read I offer to play a card game with you using a normal deck of 52 cards. the rules of the Read article
What's missing, wrong, or worth adding? One line helps.
Sent — thank you. We read every one.