Alkesh

All blogs

September 18, 2022

LeetCode - Jump Game III

LeetCode - return if it's possible to reach any index with value 0 using C++, Golang, and Javascript.

September 17, 2022

LeetCode - Jump Game II

LeetCode - return the minimum number of jumps to reach the last index using C++, Golang, and Javascript.

September 11, 2022

LeetCode - House Robber III

LeetCode - return the maximum amount of money you can rob when houses in this place form a binary tree using C++, Golang, and Javascript.

September 10, 2022

LeetCode - House Robber II

LeetCode - return the maximum amount of money you can rob when houses are arranged in a circle using C++, Golang, and Javascript.

September 4, 2022

LeetCode - Path Sum II

LeetCode - return all root-to-leaf paths where the sum of the node values in the path equals targetSum using C++, Golang, and Javascript.

September 3, 2022

LeetCode - Path Sum

LeetCode - return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum using C++, Golang, and Javascript.

September 1, 2022

LeetCode - Unique Path II

LeetCode - return the number of possible unique paths a robot can take to reach the bottom-right corner when paths have obstacles.

August 28, 2022

LeetCode - Minimum Path Sum

LeetCode - find a path from top left to bottom right, which minimizes the sum of all numbers along its path using C++, Golang, and Javascript.

August 25, 2022

LeetCode - Permutations

LeetCode - return all the possible permutations of an array with distinct elements using C++, Golang, and Javascript.

August 18, 2022

LeetCode - Combination Sum IV

LeetCode - return the number of possible combinations that add up to the target using C++, Golang, and Javascript.

August 14, 2022

LeetCode - Combination Sum III

LeetCode - return a list of all unique combinations of k numbers that sum up to n using C++, Golang, and Javascript.

August 7, 2022

LeetCode - Combination Sum II

LeetCode - return a list of all unique combinations of candidates where the chosen numbers sum to the target using C++, Golang, and Javascript.

July 31, 2022

LeetCode - Combination Sum

LeetCode - return a list of all unique combinations of candidates where the chosen numbers sum to the target using C++, Golang, and Javascript.

May 1, 2022

LeetCode - Combinations

LeetCode - return all possible combinations of k numbers out of the range [1, n] using C++, Golang, and Javascript.

February 20, 2022

LeetCode - Single Number II

LeetCode - Find the number that appears only once in an array using C++, Golang, and Javascript.

February 12, 2022

LeetCode - Single Number

LeetCode - Find the number which appears only one time in an array using C++, Golang and Javascript.

February 6, 2022

LeetCode - Maximum Product Subarray

LeetCode - find a contiguous non-empty subarray within the array that has the largest product using C++, Golang and Javascript.

February 5, 2022

LeetCode - Contiguous Array

LeetCode - return the maximum length of a contiguous subarray with an equal number of 0 and 1 using C++, Golang and Javascript.

February 3, 2022

LeetCode - Triangle

LeetCode - return the minimum path sum from top to bottom using C++, Golang and Javascript.

January 30, 2022

LeetCode - Subsets II

LeetCode - return all possible subsets (the power set) of array with duplicates using C++, Golang and Javascript.

January 27, 2022

LeetCode - Rotate List

LeetCode - rotate the list to the right by k places using C++, Golang and Javascript.

January 23, 2022

LeetCode - Spiral Matrix II

LeetCode - generate an n x n matrix filled with elements from 1 to n2 in spiral order using C++, Golang and Javascript.

January 20, 2022

LeetCode - Find Peak Element

LeetCode - find element in array which is greater than it's neighbors using C++, Golang and Javascript.

January 16, 2022

LeetCode - Spiral Matrix

LeetCode - for a given matrix m * n return all elements of the matrix in spiral order using C++, Golang and Javascript.

January 15, 2022

LeetCode - Multiply Strings

LeetCode - multiply two non-negative integers represented as strings using C++, Golang and Javascript.

January 13, 2022

LeetCode - Merge Intervals

LeetCode - merge all overlapping intervals and return an array of non-overlapping intervals using C++, Golang and Javascript.

January 9, 2022

LeetCode - Valid Sudoku

LeetCode - determine if 9 x 9 Sudoku board is valid or not using C++, Golang and Javascript.

January 2, 2022

LeetCode - House Robber

LeetCode - return the maximum amount of money you can rob tonight using C++, Golang and Javascript.

December 26, 2021

LeetCode - Largest Number

LeetCode - arrange numbers of array to form largest number using C++, Golang and Javascript.

December 16, 2021

LeetCode - Count Primes

LeetCode - return number of primes strictly less than n using C++, Golang and Javascript.

December 12, 2021

LeetCode - Gas Station

LeetCode - check if we can complete gas station circuit using C++, Golang and Javascript.

November 14, 2021

LeetCode - Symmetric tree

LeetCode - check whether a tree is mirror of itself using C++, Golang and Javascript.

November 7, 2021

LeetCode - Word Search

LeetCode - search a word in 2D grid of characters using C++, Golang and Javascript.

November 4, 2021

LeetCode - Decode Ways

LeetCode - find number of ways in which an encoded message can be decoded using C++, Golang and Javascript.

October 31, 2021

LeetCode - Subsets

LeetCode - Generate all possible subsets using C++, Golang and Javascript.

July 4, 2021

LeetCode - Sort Colors

LeetCode - Sort colors represented as integers using C++, Golang and Javascript.

June 20, 2021

LeetCode - Rotate Image

LeetCode - Rotate Image represented as 2D array using C++, Golang and Javascript.

May 23, 2021

LeetCode Sqrt(x)

LeetCode find square root of positive number x in C++, Golang and Javascript

March 14, 2021

LeetCode 3Sum

LeetCode 3Sum solution in C++ and Golang.