Crack the Coding and System Design Interview

Latest from the Blog

Determine if String Halves Are Alike

You are given a string s of even length. Split this string into two halves of equal lengths, and let a be the first half and b be the second half.

Keep reading

N-ary Tree Preorder Traversal

Given the root of an n-ary tree, return the preorder traversal of its nodes’ values. Nary-Tree input serialization is represented in their level order traversal. Each group of children is separated by the null value (See the below examples): Example 1: Input: root…

Keep reading


Something went wrong. Please refresh the page and/or try again.