top of page


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


Palindrome Number - Leetcode #9 Short & Simple Solution
Given an integer x, return true if x is a palindrome integer.
An integer is a palindrome when it reads the same backward as forward.

Code Recipe
Dec 30, 20216 min read


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


Bubble Sort Algorithm - Sorting Guide 101
Bubble sort works by iterating through the given array multiple times and repeatedly swapping adjacent elements until all elements in the ar

Code Recipe
Dec 24, 20214 min read


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


Binary Search: Searching Made Easy
Binary search works only sorted arrays. Binary search divides the given array in the middle into two halves. Hence the name binary search.

Code Recipe
Dec 18, 20216 min read
bottom of page