top of page


3 Sum - Leetcode #15 Short & Simple Solution
Given an array of integers, nums, return all the triplets in the given array nums[i], nums[j], nums[k] such that i != j, i != k, and j != k

Code Recipe
Jan 24, 20228 min read
82,400 views
6 comments


Reverse Integer - Leetcode #7 Short & Simple Solution
Given a 32-bit signed integer x, reverse the digits in x and return the result. If after reversing the result goes outside the signed 32-bit

Code Recipe
Dec 31, 20214 min read
23,912 views
1 comment


String To Integer - Leetcode #8 Short & Simple Solution
This is a solution to leetcode 8 problem. Implement myAtoi(string s) function, which converts a string to a 32-bit signed integer.

Code Recipe
Dec 29, 20215 min read
15,536 views
0 comments


3. Longest Substring Without Repeating Characters - LeetCode Fastest Solution
Given a string s, find the length of the longest substring without repeating characters. s consists of English letters, digits, symbols and

Code Recipe
Dec 22, 20217 min read
71,961 views
10 comments


11. Container With Most Water - LeetCode Fastest Solution
Consider you are given n non-negative integers say a1, a2, ..., an, where each element in the array represents a point at coordinate (i, ai)

Code Recipe
Nov 30, 20214 min read
49,241 views
4 comments


Two Sum - Leetcode #1 Short & Simple Solution
Consider you given an array of integers and a target sum, return indices of two numbers in the array such that they add up to target.

Code Recipe
Nov 30, 20214 min read
378,941 views
25 comments
bottom of page