Parse a Boolean String Value: Truthy/Falsy Conventions
5 min read Parse a Boolean String Value: Truthy/Falsy Conventions Across Languages “Parse a string into a boolean value” sounds trivial — just […] Read article
5 min read Parse a Boolean String Value: Truthy/Falsy Conventions Across Languages “Parse a string into a boolean value” sounds trivial — just […] Read article
6 min read Find the Depth (Height) of a Binary Tree: Recursive, Iterative BFS, and Iterative DFS Finding the depth (also called height Read article
6 min read Check If a Number Is a Power of Two: Bit Manipulation, Math, and Variations “Is this number a power of Read article
6 min read Serialize and Deserialize a Binary Tree: Preorder, Level-Order, and Edge Cases Serialize / deserialize a binary tree (LeetCode #297) is Read article
2 min read What is the most efficient way, memory-wise, to store 1 million phone numbers? Apparently this is an interview question at Read article
4 min read Problem: write the definition for this function without using any built-in functions. if pStr is null, return 0. if pStr Read article
3 min read Two MIT math grads bump into each other at Fairway on the upper west side. They haven’t seen each other Read article
4 min read Problem: you are given a sequence of numbers from 1 to n-1 with one of the numbers repeating only once. Read article
5 min read 100 fogcreek programmers are lined up in a row by an assassin. the assassin puts red and blue hats on them. Read article
3 min read A bad king has a cellar of 1000 bottles of delightful and very expensive wine. A neighbouring queen plots to Read article
5 min read This is a card trick without the trick. there is no sleight of hand, no tricks up my sleeve, no Read article
3 min read a disfunctional family has to cross the river. on one side of the river are a mom and 2 daughters, Read article
2 min read Part I: what is the angle between the minute hand and the hour hand at 3:15 on an analog clock? 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
2 min read It’s the middle ages, you’re travelling across europe and you want to find the way to vienna. you come to Read article