Hasanain Alsabonchi·Jan 8, 2024Recursion Theory and Recursive FunctionsRecursion theory is a subfield of Computer Science. Almost everything in programming has a mathematical foundation, including sets…
Hasanain Alsabonchi·Sep 26, 2022Sliding Window TechniqueThe two-pointer method is a helpful technique to keep in mind when working with strings and arrays. It’s a clever optimization that can…
Hasanain Alsabonchi·Mar 31, 2022Max & Min Depth of BSTIn this blog, I will explain how to find the Max and Min depth of the Binary Search Tree(BST). Before diving into the solution let me give…
Hasanain Alsabonchi·Mar 28, 2022Complement DNA strand using JavaThis blog will explain my approach to solving the “complementing DNA strands” problem.
Hasanain Alsabonchi·Mar 9, 2022Binary Search Algorithm Contains a bugYesterday, I came across an interesting article written by Joshua Bloch, Software Engineer at Google. The article is titled “Nearly All…A response icon1A response icon1
Hasanain Alsabonchi·Feb 16, 2022Merge Two Sorted ListsYou are given the heads of two sorted linked lists list1 and list2.Merge the two lists into one sorted list. The list should be made by…
Hasanain Alsabonchi·Feb 1, 2022LeetCode Find if Path Exists in GraphHints n vertices and each vertex is labeled from (0) — (n-1) inclusive.
Hasanain Alsabonchi·Jan 22, 2022Valid AnagramAn Anagram is a word or phrase formed by rearranging the letters of a different word or phrase, typically using all the original letters…