top of page
Code Recipe
Dec 29, 20215 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.
15,407 views0 comments
Code Recipe
Dec 24, 20214 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
693 views1 comment
Code Recipe
Dec 22, 20218 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
71,829 views10 comments
Code Recipe
Dec 18, 20216 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.
21,249 views0 comments
Code Recipe
Dec 17, 20215 min read
Middle Value Overflow In Binary Search Explained
Binary search is one of the popular searching algorithms in computer science. If you have gone through the binary search algorithm, you may
1,763 views0 comments
Code Recipe
Dec 12, 20213 min read
Linear Search: Searching Made Easy
Linear search finds the target element by comparing it with all the given elements in the input array, one by one.
350 views0 comments
bottom of page