The world's largest library of technical interview replays
All interviews below are shared with permission from both participants, with the intent of helping others learn.
Long-form solutions to common interview questions
You are given a path to a file as a string. The path can contain the symbols: “..” for the parent directory and “.” for the current directory. Convert the path into its simplified form.
Find Leaves of Binary Tree
Given a binary tree, extract all the leaves in repeated succession into a list of lists by starting at the bottom and working your way upwards.
Write a program to reverse the given string.
Find Peak Element
Given a two-dimensional binary matrix where 1 represents water and 0 represents land, mutate the matrix in place and return the matrix with the highest peak maximized.
Build a Max Heap From an Array
Given an array of integers, transform the array in-place to a max heap.