Understanding Iterative vs Recursive Implementation
via Bubble Sort Algorithm

Search for a command to run...
via Bubble Sort Algorithm

LeetCode Problem: Rearrange Words in a Sentence

Extension of Kadane's algorithm in 2D

LeetCode Problem: 319

The order of the statements play an important role

Given a Binary Tree you need to print the top view and bottom view of the Binary Tree. Level order input for the Binary Tree is given. 1. Top view sample input: 1 2 3 4 5 6 -1 -1 -1 -1 -1 -1 -1 sample output: 4 2 1 3 The tree looks like: ...

Given a Binary Tree, you need to print the Left view and right view of a Binary Tree. Level Order input for the Binary Tree is given. 1. Left View sample input: 1 2 3 4 5 -1 6 -1 -1 -1 -1 -1 -1 sample output: 1 2 4 The tree looks like: ...

Problem Statement: Given 2 sorted arrays of different sizes with duplicates, find the union and intersection of the arrays. Let's start off with the intersection of 2 sorted arrays. It is a fairly easy problem but one needs to take care of the edge c...

Let's start off with a basic version of merging two sorted linked lists with the help of 2 pointer heads. Input: l1 = [1,2,4], l2 = [1,3,4] Output: [1,1,2,3,4,4] Let's assume the structure of the node as given below. // Definition for singly-linked ...
