Max TsogtCodility Series. No 001: Binary GapIf you are not familiar with this exercise, go and check the following URL:1 min read·Mar 26, 2022----
Max TsogtLeetcode Series. No 881: Boats to Save PeopleYou are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a…1 min read·Mar 24, 2022----
Max TsogtLeetcode Series. No 283: Moving ZeroesGiven an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements.1 min read·Mar 9, 2022--1--1
Max TsogtLeetcode Series. No 1007: Minimum Domino Rotations For Equal RowIn a row of dominoes, tops[i] and bottoms[i] represent the top and bottom halves of the ith domino. (A domino is a tile with two numbers…2 min read·Mar 6, 2022----
Max TsogtLeetcode Series. No 204: Count PrimesGiven an integer n, return the number of prime numbers that are strictly less than n.1 min read·Feb 13, 2022----
Max TsogtLeetcode Series. No 098: Validate Binary Search TreeGiven a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.2 min read·Feb 12, 2022----
Max TsogtLeetcode Series. No 098: Validate Binary Search TreeGiven the root of a binary tree, determine if it is a valid binary search tree (BST).2 min read·Feb 11, 2022----
Max TsogtLeetcode Series. No 100: Same TreeGiven the roots of two binary trees p and q, write a function to check if they are the same or not.2 min read·Feb 10, 2022----
Max TsogtLeetcode Series. No 102: Binary Tree Level Order TraversalGiven the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by level).1 min read·Feb 9, 2022----
Max TsogtLeetcode Series. No 104: Maximum Depth of Binary TreeGiven the root of a binary tree, return its maximum depth.1 min read·Feb 8, 2022----