Magic IndexSorting and SearchingMagic IndexProblem 🤔 Given a sorted array of distinct integers, find the Magic index. Magic Index: Magic…Omer GoldbergFebruary 20, 2020 9 min
Lowest Common Ancestor in BSTBinary Search TreesLowest Common Ancestor in BSTProblem 🤔 Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given…Omer GoldbergFebruary 12, 2020 20 min
Is Subtree of Another TreeRecursionSubtree of Another TreeProblem 🤔 Given two non-empty binary trees s and t , check whether tree t has exactly the…Omer GoldbergFebruary 12, 2020 22 min
Lowest Common Ancestor in Binary TreeBinary TreesLowest Common Ancestor in Binary TreeProblem 🤔 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree…Omer GoldbergFebruary 12, 2020 17 min
Coin ChangeDynamic ProgrammingCoin ChangeProblem 🤔 You are given coins of different denominations and a total amount of money amount. Write…Omer GoldbergJanuary 17, 2020 16 min
Decode WaysDynamic ProgrammingDecode WaysProblem 🤔 A message containing letters from A-Z can be encoded into numbers using the following…Omer GoldbergJanuary 17, 2020 21 min