Find Predecessor in BSTBinary Search TreesFind Predecessor in Binary Search TreeChallenge 🤔 Given a binary search tree and a node in it, find the in-order predecessor of that node…Assaf ElovicDecember 05, 2020 16 min
Squares of Sorted ArraysArraysSquares of Sorted ArraysProblem 🤔 Given an integer array nums sorted in non-decreasing order, return an array of the…Assaf ElovicDecember 05, 2020 7 min
Find Second Largest in BSTBinary Search TreesFind Second Largest in Binary Search TreeProblem 🤔 This is a warm up problem for binary search trees. Let's write an algorithm to find the…Assaf ElovicDecember 05, 2020 13 min
Insert Node into BSTBinary Search TreesInsert Node into Binary Search TreeProblem 🤔 You are given the root node of a binary search tree (BST) and a value to insert into the…Assaf ElovicDecember 05, 2020 8 min
Intersection between 2 ArraysHash TablesFind Intersection Between Two ArraysProblem 🤔 Given two arrays, write a function to compute their intersection. Example 1 Input: nums…Assaf ElovicDecember 05, 2020 7 min
Intersection between 2 Arrays 2Hash TablesFind Intersection Between Two Arrays 2Problem 🤔 Given two arrays, write a function to compute their intersection. Example 1 Input: nums…Assaf ElovicDecember 05, 2020 6 min