SAURAV AGGARWALContains DuplicateGiven an array of integers, find if the array contains any duplicates.May 18, 2020May 18, 2020
SAURAV AGGARWALPermutation in StringGiven two strings s1 and s2, write a function to return true if s2 contains the permutation of s1. In other words, one of the first…May 18, 20201May 18, 20201
SAURAV AGGARWALOdd Even Linked ListGiven a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number…May 16, 2020May 16, 2020
SAURAV AGGARWALMaximum Sum Circular SubarrayGiven a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C.May 15, 20201May 15, 20201
SAURAV AGGARWALSession vs Token Based AuthenticationHTTP is a stateless protocol. This means that each HTTP request is considered an independent request and no information from the previous…May 15, 2020May 15, 2020
SAURAV AGGARWALImplement Trie (Prefix Tree)Implement a trie with insert, search, and startsWith methods.May 14, 20201May 14, 20201
SAURAV AGGARWALSquares of a Sorted ArrayGiven an array of integers A sorted in non-decreasing order, return an array of the squares of each number, also in sorted non-decreasing…Sep 17, 2019Sep 17, 2019
SAURAV AGGARWALSort Array By ParityGiven an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.Sep 16, 2019Sep 16, 2019
SAURAV AGGARWALRemove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once.Sep 15, 2019Sep 15, 2019
SAURAV AGGARWALMerge Two Sorted ListsMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two…Sep 11, 20191Sep 11, 20191