@All Articles

Displaying all 575 posts
POST TITLEPOST DATELABELS
Strings-String Compression [codingblocks]2020-12-14CodingBlock, string
CanYouReadThis? [codingblocks]2020-12-14CodingBlock, string
Strings-Max Frequency Character [codingblocks]2020-12-14CodingBlock, string
Strings-Difference in Ascii Codes [codingblocks]2020-12-14CodingBlock, string
Strings-isPalindrome [codingblocks]2020-12-14CodingBlock, string
Piyush and Magical Park [codingblocks]2020-12-12CodingBlock, Matrix, string
Form Biggest Number [codingblocks]2020-12-12Array, CodingBlock
Maximum Circular Sum [codingblocks]2020-12-12Array, CodingBlock, Dynamic Programming
Maximum Subarray Sum (Minimum Subarray Sum) [codingblocks]2020-12-12Array, CodingBlock, Dynamic Programming
Matrix Search [codingblocks]2020-12-07Array, CodingBlock, Matrix
Spiral Print Clockwise [codingblocks]2020-12-07Array, CodingBlock, Matrix
Find Upper and Lower bound [codingblocks]2020-12-06Array, CodingBlock
Help Rahul To Search [codingblocks]2020-12-06Array, CodingBlock
Sorting In Linear Time [codingblocks]2020-12-06Array, CodingBlock
Rotate Image(N * N Array) [codingblocks]2020-12-06Array, CodingBlock
Kth Root [codingblocks]2020-12-06Array, CodingBlock
Wave Print Column Wise [codingblocks]2020-12-05Array, CodingBlock
Target Sum Triplet [codingblocks]2020-12-04Array, CodingBlock
Sum Of Two Array [codingblocks]2020-12-04Array, CodingBlock
Insertion Sort [codingblocks]2020-12-04Array, CodingBlock
Wave Print Row Wise [codingblocks]2020-12-04Array, CodingBlock
Target Sun Pair [codingblocks]2020-12-04Array, CodingBlock
Bubble Sort [codingblocks]2020-12-04Array, CodingBlock
Binary Search [codingblocks]2020-12-04Array, CodingBlock
Selection Sort [codingblocks]2020-12-04Array, CodingBlock
String Sort [codingblocks]2020-12-03Array, CodingBlock
Sort Game [codingblocks]2020-12-03Array, CodingBlock
Chewbacca and Number [codingblocks]2020-12-01Array, CodingBlock
Prime Visits [codingblocks]2020-12-01Array, CodingBlock
Two Sum2019-11-11Hashing(Map), JAVA, LeetCode Sol.
Jumping in Microservices2019-08-17System Design
Monolithic Architecture 2019-08-15System Design
Load Balancing & Consistent Hashing2019-03-03System Design
What is Scaling of a system?2019-03-02System Design
Check if a number is Palindrome2018-10-02JAVA, maths, string
Find Pair with given Sum in the Array2018-10-02Array, Hashing(Map), JAVA
Write a program to reverse digits of a number and String2018-10-02JAVA, maths, string
Print all possible strings (Function Problem)2017-10-15Array, string
Replace all ‘0’ with ‘5’ in an input Integer (Function Problem)2017-10-14Array
Product array puzzle2017-08-16Array, miscellaneous problems
Roman Number to Integer2017-08-16miscellaneous problems
Maximum of all sub-arrays of size k2017-08-16Array, stack
Two numbers with sum closest to zero2017-08-16Array, miscellaneous problems
Find the Odd Occurence2017-08-16Bit
Maximum Difference2017-08-16Array
Longest Palindrome in a String2017-08-16Dynamic Programming, string
Does robot moves circular2017-08-13miscellaneous problems, string
First non-repeating character in a stream2017-08-13C++ STL, Link_list, miscellaneous problems, string
Next Permutation2017-08-11Array, miscellaneous problems
Subarray with given sum2017-08-07Array, C++ STL, Hashing(Map)
Sort an array of 0s, 1s and 2s ( Dutch National Flag Algorithm )2017-08-07Algorithm, Array
Solve the Sudoku2017-08-07Backtracking, Matrix
N-Queen Problem2017-08-07Backtracking, Matrix
Subarray with 0 sum2017-08-07Array, C++ STL, Hashing(Map)
Largest subarray of 0's and 1's2017-08-04Array, C++ STL, Hashing(Map)
Merge two sorted arrays with O(1) extra space2017-08-04Array
Binary Search Tree Iterator @LeetCode2017-07-04binary tree, C++ STL, LeetCode Sol.
Evaluation of Postfix Expression2017-07-04C++ STL, stack
Infix to Postfix2017-07-04C++ STL, stack
Reverse a string using Stack2017-07-04C++ STL, stack, string
Flood fill Algorithm2017-06-30Algorithm, Graph, Matrix
Transitive closure of a Graph2017-06-30Dynamic Programming, Graph
Floyd Warshall Algorithm 2017-06-30Algorithm, Dynamic Programming
Count the paths2017-06-30Graph
Shortest path from 1 to n2017-06-30Graph, maths
Rat in a Maze Problem2017-06-30Backtracking, Graph, Matrix
Permutations of a given string2017-06-30string
Jumping Numbers2017-06-30maths
Stock buy and sell2017-06-30Array
Finding Number2017-06-30Array, Searching
BFS traversal of graph2017-06-30Algorithm, C++ STL, Graph
Print Common Nodes in BST2017-06-30Array, binary tree
Linked List that is Sorted Alternatingly2017-06-30Link_list
Counting elements in two arrays2017-06-30Array, Searching
Modify Linked List2017-06-30Link_list
Add One Row to Tree @LeetCode2017-06-26binary tree, LeetCode Sol.
Construct String from Binary Tree @LeetCode2017-06-26binary tree, LeetCode Sol.
Subtree of Another Tree @LeetCode2017-06-26binary tree, LeetCode Sol.
Binary Tree Tilt @LeetCode2017-06-26binary tree, LeetCode Sol.
Sliding Window Maximum @LeetCode2017-06-21Array, LeetCode Sol.
Kth Largest Element in an Array @LeetCode2017-06-21Array, Heap, LeetCode Sol.
Does array represent Heap2017-06-21Array, Heap
Can Place Flowers @LeetCode2017-06-20Array, LeetCode Sol.
K-Sum Paths2017-06-20binary tree
Search Insert Position @LeetCode2017-06-18Array, LeetCode Sol.
Third Maximum Number @LeetCode2017-06-18Array, LeetCode Sol.
Move Zeroes @LeetCode2017-06-18Array, LeetCode Sol.
Find All Numbers Disappeared in an Array @LeetCode2017-06-18Array, LeetCode Sol.
Remove Element @LeetCode2017-06-18Array, LeetCode Sol.
Plus One @LeetCode2017-06-17Array, LeetCode Sol.
Two Sum @LeetCode2017-06-17Array, LeetCode Sol.
Reshape the Matrix @LeetCode2017-06-17LeetCode Sol., Matrix
Max Consecutive Ones @LeetCode2017-06-17Array, LeetCode Sol.
AVL Tree Deletion2017-06-15binary tree
Find first and last occurrence of x2017-06-15Array, Searching
Index Of an Extra Element2017-06-15Array, Searching
Find the element that appears once in sorted array2017-06-15Array, Bit, Searching
Who Will Win?2017-06-15miscellaneous problems, Searching
Merge Two Binary Trees @LeetCode2017-06-14binary tree, LeetCode Sol.
Find Largest Value in Each Tree Row @LeetCode2017-06-14binary tree, LeetCode Sol.
Path Sum III @LeetCode2017-06-14binary tree, LeetCode Sol.
Find k-th smallest element in BST2017-06-13binary tree
Find a pair with given target in BST 2017-06-13binary tree
Inorder Successor in BST2017-06-13binary tree
Wildcard Matching @LeetCode2017-06-12Dynamic Programming, LeetCode Sol., string
Circular tour2017-06-12stack
X Total Shapes2017-06-12Graph
Construct Binary Tree from Parent Array2017-06-11Array, binary tree
Operations on Binary Min Heap2017-06-10Heap
Quick Sort ( Array )2017-06-10Algorithm, Array
Merge Sort ( Array )2017-06-10Algorithm, Array
Insertion Sort ( Array )2017-06-10Algorithm, Array
Selection Sort ( Array )2017-06-10Algorithm, Array
Bubble Sort ( Array )2017-06-10Algorithm, Array
Union of Two Linked Lists 2017-06-10Link_list
Intersection of Two Linked Lists 2017-06-10Link_list
Merge Sort for Linked List 2017-06-10Algorithm, Link_list
Trie Data Structure2017-06-09Trie
Trie | (Delete)2017-06-09Trie
Trie | (Insert and Search)2017-06-09Trie
Kadane's Algorithm2017-06-09Algorithm, Dynamic Programming
Insert in a Sorted List2017-06-09Link_list
Pattern Searching : Boyer Moore Algorithm – Bad Character Heuristic2017-06-09Algorithm
Pattern Searching : KMP Algorithm2017-06-09Algorithm
Rod Cutting2017-06-07Dynamic Programming
Sum of bit differences2017-06-07Bit
Longest Palindromic Subsequence2017-06-07Dynamic Programming, string
Reverse Bits @LeetCode2017-06-04Bit, LeetCode Sol.
Single Number II @LeetCode2017-06-04Bit, LeetCode Sol.
Power of Two @LeetCode2017-06-04Bit, LeetCode Sol.
Number of 1 Bits @LeetCode2017-06-04Bit, LeetCode Sol.
Majority Element @LeetCode < Moore’s Voting Algorithm >2017-06-04Algorithm, Bit, LeetCode Sol.
Angle between hour and minute hand2017-06-02maths, miscellaneous problems
Common elements2017-06-02Array, miscellaneous problems
Squares in a Matrix2017-06-02maths, Matrix
Game of XOR2017-06-02Bit
Thief trying to escape2017-06-01miscellaneous problems
Geek and Coffee Shop2017-06-01miscellaneous problems
Binary Tree Paths @LeetCode2017-05-31binary tree, LeetCode Sol.
Number Complement @LeetCode2017-05-31Bit, LeetCode Sol.
Hamming Distance @LeetCode2017-05-31Bit, LeetCode Sol.
Kth Smallest Element in a BST @LeetCode2017-05-31binary tree, LeetCode Sol.
Invert the Bits2017-05-31Bit
Swap bits2017-05-31Bit
Insertion Sort List @LeetCode2017-05-30LeetCode Sol., Link_list
Find the two non-repeating elements in an array of repeating elements2017-05-30Bit, miscellaneous problems
Change Bits2017-05-30Bit
Length of the Longest Consecutive 1s in Binary Representation2017-05-30Bit
Check if a number can be expressed as a sum of consecutive numbers2017-05-30Bit, miscellaneous problems
Replace the Bit2017-05-30Bit
Element that appears once where every element occurs twice2017-05-30Bit
XOR of all elements2017-05-30Bit
Find missing number in another array which is shuffled copy2017-05-30Bit
Binary Tree Right Side View @LeetCode2017-05-28binary tree, C++ STL, LeetCode Sol., stack
Clone a linked list with next and random pointer2017-05-28Link_list
Sum Root to Leaf Numbers @LeetCode2017-05-28binary tree, LeetCode Sol.
Flatten Binary Tree to Linked List @LeetCode2017-05-28binary tree, LeetCode Sol.
Path Sum II @LeetCode2017-05-27binary tree, LeetCode Sol.
Construct Binary Tree from Inorder and Postorder Traversal @LeetCode2017-05-27binary tree, LeetCode Sol.
Construct Binary Tree from Preorder and Inorder Traversal @LeetCode2017-05-27binary tree, LeetCode Sol.
Binary Tree Zigzag Level Order Traversal @LeetCode2017-05-26binary tree, C++ STL, LeetCode Sol., stack
Binary Tree Postorder Traversal @LeetCode2017-05-26binary tree, C++ STL, LeetCode Sol., stack
Binary Tree Preorder Traversal @LeetCode2017-05-26binary tree, C++ STL, LeetCode Sol., stack
Polynomial Addition2017-05-25Link_list
Longest Substring Without Repeating Characters @LeetCode2017-05-22Dynamic Programming, string
Reverse Integer @LeetCode2017-05-22maths
Binary Tree Level Order Traversal @LeetCode2017-05-22binary tree, C++ STL, LeetCode Sol., stack
Validate Binary Search Tree @LeetCode2017-05-20binary tree, LeetCode Sol.
Unique Binary Search Trees @LeetCode2017-05-20binary tree, Dynamic Programming, LeetCode Sol.
Binary Tree Inorder Traversal @LeetCode2017-05-20binary tree, C++ STL, LeetCode Sol., stack
Sum of Left Leaves @LeetCode2017-05-14binary tree, LeetCode Sol., stack
Invert Binary Tree @LeetCode2017-05-14binary tree, LeetCode Sol., stack
Minimum Depth of Binary Tree @LeetCode2017-05-13binary tree, LeetCode Sol.
Balanced Binary Tree @LeetCode2017-05-13binary tree, LeetCode Sol.
Convert Sorted Array to Binary Search Tree @LeetCode2017-05-11binary tree, LeetCode Sol.
Maximum Depth of Binary Tree @LeetCode2017-05-11binary tree, C++ STL, LeetCode Sol., stack
Symmetric Tree @LeetCode2017-05-10binary tree, C++ STL, LeetCode Sol., stack
Same Tree @LeetCode2017-05-10binary tree, C++ STL, LeetCode Sol., stack
Number to words2017-05-08miscellaneous problems, string
Partition List2017-05-04Link_list
Swap Nodes in Pairs2017-05-04Link_list
Merge Sort for Linked Lists2017-05-03Link_list
Longest consecutive sequence in Binary tree2017-04-13binary tree
Sort a stack2017-03-14C++ STL, stack
Repetition of k length substring2017-03-07C++ STL, string
Count distinct elements in every window2017-03-07Array, C++ STL
Largest subarray with 0 sum2017-03-07Array, C++ STL
Floor in a Sorted Array2017-03-07Array, Searching
Print Nodes having K leaves2017-03-03binary tree
1[0]1 Pattern Count2017-02-19string
Generate Binary Numbers2017-02-19C++ STL, miscellaneous problems, stack
Substring - Subsequence problem2017-02-09Dynamic Programming, string
Minimum element in a sorted and rotated array2017-02-09Array, Searching
Get minimum element from stack2017-02-09C++ STL, stack
Relative Sorting2017-02-09Array
Root to leaf paths sum2017-02-05binary tree
Activity Selection2017-02-05Greedy
Find the number of islands2017-02-01Graph
Knapsack with Duplicate Items2017-02-01Dynamic Programming
Pair with greatest product in array2017-02-01Array
Excel Sheet2017-01-28miscellaneous problems
Check if a number can be expressed as x^y2017-01-28maths
Permutations in array2017-01-28Array
Minimize the sum of product2017-01-28Array
Power of 22017-01-28maths
Max Level Sum in Binary Tree2017-01-22binary tree
Topological sort2017-01-21Graph
Detect cycle in an undirected graph2017-01-21Graph
Detect cycle in a directed graph2017-01-21Graph
Depth First Traversal for a Graph2017-01-21Graph
Check if two strings are k-anagrams or not2017-01-21string
Letter Writer2017-01-17Dynamic Programming
Number of 1's in smallest repunits2017-01-17maths
Perfect Numbers2017-01-17maths
Form a palindrome2017-01-13Dynamic Programming
Count Increasing Subsequences2017-01-13Dynamic Programming
Palindromic Strings2017-01-13Dynamic Programming
Lucas Number2017-01-13Dynamic Programming
Longest Common Substring2017-01-12Dynamic Programming, string
Number of Coins2017-01-12Dynamic Programming
Consecutive 1's not allowed2017-01-12Dynamic Programming
Merge two BST 's2017-01-09binary tree
Delete keys in a Linked list2017-01-09Link_list
Reverse each word in a given string2017-01-09string
Count ways to reach the n’th stair2017-01-09Dynamic Programming
Padovan Sequence2017-01-09Dynamic Programming, maths
Maximum Profit2017-01-07Dynamic Programming
Delete a Node in Single Linked List2017-01-07Link_list
Strong Number2017-01-07maths, miscellaneous problems
Find the Closest Element in BST2017-01-06binary tree
Check whether BST contains Dead End2017-01-06binary tree
Kth largest element in BST2017-01-06binary tree
Connect Nodes at Same Level2017-01-05binary tree
Path in Matrix2017-01-05Dynamic Programming, Matrix
Maximum difference between node and its ancestor2017-01-05binary tree
Chocolate Distribution Problem2017-01-05Array, miscellaneous problems
Make Binary Tree from Link List2017-01-04binary tree, C++ STL, Link_list, stack
Diagonal Traversal of Binary Tree2017-01-04binary tree
Largest Number formed from an Array2017-01-04Array, C++ STL, miscellaneous problems, string
Equilibrium index of an array2017-01-04Array
Chocolate Distribution Problem2017-01-04Array, miscellaneous problems
Maximum Index2017-01-02Array
Circular Prime Number2017-01-02maths, miscellaneous problems
Make a Distinct Digit Array2017-01-02Array
Sum of elements between k1'th and k2'th smallest elements2017-01-02Array
Prime Factors and their Powers2016-12-30maths, miscellaneous problems
Sphenic Number2016-12-30maths, miscellaneous problems
Stack using two queues2016-12-30C++ STL, stack
Queue using two Stacks2016-12-30C++ STL, stack
Rotate a 2D array without using extra space2016-12-29Matrix
Minimum steps to get desired array2016-12-29Array, miscellaneous problems
Find Prime numbers in a range2016-12-29maths, miscellaneous problems
Return two prime numbers2016-12-29maths, miscellaneous problems
Next sparse binary number2016-12-29maths
Convert array into Zig-Zag fashion2016-12-29Array, miscellaneous problems
Finding Position2016-12-29maths, miscellaneous problems
Strong Number2016-12-29maths, miscellaneous problems
Three Great Candidates2016-12-28Array, miscellaneous problems
Number of paths2016-12-28Dynamic Programming, Matrix
Move all negative elements to end2016-12-27Array, miscellaneous problems
AVL Tree Insertion2016-12-27binary tree
Max sum path in two arrays2016-12-27Array, miscellaneous problems
Palindromic Array2016-12-27Array, miscellaneous problems
Min Subsets with Consecutive Numbers2016-12-27Array, miscellaneous problems
Find Number of Numbers2016-12-27Array, maths, miscellaneous problems
Maximum value in a bitonic array2016-12-23Array, Searching
Pythagorean Triplet2016-12-23maths, miscellaneous problems
Sum of Middle Elements of two sorted arrays2016-12-23Array
Implement Queue using Linked List2016-12-23Link_list, stack
Check if given four points form a square2016-12-23maths, miscellaneous problems
Print matrix in diagonal pattern2016-12-22Matrix
Longest Consecutive Subsequence2016-12-22Array
Implement Atoi2016-12-22miscellaneous problems, string
Maximize sum after K negations2016-12-21Array, miscellaneous problems
Preorder to Postorder2016-12-17Array, binary tree
Preorder Traversal and BST2016-12-17Array, binary tree
Dr. Strange's powers2016-12-16maths, miscellaneous problems, string
Largest Even Number2016-12-16maths, miscellaneous problems, string
Elements before which no element is bigger2016-12-16Array
Equal Point in Sorted Array2016-12-16Array
Squares in N*N Chessboard2016-12-16maths, miscellaneous problems
Trailing zeroes in factorial2016-12-16maths, miscellaneous problems
Max distance between same elements2016-12-13Array, miscellaneous problems
Check if Linked List is Pallindrome2016-12-10Link_list
Expression Tree2016-11-13binary tree
Punish the Students2016-11-13Array, maths, miscellaneous problems
Repetitive Addition Of Digits2016-11-13maths
Magic Number2016-11-13maths, miscellaneous problems
Implement Queue using array2016-11-07Array, stack
Smallest number divisible by first n numbers2016-11-07maths
Count Squares2016-11-07maths
Student record2016-11-05miscellaneous problems
Print all possible strings2016-11-05string
Class Average2016-11-04maths
Perfect Reversible String2016-11-04string
Search a node in BST2016-11-01binary tree
Numbers containing 0's from 1 to N2016-10-15maths
Equilibrium point2016-10-14Array
Unique rows in boolean matrix2016-10-14Matrix
Maximum of all subarrays of size k2016-10-11Array, Dynamic Programming
Power of Four2016-10-11maths
Check if the number is Fibonacci2016-10-11maths
Nth Fibonacci Number2016-10-11maths
Series GP2016-10-11maths
Binary number to decimal number2016-10-11maths
Repeated sum of digits2016-10-10maths
Bottom View of a Binary Tree2016-10-08binary tree
Print Nodes in Top View of Binary Tree2016-10-08binary tree
Find Maximum value2016-10-06Array
Multiply Array2016-10-06Array
Boolean Matrix Problem2016-10-06Matrix
Subtration in Linked List2016-10-05Link_list
Multiply two linked lists2016-10-05Link_list
Binary representation2016-10-04Bit
1's Complement2016-10-04Bit
The XOR Gate2016-10-04Bit
Combinational Logic2016-10-04Bit
Remove loop in Linked List2016-09-27Link_list
Number of paths in a matrix with k coins2016-09-27Matrix
Find nth element of spiral matrix2016-09-26Matrix
Spirally traversing a matrix 2016-09-26Matrix
Search in a matrix2016-09-26Matrix, Searching
Pascal Triangle2016-09-24Array
Rotate by 90 degree2016-09-23Matrix
Count zeros in a sorted matrix2016-09-23Matrix
Diagonal sum2016-09-23Matrix
Toeplitz matrix2016-09-22Matrix
Implement strstr2016-09-22string
Reverse alternate levels of a perfect binary tree2016-09-22binary tree
Validate an IP Address2016-09-21string
MEGA SALE2016-09-07Array, miscellaneous problems
Special array reversal2016-09-07string
GCD of Array2016-09-07Array, maths
Sum of two numbers represented as arrays2016-09-06Array
Find number of Rotation2016-09-06Array
Good String2016-09-06string
Check if a given Binary Tree is Heap2016-09-06binary tree
Next greater number set digits2016-09-05miscellaneous problems, string
Missing ranges of numbers2016-09-04Array, miscellaneous problems
Reverse array in groups2016-09-04Array
Max value2016-09-04Array
Third largest element ( without sorting )2016-09-04Array
Rearranging array2016-09-03Array
Buildings receiving sunlight2016-09-03Array
Even occurring elements2016-08-30Array
Longest Distinct characters in string2016-08-29string
0 - 1 Knapsack Problem2016-08-29Dynamic Programming
Decimal Equivalent of Binary Linked List2016-08-28Link_list
Sorting Elements of an Array by Frequency2016-08-28Array
Max rope cutting2016-08-27Dynamic Programming
Extreme nodes in alternate order2016-08-26binary tree
Maximum Rectangular Area in a Histogram2016-08-25Array, stack
Rearrange an array with O(1) extra space2016-08-25Array
Minimum of 32016-08-25Array, Dynamic Programming
K’th smallest element2016-08-25Array
Factorials of large numbers2016-08-23Array
Longest Even Length Substring2016-08-22string
Ordering of strings2016-08-21string
Search Pattern2016-08-21string
Replace by X2016-08-21string
Trapping Rain Water2016-08-21Array
Equal Sum2016-08-21Array
Wave Array2016-08-20Array
Find Missing And Repeating2016-08-20Array
Largest Sum Contiguous Subarray - Kadane's Algorithm2016-08-20Array, Dynamic Programming
Largest square formed in a matrix2016-08-18Dynamic Programming
Consecutive elements2016-08-18string
Count ways to N'th Stair(Order does not matter)2016-08-18Dynamic Programming
Count number of hops2016-08-18Dynamic Programming
Check if subtree2016-08-18binary tree
Reach the Nth point2016-08-17Dynamic Programming
Reach a given score2016-08-17Dynamic Programming
Shortest direction2016-08-17string
Run Length Encoding2016-08-17string
Total count 2016-08-16Array
Minimum sum2016-08-16Array
How many pizzas ?2016-08-15Array
Replace all ‘0’ with ‘5’ in an input Integer2016-08-15Array
Largest product of a subarray of size k2016-08-15Array
Minimum number of jumps2016-08-14Dynamic Programming
Leaf at same level2016-08-13binary tree
Coin Change2016-08-13Dynamic Programming
Egg Dropping Puzzle2016-08-12Dynamic Programming
Remove every k'th node2016-08-12Link_list
Count all possible paths from top left to bottom right of a mXn matrix2016-08-11Dynamic Programming
Find if string is K-Palindrome or not 2016-08-11Dynamic Programming
Minimum time to finish tasks without skipping two consecutive2016-08-10Dynamic Programming
Maximum sum increasing subsequence2016-08-10Dynamic Programming
Edit Distance2016-08-10Dynamic Programming
Longest Common Subsequence2016-08-09Dynamic Programming
Linked List in Zig-Zag fashion (Greater Smaller Zig-Zag)2016-08-07Link_list
Rearrange even & odd Nodes in a linked list2016-08-07Link_list
Merge K sorted linked lists2016-08-06Link_list
Structurally Unique BST2016-08-06binary tree
Flattening a Linked List2016-08-05Link_list
Sum of Digits Divisibility2016-08-04maths
Sum of primes2016-08-04maths
Multiples Power2016-08-04maths
Segregate even and odd nodes in a Linked List2016-08-04Link_list
Multiply 2 matrices2016-08-03maths
LCM And HCF 2016-08-03maths
Add Binary Strings2016-08-03string
Remove Duplicates from an Unsorted Sring2016-08-03string
Amend The Sentence2016-08-03string
Reverse words in a given string2016-08-03string
LCM of given array elements2016-08-02Array, maths
Sum of Digits Multiple2016-08-02maths
Area of Rectange, Right Angled Triangle and Circle2016-08-02maths
Swap two numbers2016-08-01maths
Add two fractions2016-08-01maths
The Block Game (CodeChef Problem code: PALL01 )2016-08-01miscellaneous problems
Primality Test ( CodeChef Problem code: PRB01 )2016-08-01miscellaneous problems
Valid Triangles ( CodeChef Problem code: FLOW013 )2016-07-31miscellaneous problems
Second Largest ( CodeChef Problem code: FLOW017 )2016-07-31miscellaneous problems
Case-specific Sorting of Strings2016-07-31string
Subsequence matching 2016-07-31string
First and Last Digit ( codechef Problem code: FLOW004)2016-07-31miscellaneous problems
Remove “b” and “ac” from a given string2016-07-30string
Remove all duplicates from a given string2016-07-30string
Count Substrings Starting And Ending With 12016-07-30string
First Non Repeating Character2016-07-30string
Pattern Searching2016-07-30string
Check Anagram String2016-07-30string
Check String for Binary2016-07-30string
Print a Binary Tree in Vertical Order2016-07-28binary tree
Construct Binary Tree from given Parent Array representation2016-07-28binary tree
Symmetric Tree (Mirror Image of itself)2016-07-27binary tree
Maximum Path Sum in a Binary Tree2016-07-27binary tree
Find Minimum Depth of a Binary Tree2016-07-27binary tree
Check whether a binary tree is a complete tree or not2016-07-26binary tree
Change a Binary Tree so that every node stores sum of all nodes in left subtree2016-07-26binary tree
Morris traversal for Preorder2016-07-25binary tree
Construct a special tree from given preorder traversal2016-07-24binary tree
Construct Special Binary Tree from given Inorder traversal2016-07-24binary tree
Sorted insert for circular linked list2016-07-23Link_list
Occurence of an integer in a Linked List 2016-07-23Link_list
linked list of strings forms a palindrome2016-07-23Link_list
Binary Tree to DLL2016-07-22binary tree
Find the maximum sum leaf to root path in a Binary Tree2016-07-22binary tree
Remove characters from alphanumeric string2016-07-21string
Count Alphabets in String2016-07-21string
Keypad typing2016-07-20string
Extraction of secret message2016-07-20string
Remove spaces from a given string2016-07-20string
Remove characters from the first string which are present in the second string2016-07-20string
Palindrome String2016-07-19string
reverse the given string permanentally.2016-07-19string
Print array having level order in inorder 2016-07-19binary tree
Maximum Occuring Character2016-07-18string
Sorted Linked List to Balanced BST2016-07-18binary tree
Reverse Linked List in given Range m and n 2016-07-18Link_list
Array implementation of queue2016-07-17stack
Check if a binary tree is subtree of another binary tree2016-07-17binary tree
Foldable Binary Trees2016-07-17binary tree
Double Tree2016-07-17binary tree
print all the root-to-leaf paths per line of a Binary Tree2016-07-17binary tree
Morris Traversal ( Threaded Binary Tree )2016-07-17binary tree
Odd even level difference in a Binary tree2016-07-17binary tree
Binary Search Tree : Insertion ( Iterative Function )2016-07-16binary tree
Max Heap Implementation in C++ 2016-07-16miscellaneous problems
Binary Search in an Array2016-07-16Array, miscellaneous problems
Minimum distance between two given nodes of a Binary Tree2016-07-14binary tree
Lowest Common Ancestor in a Binary Tree2016-07-14binary tree
Right View of Binary Tree2016-07-14binary tree
Left View of Binary Tree2016-07-14binary tree
Boundary Traversal of binary tree2016-07-14binary tree
Postorder traversal from given Inorder and Preorder traversals2016-07-13Array, binary tree
Print Common Nodes in Two Binary Search Trees ( intersection of two BSTs )2016-07-13binary tree
Simple Min Heap Implementation in C++ 2016-07-13miscellaneous problems
K’th Largest Element in BST2016-07-13binary tree
Transform a BST to greater sum tree2016-07-12binary tree
Binary Tree to Binary Search Tree Conversion2016-07-12binary tree
Merge Two Balanced Binary Search Trees2016-07-12binary tree
Find a pair with given sum in a Balanced BST2016-07-11binary tree
Total number of divisions2016-07-10Array
Construct BST from given preorder traversal2016-07-10binary tree
Two nodes of a BST are swapped, correct the BST2016-07-10binary tree
Swap 2 nodes in a Binary tree2016-07-10binary tree
Rotate a Linked List by K values2016-07-10Link_list
Pairwise swap elements of a linked list by swapping data2016-07-10Link_list
Find if there is a triplet in a Balanced BST that adds to zero2016-07-10binary tree
Remove BST keys outside the given range2016-07-09binary tree
Square root2016-07-09maths
Immediate Smaller Element2016-07-09Array
Binary Array Sorting2016-07-09Array
Second largest element from an array2016-07-09Array
Sorted Array to Balanced BST2016-07-09Array, binary tree
Find k-th smallest element in BST (Order Statistics in BST)2016-07-08binary tree
Inorder predecessor and successor for a given key in BST2016-07-08binary tree
Find the node with minimum value in a Binary Search Tree2016-07-08binary tree
Maximum width of a binary tree2016-07-08binary tree
Diameter of Binary Tree2016-07-08binary tree
Count BST nodes that lie in a given range2016-07-08binary tree
Average of a stream of numbers2016-07-08Array
Check if an array is sorted2016-07-08Array
Add 1 to a number represented as linked list2016-07-07Link_list
Compare two strings represented as linked lists2016-07-07Link_list
Rearrange a given linked list in-place in Zig Zag2016-07-07Link_list
Remove duplicates from an unsorted linked list2016-07-07Link_list
Intersection Point in Y Shapped Linked Lists2016-07-07Link_list
Delete nodes having greater value on right2016-07-07Link_list
Reverse a Linked List in groups of given size.2016-07-07Link_list
Given a linked list, reverse alternate nodes and append at the end2016-07-06Link_list
Sort linked list which is already sorted on absolute values2016-07-06Link_list
Intersection of two sorted Linked lists2016-07-06Link_list
Given an array, print the Next Greater Element (NGE) for every element2016-07-06Array, C++ STL, stack
Check if an array is sorted2016-07-06Array
Sort a linked list of 0s, 1s and 2s2016-07-06Link_list
Delete N nodes after M nodes of a linked list2016-07-06Link_list
Rearrange/Reorder a given linked list in-place2016-07-06Link_list
Find the nearest smaller numbers on left side in an array2016-07-05Array, stack
Check for balanced parentheses in an expression2016-07-05stack
Implement two stacks in an array2016-07-05Array, stack
Implement Stack using Linked List2016-07-05Link_list, stack
Implement stack using array2016-07-05Array, stack
array rotation2016-07-05Array
Merge 2 sorted linked list in reverse order2016-07-05Link_list
Split a Circular Linked List into two halves2016-07-05Link_list
Reverse a Doubly Linked List2016-07-05Link_list
Delete Middle of Linked List2016-07-04Link_list
Insert a node in Doubly linked list at given position2016-07-04Link_list
Andrash and Stipendium2016-07-04Array, miscellaneous problems
Add all greater values to every node in a given BST2016-07-04binary tree
Delete a node from BST2016-07-04binary tree
Check if a linked list is Circular Linked List2016-07-04Link_list
Sorted Array to Balanced BST2016-07-04binary tree
Inorder Traversal and BST2016-07-04binary tree
Print all nodes at distance k from root of Tree2016-07-04binary tree
determine if a binary tree is height-balanced2016-07-04binary tree
Convert a given tree to its Sum Tree2016-07-03binary tree
Level order traversal in spiral form2016-07-03binary tree
Reverse Level Order Traversal2016-07-03binary tree
Form a Tree from Postorder and Inorder2016-07-03binary tree
Determine if Two Trees are Identical2016-07-03binary tree
Root to leaf path sum equal to a given number in a TREE2016-07-03binary tree
Calculate Size of a tree2016-07-03binary tree
count leaf nodes in a binary tree2016-07-03binary tree
Convert a Binary Tree into its Mirror Tree2016-07-03binary tree
Check if two trees are Mirror2016-07-03binary tree
Check if a given Binary Tree is SumTree2016-07-03binary tree
Print all nodes that don’t have sibling2016-07-03binary tree
Binary Search Tree : Insertion2016-07-03binary tree
Tree: Level Order Traversal2016-07-03binary tree
Tree: Height of a Binary Tree2016-07-03binary tree
Tree: Inorder Traversal2016-07-03binary tree
Tree: Postorder Traversal2016-07-03binary tree
Tree: Preorder Traversal2016-07-03binary tree
Lowest Common Ancestor of a Binary Search Tree2016-07-03binary tree
Check tree for BST2016-07-03binary tree
Merge two sorted linked lists2016-07-02Link_list
Remove Linked List Elements2016-07-02Link_list
Delete Given Node in a Linked List2016-07-02Link_list
Odd Even Linked List2016-07-02Link_list
Remove Nth Node From End of List2016-07-02Link_list
Remove every Duplicates from Sorted List2016-07-01Link_list
Remove Duplicates from Sorted List2016-07-01Link_list
n'th node from end of linked list2016-07-01Link_list
Find Merge Point of Two Lists2016-07-01Link_list
Reverse a doubly linked list2016-07-01Link_list
Insert a node into a sorted doubly linked list2016-07-01Link_list
Detect Loop in linked list2016-07-01Link_list
Facing the sun 2016-07-01Array
Remove Duplicates from Sorted Array2016-07-01Array
Reverse a linked list2016-07-01Link_list
Delete duplicate from list2016-07-01Link_list
Add Two Numbers2016-07-01Link_list
Chandu and Consecutive Letters2016-06-30Array
Terrible Chandu2016-06-30Array
Prateek and his Friends2016-06-30Array
Two Sum2016-06-30Array
Max sum no adjacent2016-06-29Array
Swap kth node2016-06-27Array
Count the numbers2016-06-26Array
Leaders in an array2016-06-25Array
UGLY number2016-06-25Array

Comments

Popular posts from this blog

Count ways to N'th Stair(Order does not matter)

Replace all ‘0’ with ‘5’ in an input Integer

Chocolate Distribution Problem

Remove characters from the first string which are present in the second string

Primality Test ( CodeChef Problem code: PRB01 )