Alkesh

All Blogs

June 25, 2023

Maximum Gap

Given an integer array nums return the maximum difference between two successive elements in its sorted form.

June 22, 2023

Odd Even Linked List

Given the head of a singly linked list, group all the nodes with odd indices together, followed by the nodes with even indices and return the reordered list.

June 15, 2023

Sudoku Solver

Write a program to solve a Sudoku puzzle by filling in the empty cells.

June 11, 2023

Implement LRU Cache

Design a data structure and algorithm to implement an LRU caching strategy.

June 8, 2023

Insert Interval

You are given an array of non-overlapping intervals where intervals[i] = [starti, endi] represent the start, and the end of the ith interval and intervals is sorted in ascending order by starti. Insert a new interval into intervals.

June 1, 2023

Word Ladder - LeetCode

Given are the two distinct words beginWord and endWord, and a list denoting wordList of unique words of equal lengths. Find the length of the shortest transformation sequence from beginWord to endWord using C++, Golang, and JavaScript.

May 28, 2023

Longest Valid Parentheses - LeetCode

Given a string consisting of opening and closing parentheses, find the length of the longest valid parentheses in it using C++, Golang, and JavaScript.

May 14, 2023

LeetCode - Edit Distance

LeetCode - return the minimum number of operations required to convert word1 to word2 using C++, Golang, and JavaScript.

April 20, 2023

LeetCode - Sort list

LeetCode - return the list after sorting it in ascending order using C++, Golang, and JavaScript.

April 6, 2023

LeetCode - Count and Say

LeetCode - return the nth term of the count-and-say sequence using C++, Golang, and JavaScript.

March 30, 2023

LeetCode - Valid Number

LeetCode - return true if a string is a valid number using C++, Golang, and JavaScript.

Showing1of7