All interviews below are shared with permission from both participants, with the intent of helping others learn.
Given an array of integers, transform the array in-place to a max heap.
Given the head of a linked list, reverse the list and return the new head.
Given a 32-bit signed integer, reverse digits of the integer.
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.
Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure.
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.
Interview prep and job hunting are chaos and pain. We can help. Really.