1. Remove duplicates from a given string
  2. Given only a pointer/reference to a node to be deleted in a singly linked list, how do you delete it?
  3. Detect loop in a linked list
  4. Write a Program to Find the Maximum Depth or Height of a Tree
  5. Convert a Binary Tree into its Mirror Tree
  6. Write a function to get the intersection point of two Linked Lists
  7. Given a linked list which is sorted, how will you insert in sorted way
  8. Compute the minimum or maximum of two integers without branching
  9. A program to check if a binary tree is BST or not
  10. Merge two sorted linked lists
  11. Maximum and minimum of an array using minimum number of comparisons
  12. Queue using Stacks
  13. Remove duplicates from a sorted linked list
  14. Reverse a Doubly Linked List
  15. Construct Tree from given Inorder and Preorder traversals
  16. Maximum difference between two elements such that larger element appears after the smaller number
  17. Check for balanced parentheses in an expression
  18. Count of Binary Digit numbers smaller than N
  19. Delete alternate nodes of a Linked List
  20. Find the two repeating elements in a given array
  21. Reverse a Linked List in groups of given size | Set 1
  22. Evaluation order of operands
  23. Find duplicates in O(n) time and O(1) extra space | Set 1
  24. Program for Fibonacci numbers
  25. Print a given matrix in spiral form
  26. Sliding Window Maximum (Maximum of all subarrays of size k)
  27. Reverse alternate K nodes in a Singly Linked List
  28. Segregate even and odd nodes in a Linked List
  29. Detect and Remove Loop in a Linked List
  30. Find whether an array is subset of another array | Added Method 3
  31. Sudoku | Backtracking-7
  32. Smallest of three integers without comparison operators
  33. Check whether two strings are anagram of each other
  34. Find a triplet that sum to a given value
  35. K'th smallest element in BST using O(1) Extra Space
  36. Find the smallest positive number missing from an unsorted array | Set 1
  37. Find four elements that sum to a given value | Set 2 ( O(n^2Logn) Solution)
  38. Find the element that appears once
  39. Lexicographic rank of a string
  40. Given a sequence of words, print all anagrams together | Set 2
  41. Transitive closure of a graph
  42. Sort a linked list of 0s, 1s and 2s
  43. The Stock Span Problem
  44. Largest Independent Set Problem | DP-26
  45. Find multiplication of sums of data of leaves at same levels
  46. Tug of War
  47. Check whether a given graph is Bipartite or not
  48. QuickSort on Doubly Linked List
  49. Dice Throw | DP-30
  50. Swap Kth node from beginning with Kth node from end in a Linked List
  51. Remove "b" and "ac" from a given string
  52. Iterative Method to find Height of Binary Tree
  53. Check for Identical BSTs without building the trees
  54. QuickSort on Singly Linked List
  55. How to check if a given point lies inside or outside a polygon?
  56. Merge k sorted arrays | Set 1
  57. Difference between sums of odd level and even level nodes of a Binary Tree
  58. Print Postorder traversal from given Inorder and Preorder traversals
  59. Check if all leaves are at same level
  60. Extract Leaves of a Binary Tree in a Doubly Linked List
  61. Find the first non-repeating character from a stream of characters
  62. Find next right node of a given key
  63. Splay Tree | Set 1 (Search)
  64. Find LCA in Binary Tree using RMQ
  65. Remove minimum elements from either side such that 2*min becomes more than max
  66. Search in a Row-wise and Column-wise Sorted 2D Array using Divide and Conquer algorithm
  67. Program for nth Catalan Number
  68. Boolean Parenthesization Problem | DP-37
  69. Channel Assignment Problem
  70. Find next greater number with same set of digits
  71. Shortest path with exactly k edges in a directed and weighted graph
  72. Pattern Searching using a Trie of all Suffixes
  73. Mobile Numeric Keypad Problem
  74. Snake and Ladder Problem
  75. Convert a Binary Tree to Threaded binary tree | Set 1 (Using Queue)
  76. Multiply two polynomials
  77. K'th Smallest/Largest Element in Unsorted Array | Set 1
  78. K'th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
  79. K'th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
  80. Check a given sentence for a given set of simple grammer rules
  81. K'th Smallest/Largest Element in Unsorted Array | Set 3 (Worst Case Linear Time)
  82. Flood fill Algorithm - how to implement fill() in paint?
  83. Check if a given array contains duplicate elements within k distance from each other
  84. Find a common element in all rows of a given row-wise sorted matrix
  85. Rearrange an array such that 'arr[j]' becomes 'i' if 'arr[i]' is 'j' | Set 1
  86. Vertex Cover Problem | Set 2 (Dynamic Programming Solution for Tree)
  87. Find number of days between two given dates
  88. Find the longest substring with k unique characters in a given string
  89. Swap nodes in a linked list without swapping data
  90. Merge Sort for Doubly Linked List
  91. How to handle duplicates in Binary Search Tree?
  92. Select a Random Node from a Singly Linked List
  93. Sort an almost sorted array where only two elements are swapped
  94. Remove spaces from a given string
  95. Count total number of N digit numbers such that the difference between sum of even and odd digits is 1
  96. Print string of odd length in 'X' format
  97. Find the largest rectangle of 1's with swapping of columns allowed
  98. Find all possible outcomes of a given expression
  99. Maximum weight transformation of a given string
  100. Given an array of pairs, find all symmetric pairs in it
  101. Longest Repeating Subsequence
  102. How to check if a given array represents a Binary Heap?
  103. Find minimum possible size of array with given rules for removing elements
  104. Find Minimum Depth of a Binary Tree
  105. Range Minimum Query (Square Root Decomposition and Sparse Table)
  106. Print all Jumping Numbers smaller than or equal to a given value
  107. Reorder an array according to given indexes
  108. Combinatorial Game Theory | Set 3 (Grundy Numbers/Nimbers and Mex)
  109. Merge two sorted linked lists such that merged list is in reverse order
  110. Count number of squares in a rectangle
  111. Print individual digits as words without using if or switch
  112. Determinant of a Matrix
  113. Merge two sorted arrays with O(1) extra space
  114. Adjoint and Inverse of a Matrix
  115. Count Integral points inside a Triangle
  116. Lagrange's Interpolation
  117. Form minimum number from given sequence
  118. How to avoid overflow in modular multiplication?
  119. 1's and 2's complement of a Binary Number
  120. Check whether given degrees of vertices represent a Graph or Tree
  121. Bin Packing Problem (Minimize number of used Bins)
  122. Count numbers having 0 as a digit
  123. Printing Paths in Dijkstra's Shortest Path Algorithm
  124. Querying maximum number of divisors that a number in a given range has
  125. Construct Ancestor Matrix from a Given Binary Tree
  126. Point arbit pointer to greatest value right side node in a linked list
  127. Non-recursive program to delete an entire binary tree
  128. GCDs of given index ranges in an array
  129. Common elements in all rows of a given matrix
  130. Sort linked list which is already sorted on absolute values
  131. Minimax Algorithm in Game Theory | Set 3 (Tic-Tac-Toe AI - Finding optimal move)
  132. Rearrange array in alternating positive & negative items with O(1) extra space | Set 2
  133. Printing Shortest Common Supersequence
  134. Maximum product of a triplet (subsequnece of size 3) in array
  135. Find maximum length Snake sequence
  136. Find smallest range containing elements from k lists
  137. Find if string is K-Palindrome or not | Set 1
  138. Delete middle of linked list
  139. Check if a linked list is Circular Linked List
  140. Longest Common Prefix using Word by Word Matching
  141. Find frequency of each element in a limited range array in less than O(n) time
  142. Number of ways to calculate a target number using only array elements
  143. Rearrange a string so that all same characters become atleast d distance away
  144. How to find Lexicographically previous permutation?
  145. Longest Common Prefix using Divide and Conquer Algorithm
  146. Maximum value K such that array has at-least K elements that are >= K
  147. Lower case to upper case - An interesting fact
  148. Find even occurring elements in an array of limited range
  149. Heap's Algorithm for generating permutations
  150. Printing Longest Common Subsequence | Set 2 (Printing All)
  151. Remove duplicates from an array of small primes
  152. Program to convert a given number to words | Set 2
  153. Two Dimensional Binary Indexed Tree or Fenwick Tree
  154. Rearrange positive and negative numbers with constant extra space
  155. Minimax Algorithm in Game Theory | Set 4 (Alpha-Beta Pruning)
  156. Range LCM Queries
  157. Generate 0 and 1 with 25% and 75% probability
  158. Sub-string Divisibility by 3 Queries
  159. Find longest palindrome formed by removing or shuffling chars from string
  160. Longest Geometric Progression
  161. Find all strings that match specific pattern in a dictionary
  162. Find height of a special binary tree whose leaf nodes are connected
  163. Reverse an array in groups of given size | Set 2 (Variations of Set 1 )
  164. Find if an expression has duplicate parenthesis or not
  165. Third largest element in an array of distinct elements
  166. Subtract Two Numbers represented as Linked Lists
  167. A Space Optimized DP solution for 0-1 Knapsack Problem
  168. Check if string follows order of characters defined by a pattern or not | Set 2
  169. Find Two Missing Numbers | Set 1 (An Interesting Linear Time Solution)
  170. Count digit groupings of a number with given constraints
  171. Check if string follows order of characters defined by a pattern or not | Set 3
  172. Count Distinct Subsequences
  173. Find minimum elements after considering all possible transformations
  174. Program to check if an array is sorted or not (Iterative and Recursive)
  175. Maximum Consecutive Increasing Path Length in Binary Tree
  176. Pairs of complete strings in two sets of strings
  177. Frequency Measuring Techniques for Competitive Programming
  178. Count and Toggle Queries on a Binary Array
  179. Binary Indexed Tree : Range Update and Range Queries
  180. Vigenère Cipher
  181. Remove Invalid Parentheses
  182. Number of ways to make mobile lock pattern
  183. Longest common subsequence with permutations allowed
  184. Longest consecutive sequence in Binary tree
  185. Optimum location of point to minimize total distance
  186. Minimum steps to reach end of array under constraints
  187. Check if a string has all characters with same frequency with one variation allowed
  188. Check if a string can become empty by recursively deleting a given sub-string
  189. Program to find the Type of Triangle from the given Coordinates
  190. Remove minimum number of characters so that two strings become anagram
  191. XOR Cipher
  192. Count all pairs with given XOR
  193. Find pairs with given sum in doubly linked list
  194. Find maximum difference between nearest left and right smaller elements
  195. Convert a number into negative base representation
  196. Sort a string according to the order defined by another string
  197. Distinct strings with odd and even changes allowed
  198. Sum of maximum elements of all subsets
  199. Find if there is a pair in root to a leaf path with sum equals to root's data
  200. Find Maximum Sum Strictly Increasing Subarray
  201. Count characters at same position as in English alphabet
  202. Minimum Product Spanning Tree
  203. Maximum subsequence sum such that no three are consecutive
  204. Maximum sum of nodes in Binary tree such that no two are adjacent
  205. Find all sides of a right angled triangle from given hypotenuse and area | Set 1
  206. Count pairs whose products exist in array
  207. Count minimum number of "move-to-front" moves to sort an array
  208. Minimum characters to be added at front to make string palindrome
  209. Print all nodes in a binary tree having K leaves
  210. Minimum difference between adjacent elements of array which contain elements from each row of a matrix
  211. Maximum 0's between two immediate 1's in binary representation
  212. Find all permuted rows of a given row in a matrix
  213. Paper Cut into Minimum Number of Squares
  214. Sort even-placed elements in increasing and odd-placed in decreasing order
  215. Find the first natural number whose factorial is divisible by x
  216. LCA for general or n-ary trees (Sparse Matrix DP approach )
  217. Sort an array when two halves are sorted
  218. Program to toggle all characters in a string
  219. Minimum number of elements which are not part of Increasing or decreasing subsequence in array
  220. LCS (Longest Common Subsequence) of three strings
  221. Check linked list with a loop is palindrome or not
  222. Find Maximum dot product of two arrays with insertion of 0's
  223. Rearrange an array to minimize sum of product of consecutive pair elements
  224. Find pairs in array whose sums already exist in array
  225. K-th smallest element after removing some integers from natural numbers
  226. Sqrt (or Square Root) Decomposition Technique | Set 1 (Introduction)
  227. Break an array into maximum number of sub-arrays such that their averages are same
  228. Find three element from different three arrays such that a + b + c = sum
  229. Queries on substring palindrome formation
  230. Count of index pairs with equal elements in an array
  231. Boggle | Set 2 (Using Trie)
  232. Maximum difference between frequency of two elements such that element having greater frequency is also greater
  233. Friends Pairing Problem
  234. Printing all solutions in N-Queen Problem
  235. Minimum steps to reach target by a Knight | Set 1
  236. Count binary strings with k times appearing adjacent two set bits
  237. Program for FCFS CPU Scheduling | Set 1
  238. Check if reversing a sub array make the array sorted
  239. Minimum operations required to remove an array
  240. Find all triplets with zero sum
  241. Number of subsequences in a string divisible by n
  242. Print consecutive characters together in a line
  243. Pizza cut problem (Or Circle Division by Lines)
  244. Check if a Binary Tree contains duplicate subtrees of size 2 or more
  245. Program for Worst Fit algorithm in Memory Management
  246. Number with maximum number of prime factors
  247. Nearest element with at-least one common prime factor
  248. Type of array and its maximum element
  249. A permutation where each element indicates either number of elements before or after it
  250. Sort array after converting elements to their squares
  251. Sort all even numbers in ascending order and then sort all odd numbers in descending order
  252. Find N'th item in a set formed by sum of two arrays
  253. Program for Banker's Algorithm | Set 1 (Safety Algorithm)
  254. Make largest palindrome by changing at most K-digits
  255. Word formation using concatenation of two dictionary words
  256. Find largest word in dictionary by deleting some characters of given string
  257. Largest divisible subset in array
  258. Count of strings that can be formed using a, b and c under given constraints
  259. Maximum edge removal from tree to make even forest
  260. Find the missing number in a string of numbers with no separator
  261. Count substrings with same first and last characters
  262. Find the Deepest Node in a Binary Tree
  263. Sum of nodes at k-th level in a tree represented as string
  264. Print all full nodes in a Binary Tree
  265. Convert decimal fraction to binary number
  266. Find sum of non-repeating (distinct) elements in an array
  267. Number of pair of positions in matrix which are not accessible
  268. Find the largest multiple of 3 from array of digits | Set 2 (In O(n) time and O(1) space)
  269. Move all occurrences of an element to end in a linked list
  270. Deletion from a Circular Linked List
  271. Iterative program to count leaf nodes in a Binary Tree
  272. Finding LCM of more than two (or array) numbers without using GCD
  273. Prufer Code to Tree Creation
  274. Count the number of subarrays having a given XOR
  275. Find the next identical calendar year
  276. Nth Square free number
  277. Binary Search Tree insert with Parent Pointer
  278. Doubly Circular Linked List | Set 2 (Deletion)
  279. Smallest length string with repeated replacement of two distinct adjacent
  280. Find first non matching leaves in two binary trees
  281. Largest subset of Graph vertices with edges of 2 or more colors
  282. Count of arrays in which all adjacent elements are such that one of them divide the another
  283. Reverse string without using any temporary variable
  284. Number of sink nodes in a graph
  285. How to implement decrease key or change key in Binary Search Tree?
  286. Binary Search for Rational Numbers without using floating point arithmetic
  287. Lexicographically minimum string rotation | Set 1
  288. Generate all binary permutations such that there are more or equal 1's than 0's before every point in all permutations
  289. Print All Distinct Elements of a given integer array
  290. Program to add two polynomials
  291. How to check if given four points form a square
  292. Connected Components in an undirected graph
  293. Greedy Algorithm to find Minimum number of Coins
  294. Remove recurring digits in a given number
  295. Check if a sorted array can be divided in pairs whose sum is k
  296. Print level order traversal line by line | Set 1
  297. Iterative Search for a key 'x' in Binary Tree
  298. Linked List | Set 1 (Introduction)
  299. Doubly Linked List | Set 1 (Introduction and Insertion)
  300. Delete all occurrences of a given key in a linked list
  301. Find Length of a Linked List (Iterative and Recursive)
  302. Delete last occurrence of an item from linked list
  303. Stack | Set 3 (Reverse a string using stack)
  304. Number of subtrees having odd count of even numbers
  305. Minimum number of Appends needed to make a string palindrome
  306. Move spaces to front of string in single traversal
  307. Clustering/Partitioning an array such that sum of square differences is minimum
  308. Find distance from root to given node in a binary tree
  309. Count full nodes in a Binary tree (Iterative and Recursive)
  310. Count numbers whose sum with x is equal to XOR with x
  311. Binary representation of next greater number with same number of 1's and 0's
  312. TimSort
  313. Threaded Binary Search Tree | Deletion
  314. Reverse an array without using subtract sign ‘-‘ anywhere in the code
  315. First element occurring k times in an array
  316. K-th Element of Two Sorted Arrays
  317. Left-Child Right-Sibling Representation of Tree
  318. Print array of strings in sorted order without copying one string into another
  319. Determine if a string has all Unique Characters
  320. Find index of an extra element present in one sorted array
  321. Shortest Uncommon Subsequence
  322. Averages of Levels in Binary Tree
  323. Find the n-th number made of even digits only
  324. Biggest number by arranging numbers in certain order
  325. Program to find Smallest and Largest Word in a String
  326. Program to remove vowels from a String
  327. Maximum value of an integer for which factorial can be calculated on a machine
  328. Removing punctuations from a given string
  329. Print numbers 1 to N using Indirect recursion
  330. Toggle case of a string using Bitwise Operators
  331. Minimum edge reversals to make a root
  332. Output of Java program | Set 22 (Overloading)
  333. Sum of divisors of factorial of a number
  334. First negative integer in every window of size k
  335. Sum of product of all pairs of array elements
  336. Check if two numbers are bit rotations of each other or not
  337. Iterative method to check if two trees are mirror of each other
  338. Program to calculate the value of sin(x) and cos(x) using Expansion
  339. Convert a given Binary Tree to Circular Doubly Linked List | Set 2
  340. Check whether given string can be generated after concatenating given strings
  341. String containing first letter of every word in a given string with spaces
  342. URLify a given string (Replace spaces is %20)
  343. Maximizing Unique Pairs from two arrays
  344. Program for Least Recently Used (LRU) Page Replacement algorithm
  345. Find mirror of a given node in Binary tree
  346. Print the path common to the two paths from the root to the two given nodes
  347. Reverse vowels in a given string
  348. Find minimum value to assign all array elements so that array product becomes greater
  349. Count of only repeated element in a sorted array of consecutive elements
  350. Non-overlapping sum of two sets
  351. Boyer Moore Algorithm | Good Suffix heuristic
  352. Bubble sort using two Stacks
  353. Count pairs from two sorted arrays whose sum is equal to a given value x
  354. Find number of diagonals in n sided convex polygon
  355. Find Corners of Rectangle using mid points
  356. Length of the transverse common tangent between the two non intersecting circles
  357. Program to find line passing through 2 Points
  358. Check if a string is Isogram or not
  359. Multistage Graph (Shortest Path)
  360. Check if absolute difference of consecutive nodes is 1 in Linked List
  361. Find a pair of elements swapping which makes sum of two arrays same
  362. Check if an array represents Inorder of Binary Search tree or not
  363. Print all permutation of a string using ArrayList
  364. Find the sum of last n nodes of the given Linked List
  365. Sum of product of all elements of sub-arrays of size k
  366. Maximize matrix as per given condition
  367. Count pairs from two linked lists whose sum is equal to a given value
  368. Find the Sub-array with sum closest to 0
  369. Count quadruples from four sorted arrays whose sum is equal to a given value x
  370. Given a number as a string, find the number of contiguous subsequences which recursively add up to 9 | Set 2
  371. Largest number in BST which is less than or equal to N
  372. All unique triplets that sum up to a given value
  373. Find k-th bit in a binary string created by repeated invert and append operations
  374. Keyword Cipher
  375. Program for Shortest Job First (SJF) scheduling | Set 2 (Preemptive)
  376. Print the string after the specified character has occurred given no. of times
  377. Remove duplicates from a sorted doubly linked list
  378. Remove duplicates from an unsorted doubly linked list
  379. Squareroot(n)-th node in a Linked List
  380. Print last k digits of a^b (a raised to power b)
  381. Shuffle 2n integers in format {a1, b1, a2, b2, a3, b3, ......, an, bn} without using extra space
  382. Null Cipher
  383. Print odd positioned nodes of odd levels in level order of the given binary tree
  384. Find an element in Bitonic array
  385. Iterative method to find ancestors of a given binary tree
  386. Minimum rotations required to get the same string
  387. Maximize a given unsigned number number by swapping bits at it's extreme positions.
  388. Find mirror image of a point in 2-D plane
  389. Convert all substrings of length 'k' from base 'b' to decimal
  390. Preorder Successor of a Node in Binary Tree
  391. Range query for Largest Sum Contiguous Subarray
  392. Check if binary representation of a given number and its complement are anagram
  393. Check if a string is Pangrammatic Lipogram
  394. Longest Prime Subarray after removing one element
  395. Next greater element in same order as input
  396. Minimum Index Sum for Common Elements of Two Lists
  397. Calculate number of nodes between two vertices in an acyclic Graph by Disjoint Union method
  398. Counts Path in an Array
  399. Remove brackets from an algebraic string containing + and - operators
  400. Check if a large number can be divided into two or more segments of equal sum
  401. Remove minimum number of elements such that no common element exist in both array
  402. Find if an array contains a string with one mismatch
  403. Check whether right angled triangle is valid or not for large sides
  404. Adding elements of an array until every element becomes greater than or equal to k
  405. Sum of all even numbers in range L and R
  406. Count subarrays with equal number of occurrences of two given elements
  407. Merge two sorted lists (in-place)
  408. Sort first half in ascending and second half in descending order | 1
  409. Length of the smallest sub-string consisting of maximum distinct characters
  410. Remove three consecutive duplicates from string
  411. Sum and Product of Prime Frequencies of Characters in a String
  412. Generating distinct subsequences of a given string in lexicographic order
  413. Sum triangle from array
  414. Balance pans using given weights that are powers of a number
  415. Print the nodes at odd levels of a tree
  416. Check if a grid can become row-wise and column-wise sorted after adjacent swaps
  417. Best meeting point in 2D binary array
  418. All possible binary numbers of length n with equal sum in both halves
  419. Maximum number of unique prime factors
  420. Minimum number of Square Free Divisors
  421. Sort an array according to absolute difference with a given value "using constant extra space"
  422. Check if two unsorted arrays (with duplicates allowed) have same elements
  423. Count all triplets whose sum is equal to a perfect cube
  424. Sum of upper triangle and lower triangle
  425. Pattern Printing question asked in CGI Coding Round
  426. Lexicographically smallest permutation of {1, .. n} such that no. and position do not match
  427. Count number of digits after decimal on dividing a number
  428. Minimum operation to make all elements equal in array
  429. Insert a node after the n-th node from the end
  430. Check if a graphs has a cycle of odd length
  431. Possible moves of knight
  432. Number of substrings with count of each character as k
  433. Find substrings that contain all vowels
  434. Count unset bits of a number
  435. Array range queries over range queries
  436. Convert singly linked list into circular linked list
  437. Maximize the binary matrix by filpping submatrix once
  438. Remove array end element to maximize the sum of product
  439. Lexicographically first alternate vowel and consonant string
  440. Permutations to arrange N persons around a circular table
  441. K-th ancestor of a node in Binary Tree
  442. Generate two output strings depending upon occurrence of character in input string.
  443. Sort string of characters
  444. Right view of Binary Tree using Queue
  445. Number of ways to arrange N items under given constraints
  446. Count single node isolated sub-graphs in a disconnected graph
  447. Unique element in an array where all elements occur k times except one
  448. Maximum possible XOR of every element in an array with another array
  449. Kth ancestor of a node in binary tree | Set 2
  450. Largest number with one swap allowed
  451. Linked List Sum of Nodes Between 0s
  452. Check if a string is suffix of another
  453. Sudo Placement[1.4] | BST Traversal
  454. Longest alternating sub-array starting from every index in a Binary Array
  455. Generate all passwords from given character set
  456. Check whether a number has exactly three distinct factors or not
  457. Sub-tree with minimum color difference in a 2-coloured tree
  458. Longest Repeated Subsequence
  459. Check if a two character string can be made using given words
  460. Node having maximum sum of immediate children and itself in n-ary tree
  461. Sort a Rotated Sorted Array
  462. Next Larger element in n-ary tree
  463. Replace nodes with duplicates in linked list
  464. Number of triangles that can be formed
  465. Number of subarrays having absolute sum greater than K | Set-2
  466. Combinations in a String of Digits
  467. Maximize value of (a[i]+i)*(a[j]+j) in an array
  468. Count of strings where adjacent characters are of difference one
  469. k-th missing element in increasing sequence which is not present in a given sequence
  470. Lexicographically smallest string whose hamming distance from given string is exactly K
  471. Generate permutations with only adjacent swaps allowed
  472. Tile Stacking Problem
  473. Check if two BSTs contain same set of elements
  474. Print k numbers where all pairs are divisible by m
  475. Secretary Problem (A Optimal Stopping Problem)
  476. Pairs of Positive Negative values in an array
  477. Given a HUGE number check if it's a power of two.
  478. Remove all consecutive duplicates from the string
  479. Direction of a Point from a Line Segment
  480. Cumulative frequency of count of each element in an unsorted array
  481. Index Mapping (or Trivial Hashing) with negatives allowed
  482. Count of strings that can be formed from another string using each character at-most once
  483. Even numbers at even index and odd numbers at odd index
  484. Queries for the product of first N factorials
  485. Program to sort string in descending order
  486. Lexicographically smallest permutation with distinct elements using minimum replacements
  487. Double Base Palindrome
  488. Distinct permutations of the string | Set 2
  489. Minimum number of elements to add to make median equals x
  490. Average numbers in array
  491. Replace a character c1 with c2 and c2 with c1 in a string S
  492. Count all 0s which are blocked by 1s in binary matrix
  493. Remove all characters other than alphabets from string
  494. Recursive insertion and traversal linked list
  495. Root to leaf path with maximum distinct nodes
  496. Check whether the given array is perfect or not
  497. Largest increasing subsequence of consecutive integers
  498. Binary tree to string with brackets
  499. Make three non-empty sets with negative, positive and 0 products
  500. Sort an array with swapping only with a special element is allowed
  501. Sorting using trivial hash function
  502. Binary String of given length that without a palindrome of size 3
  503. Maximum consecutive numbers present in an array
  504. Count sub-arrays which have elements less than or equal to X
  505. Minimum Word Break
  506. Prime factors of a big number
  507. Frequency of a substring in a string
  508. Find index of closing bracket for a given opening bracket in an expression
  509. Smallest number whose set bits are maximum in a given range
  510. Next word that does not contain a palindrome and has characters from first k
  511. Construct lexicographically smallest palindrome
  512. Print Longest Palindromic Subsequence
  513. Camel case of a given sentence
  514. Minimum jumps to reach last building in a matrix
  515. Program to find the minimum (or maximum) element of an array
  516. Split the string into substrings using delimiter
  517. Minimum cost to construct a string
  518. Queries for maximum difference between prime numbers in given ranges
  519. Count subarrays where second highest lie before highest
  520. Game of replacing array elements
  521. DFS traversal of a tree using recursion
  522. Print n smallest elements from given array in their original order
  523. Number of ways to insert a character to increase the LCS by one
  524. Encrypt string with product of number of vowels and consonants in substring of size k
  525. Construct a graph from given degrees of all vertices
  526. A backtracking approach to generate n bit Gray Codes
  527. Form the largest palindromic number using atmost two swaps
  528. Count number of increasing subsequences of size k
  529. Reverse a Doubly Linked List | Set-2
  530. First common element in two linked lists
  531. Find the size of largest subset of anagram words
  532. Sorting array of strings (or words) using Trie | Set-2 (Handling Duplicates)
  533. Number of ways to form a heap with n distinct integers
  534. Count subarrays with equal number of 1's and 0's
  535. Check whether a binary tree is a full binary tree or not | Iterative Approach
  536. Program for triangular patterns of alphabets
  537. Possible edges of a tree for given diameter, height and vertices
  538. Minimum difference between groups of size two
  539. Iterative searching in Binary Search Tree
  540. Value of k-th index of a series formed by append and insert MEX in middle
  541. Postorder traversal of Binary Tree without recursion and without stack
  542. Subsequence queries after removing substrings
  543. Reverse a Doubly Linked List | Set 4 (Swapping Data)
  544. Find max of two Rational numbers
  545. Maximum occurring character in an input string | Set-2
  546. Find LCM of rational numbers
  547. Find a string in lexicographic order which is in between given two strings
  548. Growable array based stack
  549. Max occurring divisor in an interval
  550. How to traverse through all values for a given key in multimap?
  551. Java Program to find largest element in an array
  552. Latin alphabet cipher
  553. Median and Mode using Counting Sort
  554. Minimum array element changes to make its elements 1 to N
  555. Insertion Sort by Swapping Elements
  556. Convert string X to an anagram of string Y with minimum replacements
  557. Reduce Hamming distance by swapping two characters
  558. Find the Degree of a Particular vertex in a Graph
  559. Find number of pairs in an array such that their XOR is 0
  560. Water Connection Problem
  561. Count maximum-length palindromes in a String
  562. Row wise sorting in 2D array
  563. Lexicographical concatenation of all substrings of a string
  564. Stable sort for descending order
  565. Sum of the alphabetical values of the characters of a string
  566. Balanced expressions such that given positions have opening brackets
  567. Height of a generic tree from parent array
  568. Largest value in each level of Binary Tree
  569. Print alternate nodes of a linked list using recursion
  570. Maximum number of trailing zeros in the product of the subsets of size k
  571. Linked List Pair Sum
  572. Print the alternate nodes of linked list (Iterative Method)
  573. Alternate Odd and Even Nodes in a Singly Linked List
  574. Majority element in a linked list
  575. Count pairs from two sorted matrices with given sum
  576. Consecutive sequenced numbers in a string
  577. Total numbers with no repeated digits in a range
  578. Modify a binary tree to get preorder traversal using right pointers only
  579. N Queen in O(n) space
  580. Print Binary Tree levels in sorted order | Set 2 (Using set)
  581. HCF of array of fractions (or rational numbers)
  582. Iterative program to Calculate Size of a tree
  583. Non-Repeating Element
  584. Insertion sort to sort even and odd positioned elements in different orders
  585. Sum of products of all combination taken (1 to n) at a time
  586. Array Index with same count of even or odd numbers on both sides
  587. Minimum operations to make two numbers equal
  588. Row-wise vs column-wise traversal of matrix
  589. Top three elements in binary tree
  590. Maximum occurring character in a linked list
  591. Time taken by Loop unrolling vs Normal loop
  592. Check whether bits are in alternate pattern in the given range | Set-2
  593. Primality Test | Set 5(Using Lucas-Lehmer Series)
  594. Longest Path with Same Values in a Binary Tree
  595. Sum of maximum elements of all possible sub-arrays of an array
  596. Convert String into Binary Sequence
  597. Find common elements in three linked lists
  598. Insertion in Unrolled Linked List
  599. Find the only repetitive element between 1 to n-1
  600. Function to copy string (Iterative and Recursive)
  601. Check if any valid sequence is divisible by M
  602. Sort the linked list in the order of elements appearing in the array
  603. Rank of an element in a stream
  604. Check if two strings are permutation of each other
  605. Number of recycled pairs in an array
  606. Schedule jobs so that each server gets equal load
  607. Find one extra character in a string
  608. Get maximum left node in binary tree
  609. Delete array elements which are smaller than next or become smaller
  610. Largest subset with maximum difference as 1
  611. Number of subarrays with m odd numbers
  612. Maximum Perimeter Triangle from array
  613. Rat in a Maze with multiple steps or jump allowed
  614. Minimal moves to form a string by adding characters or appending string itself
  615. Space optimization using bit manipulations
  616. Maximum Subarray Sum Excluding Certain Elements
  617. Count subarrays with same even and odd elements
  618. Find largest d in array such that a + b + c = d
  619. Leftover element after performing alternate Bitwise OR and Bitwise XOR operations on adjacent pairs
  620. Count substrings with each character occurring at most k times
  621. Find unique elements in linked list
  622. Largest of two distinct numbers without using any conditional statements or operators
  623. Array range queries for searching an element
  624. Check if two people starting from different points ever meet
  625. Check if linked list is sorted (Iterative and Recursive)
  626. K'th Largest element in BST using constant extra space
  627. Sum of all elements of N-ary Tree
  628. Level order traversal with direction change after every two levels
  629. Find the Largest Cube formed by Deleting minimum Digits from a number
  630. Count numbers formed by given two digit with sum having given digits
  631. Hill Cipher
  632. Two Dimensional Segment Tree | Sub-Matrix Sum
  633. Arithmetic Number
  634. Making elements of two arrays same with minimum increment/decrement
  635. Lexicographical Maximum substring of string
  636. Program for Gauss-Jordan Elimination Method
  637. Number of children of given node in n-ary Tree
  638. Print BST keys in given Range | O(1) Space
  639. Generate n-bit Gray Codes | Set 2
  640. Find sub-string with given power
  641. Maximum in an array that can make another array sorted
  642. Program to reverse a string (Iterative and Recursive)
  643. Find the value of N XOR'ed to itself K times
  644. Maximum adjacent difference in an array in its sorted form
  645. Euler tour of Binary Tree
  646. Lexicographically Kth smallest way to reach given coordinate from origin
  647. Ways to choose three points with distance between the most distant points <= L
  648. Convert BST to Max Heap
  649. Count pairs with set bits sum equal to K
  650. Reverse String according to the number of words
  651. Postorder successor of a Node in Binary Tree
  652. System of Linear Equations in three variables using Cramer's Rule
  653. Maximum product quadruple (sub-sequence of size 4) in array
  654. Largest set with bitwise OR equal to n
  655. Partition negative and positive without comparison with 0
  656. Add n binary strings
  657. Subtract 1 without arithmetic operators
  658. Find the only element that appears b times
  659. Longest arithmetic progression with the given common difference
  660. Longest subarray such that adjacent elements have at least one common digit | Set 1
  661. Print concentric rectangular pattern in a 2d matrix
  662. Multiset Equivalence Problem
  663. Reverse nodes of a linked list without affecting the special characters
  664. Vieta's Formulas
  665. Infix to Prefix conversion using two stacks
  666. Queries for number of array elements in a range with Kth Bit Set
  667. Find the number of operations required to make all array elements Equal
  668. Sum of multiplication of triplet of divisors of a number
  669. Move first element to end of a given Linked List
  670. Recursive program to generate power set
  671. BigInteger andNot() Method in Java
  672. Repeated Character Whose First Appearance is Leftmost
  673. Delete leaf nodes with value k
  674. Duplicates in an array in O(n) time and by using O(1) extra space | Set-3
  675. Minimum number of prefix reversals to sort permutation of first N numbers
  676. Number of permutations such that sum of elements at odd index and even index are equal
  677. Print all distinct integers that can be formed by K numbers from a given array of N numbers
  678. kth smallest/largest in a small range unsorted array
  679. Number of sequences which has HEAD at alternate positions to the right of the first HEAD
  680. Sum of K largest elements in BST using O(1) Extra space
  681. Rearrange a Linked List in Zig-Zag fashion | Set-2
  682. nth Rational number in Calkin-Wilf sequence
  683. Number of Larger Elements on right side in a string
  684. Count number of steps to cover a distance if steps can be taken in powers of 2
  685. Permutation of a string with maximum number of characters greater than its adjacent characters
  686. Minimum element left from the array after performing given operations
  687. Sudo Placement | Placement Tour
  688. Check if concatenation of two strings is balanced or not
  689. Count of elements of an array present in every row of NxM matrix
  690. Longest Common Prefix Matching | Set-6
  691. Sort an array where a subarray of a sorted array is in reverse order
  692. Sudo Placement[1.3] | Playing with Stacks
  693. Sudo Placement[1.3] | Final Destination
  694. Implement a stack using singly linked list
  695. Check if a number has same number of set and unset bits
  696. Merge first half and reversed second half of the linked list alternatively
  697. Sudo Placement[1.4] | Jumping the Subtree
  698. Sum of all maximum frequency elements in Matrix
  699. Sum of all odd frequency elements in a Matrix
  700. Longest Common Subsequence | DP using Memoization
  701. Edit distance and LCS (Longest Common Subsequence)
  702. Find index of first occurrence when an unsorted array is sorted
  703. Elements of first array that have more frequencies
  704. Merge Sort with O(1) extra space merge and O(n lg n) time
  705. Sum of elements in range L-R where first half and second half is filled with odd and even numbers
  706. Sudo Placement[1.5] | Partition
  707. Sudo Placement[1.5] | Wolfish
  708. Absolute difference between the first X and last X Digits of N
  709. Sum of cousin nodes of a given node in a BST
  710. Floor in Binary Search Tree (BST)
  711. Average of ASCII values of characters of a given string
  712. Find the multiple of x which is closest to a^b
  713. Number of elements smaller than root using preorder traversal of a BST
  714. Check if all array elements are distinct
  715. Sort first half in ascending and second half in descending order | Set 2
  716. Print all the pairs that contains the positive and negative values of an element
  717. Longest substring with count of 1s more than 0s
  718. Minimum length of jumps to avoid given array of obstacles
  719. Count number of Distinct Substring in a String
  720. Shortest distance between two nodes in an infinite binary tree
  721. Find indices of all occurrence of one string in other
  722. Time difference between expected time and given time
  723. Minimize the difference between minimum and maximum elements
  724. Maximum value of XOR among all triplets of an array
  725. Flatten a binary tree into linked list | Set-2
  726. Delete array element in given index range [L - R]
  727. Total sum except adjacent of a given node in BST
  728. Next Smaller Element
  729. Counting frequencies of array elements
  730. First strictly greater element in a sorted array in Java
  731. Difference between fundamental data types and derived data types
  732. Number of divisors of product of N numbers
  733. Lowest Common Ancestor in Parent Array Representation
  734. Find the maximum node at a given level in a binary tree
  735. Balanced expressions such that given positions have opening brackets | Set 2
  736. Check if Queue Elements are pairwise consecutive
  737. Modulo power for large numbers represented as strings
  738. Root to leaf path sum equal to a given number in BST
  739. Preorder from Inorder and Postorder traversals
  740. FIFO (First-In-First-Out) approach in Programming
  741. Program to count number of distinct Squares and Cubes upto N
  742. Count number of primes in an array
  743. Count ways to reach a score using 1 and 2 with no consecutive 2s
  744. Lexicographically smallest permutation of a string with given subsequences
  745. Program to find sum of the given sequence
  746. Remove duplicates from a string in O(1) extra space
  747. Sum of the nodes of a Singly Linked List
  748. Program to invert bits of a number Efficiently
  749. Solve the Logical Expression given by string
  750. Total character pairs from two strings, with equal number of set bits in their ascii value
  751. Find all angles of a triangle in 3D
  752. Longest dividing subsequence
  753. Design an online book reader system
  754. Balance a string after removing extra brackets
  755. Search an Element in Doubly Circular Linked List
  756. Maximize the product of four factors of a Number
  757. Find a palindromic string B such that given String A is a subsequense of B
  758. Check if given string can be formed by two other strings or their permutations
  759. Delete every Kth node from circular linked list
  760. Count all pairs of adjacent nodes whose XOR is an odd number
  761. Program to Find the value of cos(nΘ)
  762. Print the number of set bits in each node of a Binary Tree
  763. Minimum and Maximum prime numbers in an array
  764. Sum and Product of all Prime Nodes of a Singly Linked List
  765. Count Unary Numbers in a Range
  766. Divide an array into K subarray with the given condition
  767. Find the winner of the Game to Win by erasing any two consecutive similar alphabets
  768. Find number of magical pairs of string of length L
  769. Generating numbers that are divisor of their right-rotations
  770. Numbers less than N which are product of exactly two distinct prime numbers
  771. Ways to write N as sum of two or more positive integers | Set-2
  772. Find the Second Largest Element in a Linked List
  773. Check if two Linked Lists are permutations of each other
  774. Program to calculate the value of nCr Efficiently
  775. Check whether the two Binary Search Trees are Identical or Not
  776. Understanding The Coin Change Problem With Dynamic Programming
  777. Find column with maximum sum in a Matrix
  778. Find row with maximum sum in a Matrix
  779. Find the largest good number in the divisors of given number N
  780. How to access elements of a Square Matrix
  781. Insert a node in Binary Search Tree Iteratively
  782. Meta Binary Search | One-Sided Binary Search
  783. Find Sum of pair from two arrays with maximum sum
  784. Sum of all the prime numbers in a given range
  785. Check whether the given number is Euclid Number or not
  786. Pair of prime numbers with a given sum and minimum absolute difference
  787. Delete all the even nodes of a Circular Linked List
  788. Find the product of last N nodes of the given Linked List
  789. Program to print Spiral Pattern
  790. Product of all leaf nodes of binary tree
  791. Sum of Fibonacci Numbers with alternate negatives
  792. Print Sum and Product of all Non-Leaf nodes in Binary Tree
  793. Product of non-repeating (distinct) elements in an Array
  794. Product of all prime numbers in an Array
  795. Program to replace every space in a string with hyphen
  796. Check if suffix and prefix of a string are palindromes
  797. Minimum number of nodes in an AVL Tree with given height
  798. Product of the alternate nodes of linked list
  799. Sum of the alternate nodes of linked list
  800. Kth prime number greater than N
  801. Find the longest common prefix between two strings after performing swaps on second string
  802. Find the common nodes in two singly linked list
  803. Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
  804. Sum and Product of maximum and minimum element in Binary Tree
  805. Remove even frequency characters from the string
  806. Sum of Fibonacci numbers at even indexes upto N terms
  807. Sub-strings having exactly k characters that have ASCII value greater than p
  808. Count triplets in a sorted doubly linked list whose product is equal to a given value x
  809. Sort prime numbers of an array in descending order
  810. Maximize the sum of array by multiplying prefix of array with -1
  811. Count the numbers < N which have equal number of divisors as K
  812. Check if all the palindromic sub-strings are of odd length
  813. Reduce the string by removing K consecutive identical characters
  814. Linked List Product of Nodes Between 0s
  815. Lexicographically largest string formed from the characters in range L and R
  816. Search in a sorted 2D matrix (Stored in row major order)
  817. Check if a given tree graph is linear or not
  818. How to Remove Duplicates from ArrayList in Java
  819. Print all nodes between two given levels in Binary Tree
  820. Check whether bitwise OR of N numbers is Even or Odd
  821. Remove characters from string that appears strictly less than K times
  822. Replace all occurrences of pi with 3.14 in a given string
  823. Find length of longest Fibonacci like subsequence
  824. Maximum number of Unique integers in Sub-Array of given size
  825. Get K-th letter of the decoded string formed by repeating substrings
  826. Find the smallest after deleting given elements
  827. String after processing backspace characters
  828. Replace every elements in the array by its frequency in the array
  829. Number of leading zeros in binary representation of a given number
  830. Maximizing the elements with a[i+1] > a[i]
  831. Find array elements with frequencies in range [l , r]
  832. Remove elements from the array whose frequency lies in the range [l, r]
  833. Assign other value to a variable from two possible values
  834. Longest subarray in which all elements are greater than K
  835. Problem of 8 Neighbours of an element in a 2-D Matrix
  836. Check whether a number has consecutive 0's in the given base or not
  837. Find subsequences with maximum Bitwise AND and Bitwise OR
  838. Replace consonants with next immediate consonants alphabetically in a String
  839. Convert all lowercase characters to uppercase whose ASCII value is co-prime with k
  840. Replace all consonants with nearest vowels in a string
  841. Array elements with prime frequencies
  842. Sum and Product of all the nodes which are less than K in the linked list
  843. Number of ways to partition a string into two balanced subsequences
  844. Count subarrays with all elements greater than K
  845. Count and Sum of composite elements in an array
  846. Lexicographically smallest string formed by removing at most one character
  847. Maximum number of contiguous array elements with same number of set bits
  848. Print nodes of linked list at given indexes
  849. Check whether it is possible to make both arrays equal by modifying a single element
  850. De Bruijn sequence | Set 1
  851. Count of Prime Nodes of a Singly Linked List
  852. Find maximum distance between any city and station
  853. Program to find Prime Numbers Between given Interval
  854. Sum and Product of all Composite numbers which are divisible by k in an array
  855. Check whether all the rotations of a given number is greater than or equal to the given number or not
  856. Sum of every K’th prime number in an array
  857. Check whether frequency of characters in a string makes Fibonacci Sequence
  858. Product of all the Composite Numbers in an array
  859. Program to find the smallest element among three elements
  860. XOR of Prime Frequencies of Characters in a String
  861. Longest subarray with elements having equal modulo K
  862. Count occurrences of the average of array elements with a given number
  863. Number of sub-arrays that have at least one duplicate
  864. Find number from given list for which value of the function is closest to A
  865. Minimum number of elements to be removed so that pairwise consecutive elements are same
  866. Rearrange a string in the form of integer sum followed by the minimized character
  867. Multiplication of two polynomials using Linked list
  868. Find if array has an element whose value is half of array sum
  869. Find a number that divides maximum array elements
  870. Count the number of rectangles such that ratio of sides lies in the range [a,b]
  871. Sort elements of array whose modulo with K yields P
  872. Aronson's Sequence
  873. Array implementation of queue (Simple)
  874. Paths with maximum number of 'a' from (1, 1) to (X, Y) vertically or horizontally
  875. Difference between a Static Queue and a Singly Linked List
  876. Print all numbers less than N with at-most 2 unique digits
  877. Check whether count of distinct characters in a string is Prime or not
  878. Search a node in Binary Tree
  879. Largest right circular cone that can be inscribed within a sphere
  880. Largest cube that can be inscribed within a right circular cone
  881. Find all numbers that divide maximum array elements
  882. Generate a sequence with the given operations
  883. Check if the array has an element which is equal to product of remaining elements
  884. Sort perfect squares in an array at their relative positions
  885. Common prime factors of two numbers
  886. Total number of subsets in which the product of the elements is even
  887. Largest cube that can be inscribed within a right circular cylinder
  888. Count pairs with Bitwise XOR as EVEN number
  889. Minimum element of each row and each column in a matrix
  890. Program to convert the diagonal elements of the matrix to 0
  891. Find largest number smaller than N with same set of digits
  892. Sorting rows of matrix in descending order followed by columns in ascending order
  893. Sum of elements in an array having prime frequency
  894. Final string after performing given operations
  895. Sum of elements whose square root is present in the array
  896. Level Order Successor of a node in Binary Tree
  897. Check if array can be sorted with one swap
  898. Find smallest and largest element from square matrix diagonals
  899. Minimum number of moves to make all elements equal
  900. Second Chance (or Clock) Page Replacement Policy
  901. Find the largest interval that contains exactly one of the given N integers.
  902. Find alphabet in a Matrix which has maximum number of stars around it
  903. Time taken by two persons to meet on a circular track
  904. Number of comparisons in each direction for m queries in linear search
  905. Delete all Non-Prime Nodes from a Singly Linked List
  906. Rearrange all elements of array which are multiples of x in decreasing order
  907. Sum of Bitwise-OR of all subarrays of a given Array | Set 2
  908. Number of sub-strings which are anagram of any sub-string of another string
  909. Find maximum among all right nodes in Binary Tree
  910. Check if a triplet with given sum exists in BST
  911. Ceiling of every element in same array
  912. Buddy Memory Allocation Program | Set 1 (Allocation)
  913. Digits of element wise sum of two arrays into a new array
  914. Number of Paths of Weight W in a K-ary tree
  915. Buddy Memory Allocation Program | Set 2 (Deallocation)
  916. Sum of elements in an array with frequencies greater than or equal to that element
  917. Find a sub matrix with maximum XOR
  918. Sort the array in a given index range
  919. Find k-th character of decrypted string | Set - 2
  920. Remove all continuous occurrences of 'a' and all occurrences of 'b'
  921. Count numbers upto N which are both perfect square and perfect cube
  922. Subtraction in the Array
  923. Average of remaining elements after removing K largest and K smallest elements from array
  924. Count the number of special permutations
  925. Count all Grandparent-Parent-Child Triplets in a binary tree whose sum is greater than X
  926. Substring Reverse Pattern
  927. Largest palindromic prime in an array
  928. Sum of elements from an array having even parity
  929. Check if the string satisfies the given condition
  930. Flatten a binary tree into linked list | Set-3
  931. Count of numbers which can be made power of 2 by given operation
  932. Count of Numbers in Range where first digit is equal to last digit of the number
  933. Minimum number of operations required to sum to binary string S
  934. Split a string in equal parts such that all parts are palindromes
  935. Number of array elements derivable from D after performing certain operations
  936. Print first N terms of series (0.25, 0.5, 0.75, ...) in fraction representation
  937. Minimize the maximum minimum difference after one removal from array
  938. Count distinct substrings that contain some characters at most k times
  939. Length of Diagonal of a n-sided regular polygon
  940. Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
  941. Minimum absolute difference between N and a power of 2
  942. Finding in and out degrees of all vertices in a graph
  943. Maximum value of arr[i] % arr[j] for a given array
  944. Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
  945. Check if all the elements can be made of same parity by inverting adjacent elements
  946. Smallest multiple of 3 which consists of three given non-zero digits
  947. Ways to paint N paintings such that adjacent paintings don't have same colors
  948. Check if a number can be expressed as sum two abundant numbers
  949. Ternary Search
  950. Find nth term of the series 5 2 13 41
  951. Find Pth term of a GP if Mth and Nth terms are given
  952. Count distinct elements in an array
  953. Difference between Sum of Cubes and Sum of First N Natural Numbers
  954. Replace each node with its Surpasser Count in Linked List
  955. Program to check if a number is divisible by any of its digits
  956. Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
  957. Check if a number can be represented as a sum of 2 triangular numbers
  958. Print numbers such that no two consecutive numbers are co-prime and every three consecutive numbers are co-prime
  959. Make Binary Search Tree
  960. Number of unique pairs in an array
  961. Minimum replacements to make adjacent characters unequal in a ternary string
  962. Minimum replacements such that the difference between the index of the same characters is divisible by 3
  963. Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
  964. Modify the string by swapping continuous vowels or consonants
  965. Maximize the subarray sum after multiplying all elements of any subarray with X
  966. Maximize the value of x + y + z such that ax + by + cz = n
  967. Maximum money that can be withdrawn in two steps
  968. Number of sub-strings that contain the given character exactly k times
  969. Maximum size of sub-array that satisfies the given condition
  970. Lexicographically largest sub-sequence of the given string
  971. Iterative Method To Print Left View of a Binary Tree
  972. Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
  973. Find the integers that doesnot ends with T1 or T2 when squared and added X
  974. Distribute candies in a Binary Tree
  975. Sum of minimum elements of all possible sub-arrays of an array
  976. Find the number of points that have atleast 1 point above, below, left or right of it
  977. Find sub-matrix with the given sum
  978. Count possible moves in the given direction in a grid
  979. Number of strings that satisfy the given condition
  980. Print Leaf Nodes at a given Level
  981. Program to implement Run Length Encoding using Linked Lists
  982. Check whether the point (x, y) lies on a given line
  983. Generate a random permutation of elements from range [L, R] (Divide and Conquer)
  984. Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
  985. Minimize the sum of the squares of the sum of elements of each group the array is divided into
  986. Delete nodes which have a greater value on right side using recursion
  987. Program to construct a DFA which accept the language L = {anbm | n mod 2=0, m≥1}
  988. Search element in a Spirally sorted Matrix
  989. Count of numbers between range having only non-zero digits whose sum of digits is N and number is divisible by M
  990. Minimum removals to make array sum odd
  991. Maximum Bitwise AND pair from given range
  992. Print All Leaf Nodes of a Binary Tree from left to right | Set-2 ( Iterative Approach )
  993. Count array elements that divide the sum of all other elements
  994. Longest sub-sequence of array containing Lucas numbers
  995. Number of submatrices with all 1s
  996. Find Nth positive number whose digital root is X
  997. Bitwise AND of N binary strings
  998. Number of trailing zeroes in base B representation of N!
  999. Sum of minimum element of all subarrays of a sorted array
  1000. k-th missing element in an unsorted array
  1001. Count all elements in the array which appears at least K times after their first occurrence
  1002. Two equal sum segment range queries
  1003. Character pairs from two strings with even sum
  1004. Minimum matches the team needs to win to qualify
  1005. Minimum cost to make a string free of a subsequence
  1006. Given number of matches played, find number of teams in tournament
  1007. Find Nth term of the series 1, 6, 18, 40, 75, ....
  1008. Find Nth term of the series 1, 5, 32, 288 ...
  1009. Longest double string from a Palindrome
  1010. Minimum sum path between two leaves of a binary tree
  1011. Maximize the summation of numbers in a maximum of K moves in range [L, R]
  1012. Print all the sum pairs which occur maximum number of times
  1013. Print the last k nodes of the linked list in reverse order | Iterative Approaches
  1014. Sum of the series (1*2) + (2*3) + (3*4) + ...... upto n terms
  1015. Count of a, b & c after n seconds for given reproduction rate
  1016. Smallest integer > 1 which divides every element of the given array
  1017. Encrypt a string by repeating i-th character i times
  1018. Maximum number that can be display on Seven Segment Display using N segments
  1019. Sum of (maximum element - minimum element) for all the subsets of an array.
  1020. Print Binary Tree levels in sorted order | Set 3 (Tree given as array)
  1021. Minimum steps to make all the elements of the array divisible by 4
  1022. Distinct state codes that appear in a string as contiguous sub-strings
  1023. Find sum of a[i]%a[j] for all valid pairs
  1024. Find the most valued alphabet in the String
  1025. Print leaf nodes in binary tree from left to right using one stack
  1026. Reverse Anti Clockwise Spiral Traversal of a Binary Tree
  1027. Count of numbers from range [L, R] whose sum of digits is Y
  1028. Program to Encrypt a String using ! and @
  1029. Last digit of Product of two Large or Small numbers (a * b)
  1030. Count how many times the given digital clock shows identical digits
  1031. Search an element in given N ranges
  1032. Minimum cuts required to convert a palindromic string to a different palindromic string
  1033. Count maximum elements of an array whose absolute difference does not exceed K
  1034. First string from the given array whose reverse is also present in the same array
  1035. Count of pairs from 1 to a and 1 to b whose sum is divisible by N
  1036. Minimum changes required such that the string satisfies the given condition
  1037. Check if Matrix remains unchanged after row reversals
  1038. Smallest and Largest N-digit perfect squares
  1039. Find if the given number is present in the infinite sequence or not
  1040. Generate all the binary strings of N bits
  1041. Maximum trace possible for any sub-matrix of the given matrix
  1042. Minimum value among AND of elements of every subset of an array
  1043. Check if the given array can be reduced to zeros with the given operation performed given number of times
  1044. Count sub-arrays whose product is divisible by k
  1045. Minimum steps to delete a string by deleting substring comprising of same characters
  1046. Maximum sum from three arrays such that picking elements consecutively from same is not allowed
  1047. Find a distinct pair (x, y) in given range such that x divides y
  1048. Minimum cost to reach end of array array when a maximum jump of K index is allowed
  1049. Find the index of the element in an array which divides most elements before it
  1050. Number of ways of scoring R runs in B balls with at most W wickets
  1051. Programs for printing pyramid patterns using recursion
  1052. Loss when two items are sold at same price and same percentage profit/loss
  1053. Sum of Fibonacci Numbers in a range
  1054. Maximum sub-tree sum in a Binary Tree such that the sub-tree is also a BST
  1055. Maximum volume of cube for every person when edge of N cubes are given
  1056. Determine the number of squares of unit area that a given line will pass through.
  1057. Count nodes with two children at level L in a Binary Tree
  1058. Spanning Tree With Maximum Degree (Using Kruskal's Algorithm)
  1059. Sum of degrees of all nodes of a undirected graph
  1060. Replace array elements by sum of next two consecutive elements
  1061. Count the number of non-increasing subarrays
  1062. Print all leaf nodes of a binary tree from right to left
  1063. Pairs of strings which on concatenating contains each character of "string"
  1064. Generate original array from difference between every two consecutive elements
  1065. Generate all binary strings of length n with sub-string "01" appearing exactly twice
  1066. Length of the longest substring that do not contain any palindrome
  1067. Minimum steps to color the tree with given colors
  1068. Find the final radiations of each Radiated Stations
  1069. Find original numbers from gcd() every pair
  1070. Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
  1071. Maximum number of people that can be killed with strength P
  1072. Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
  1073. Number of ways of choosing K equal substrings of any length for every query
  1074. Find the number of binary strings of length N with at least 3 consecutive 1s
  1075. Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors
  1076. Reduce the fraction to its lowest form
  1077. Lazy Propagation in Segment Tree | Set 2
  1078. Shell-Metzner Sort
  1079. Check if two strings are same ignoring their cases
  1080. Find the number of sub arrays in the permutation of first N natural numbers such that their median is M
  1081. Sum of all the levels in a Binary Search Tree
  1082. Check if matrix A can be converted to B by changing parity of corner elements of any submatrix
  1083. Length of the normal from origin on a straight line whose intercepts are given
  1084. Number of subsequences with zero sum
  1085. Find the maximum possible value of a[i] % a[j] over all pairs of i and j
  1086. Maximize the maximum subarray sum after removing atmost one element
  1087. Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum
  1088. Given a string and an integer k, find the kth sub-string when all the sub-strings are sorted according to the given condition
  1089. Count different numbers possible using all the digits their frequency times
  1090. Remove all occurrences of any element for maximum array sum
  1091. Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
  1092. Highest power of a number that divides other number
  1093. Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term
  1094. Reverse alternate k characters in a string
  1095. Count of sub-strings that contain character X at least once
  1096. Check if given two straight lines are identical or not
  1097. Minimum cost to modify a string
  1098. Find the position of box which occupies the given ball
  1099. Check if string can be made lexicographically smaller by reversing any substring
  1100. Find sum of factorials in an array
  1101. Find the Diameter or Longest chord of a Circle
  1102. Number of character corrections in the given strings to make them equal
  1103. Maximum length of subarray such that sum of the subarray is even
  1104. Sliding Window Maximum (Maximum of all subarrays of size k) using stack in O(n) time
  1105. Count of strings whose prefix match with the given string to a given length k
  1106. Sum of all parent-child differences in a Binary Tree
  1107. Shortest distance from the centre of a circle to a chord
  1108. Radius of the circle when the width and height of an arc is given
  1109. Length of direct common tangent between the two non-intersecting Circles
  1110. Length of direct common tangent between two intersecting Circles
  1111. Shortest distance between a point and a circle
  1112. Print even positioned nodes of even levels in level order of the given binary tree
  1113. Count pairs with average present in the same array
  1114. Minimizing array sum by applying XOR operation on all elements of the array
  1115. Count unique numbers that can be generated from N by adding one and removing trailing zeros
  1116. Minimum number of cubes whose sum equals to given number N
  1117. Rat and Poisoned bottle Problem
  1118. Longest alternative parity subsequence
  1119. Number of positions such that adding K to the element is greater than sum of all other elements
  1120. Largest even number that can be formed by any number of swaps
  1121. Find the largest Perfect Subtree in a given Binary Tree
  1122. Iterative Postorder traversal | Set 3
  1123. Check if the robot is within the bounds of the grid after given moves
  1124. Convert Directed Graph into a Tree
  1125. Make lexicographically smallest palindrome by substituting missing characters
  1126. Count number of subsets whose median is also present in the same subset
  1127. Bellman Ford Algorithm (Simple Implementation)
  1128. Choose X such that (A xor X) + (B xor X) is minimized
  1129. Print characters having odd frequencies in order of occurrence
  1130. Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
  1131. Minimum integer such that it leaves a remainder 1 on dividing with any element from the range [2, N]
  1132. Minimum operations required to change the array such that |arr[i] - M| <= 1
  1133. Minimum number of given operations required to reduce the array to 0 element
  1134. Program to find the rate percentage from compound interest of consecutive years
  1135. Find prime number K in an array such that (A[i] % K) is maximum
  1136. K-th ancestor of a node in Binary Tree | Set 3
  1137. Delete all even elements from a stack
  1138. Minimum sum obtained from groups of four elements from the given array
  1139. Create linked list from a given array
  1140. Count squares with odd side length in Chessboard
  1141. Check if the number is valid when flipped upside down
  1142. Minimum number of sub-strings of a string such that all are power of 5
  1143. Bitwise AND of sub-array closest to K
  1144. Find letter's position in Alphabet using Bit operation
  1145. Create new linked list from two given linked list with greater element at each node
  1146. Number of trees whose sum of degrees of all the vertices is L
  1147. Queries for bitwise OR in the index range [L, R] of the given array
  1148. Find the last non repeating character in string
  1149. Generate all unique partitions of an integer | Set 2
  1150. Check if the given Prufer sequence is valid or not
  1151. Print an N x M matrix such that each row and column has all the vowels in it
  1152. Find N distinct numbers whose bitwise Or is equal to K
  1153. Count the nodes of the given tree whose weighted string is a palindrome
  1154. Count the nodes of the tree whose weighted string contains a vowel
  1155. Exterior angle of a cyclic quadrilateral when the opposite interior angle is given
  1156. Factorial of an Array of integers
  1157. Find the permutation p from the array q such that q[i] = p[i+1] - p[i]
  1158. Fibonacci Power
  1159. Print the degree of every node from the given Prufer sequence
  1160. Distance between centers of two intersecting circles if the radii and common chord length is given
  1161. Print the node with the maximum degree in the prufer sequence
  1162. Count duplicates in a given linked list
  1163. Find the largest possible k-multiple set
  1164. Length of the perpendicular bisector of the line joining the centers of two circles
  1165. Find the number of Chicks in a Zoo at Nth day
  1166. Check if the two given stacks are same
  1167. Find the smallest positive number missing from an unsorted array : Hashing Implementation
  1168. Sum of XOR of all sub-arrays of length K
  1169. Length of the largest substring which have character with frequency greater than or equal to half of the substring
  1170. Count pairs of characters in a string whose ASCII value difference is K
  1171. Find a way to fill matrix with 1's and 0's in blank positions
  1172. Maximum distance between two unequal elements
  1173. Number of ways to split a binary number such that every part is divisible by 2
  1174. Count of adjacent Vowel Consonant Pairs
  1175. Gap Buffer Data Structure
  1176. Largest sub-string where all the characters appear at least K times
  1177. Construct the Rooted tree by using start and finish time of its DFS traversal
  1178. Run Length Decoding in Linked List
  1179. Find if a binary matrix exists with given row and column sums
  1180. Area of a Regular Pentagram
  1181. Create a Sorted Array Using Binary Search
  1182. Count Distinct Rectangles in N*N Chessboard
  1183. Number of sub-sequence such that it has one consecutive element with difference less than or equal to 1
  1184. Total number of odd length palindrome sub-sequence around each centre
  1185. Print Upper Hessenberg matrix of order N
  1186. Find the node with minimum value in a Binary Search Tree using recursion
  1187. Number of ways to get a given sum with n number of m-faced dices
  1188. Order of indices which is lexicographically smallest and sum of elements is <= X
  1189. Count pairs of elements such that number of set bits in their OR is B[i]
  1190. Add Two Numbers Represented by Linked Lists | Set 3
  1191. Minimum operations to make sum of neighbouring elements <= X
  1192. Queries for number of distinct elements from a given index till last index in an array
  1193. Maximum number of region in which N non-parallel lines can divide a plane
  1194. Kth smallest element in the array using constant space when array can't be modified
  1195. Print first N terms of Lower Wythoff sequence
  1196. Delete Nth node from the end of the given linked list
  1197. Number of possible permutations when absolute difference between number of elements to the right and left are given
  1198. Find K vertices in the graph which are connected to at least one of remaining vertices
  1199. Check whether str1 can be converted to str2 with the given operations
  1200. Number of elements from the array which are reachable after performing given operations on D
  1201. Find the minimum number of elements that should be removed to make an array good
  1202. Construct a DFA which accept the language L = {w | w ∈ {a,b}* and Na(w) mod 3 = Nb (w) mod 3}
  1203. Bitonic point in the given linked list
  1204. Construct a DFA which accept the language L = {anbm | n > =1, (m) mod 3 = 1}
  1205. Reverse a Linked List in groups of given size (Iterative Approach)
  1206. Smallest number greater or equals to N such that it has no odd positioned bit set
  1207. Find a subarray whose sum is divisible by size of the array
  1208. Pair with a given sum in BST | Set 2
  1209. Find the minimum absolute difference in two different BST's
  1210. Pair with minimum absolute difference | BST
  1211. Add one to a number represented as linked list | Set 2
  1212. Find the number of paths of length K in a directed graph
  1213. Partition the string in two parts such that both parts have at least k different characters
  1214. Sort an array without changing position of negative numbers
  1215. Find the position of the given row in a 2-D array
  1216. Unbounded Fractional Knapsack
  1217. Find Leftmost and Rightmost node of BST from its given preorder traversal
  1218. Find a partition point in array to maximize its xor sum
  1219. Check if the given n-ary tree is a binary tree
  1220. Length of longest subarray in which elements greater than K are more than elements not greater than K
  1221. Count of strings in the first array which are smaller than every string in the second array
  1222. Find distinct characters in distinct substrings of a string
  1223. Check if it is possible to redistribute the Array
  1224. Count of non-overlapping sub-strings "101" and "010" in the given binary string
  1225. Programs to print Triangle and Diamond patterns using recursion
  1226. Number of Quadruples with GCD equal to K
  1227. Decimal to Binary using recursion and without using power operator
  1228. Remove Minimum coins such that absolute difference between any two piles is less than K
  1229. Count total set bits in all numbers from 1 to n | Set 2
  1230. Maximum length palindromic substring such that it starts and ends with given char
  1231. Print the lexicographically smallest array by swapping elements whose sum is odd
  1232. Find the number of words of X vowels and Y consonants that can be formed from M vowels and N consonants
  1233. Distinct strings such that they contains given strings as sub-sequences
  1234. Case-specific sorting of Strings in O(n) time and O(1) space
  1235. Minimum Bitwise OR operations to make any two array elements equal
  1236. Partition the array in K segments such that bitwise AND of individual segment sum is maximized
  1237. Count ways to divide circle using N non-intersecting chord | Set-2
  1238. Count equal pairs from given string arrays
  1239. Check if a number is Fermat Pseudoprime
  1240. Find k ordered pairs in array with minimum difference d
  1241. Maximum length sub-array which satisfies the given conditions
  1242. Program to Find the Incenter of a Triangle
  1243. Divide the array in K segments such that the sum of minimums is maximized
  1244. Find array such that no subarray has xor zero or Y
  1245. Sum of the Tan(x) expansion upto N terms
  1246. Find the number of occurrences of a character upto preceding position
  1247. Maximum sum contiguous nodes in the given linked list
  1248. Count of elements that can be deleted without disturbing the mean of the initial array
  1249. Find prime numbers in the first half and second half of an array
  1250. Minimum number of times A has to be repeated such that B is a substring of it
  1251. Print Binary Search Tree in Min Max Fashion
  1252. Euler zigzag numbers ( Alternating Permutation )
  1253. Find smallest positive number Y such that Bitwise AND of X and Y is Zero
  1254. Square root of a number without using sqrt() function
  1255. Program for sum of cosh(x) series upto Nth term
  1256. Modular Exponentiation of Complex Numbers
  1257. Check if the product of every contiguous subsequence is different or not in a number
  1258. Find the kth smallest number with sum of digits as m
  1259. Rearrange the characters of the string such that no two adjacent characters are consecutive English alphabets
  1260. Ramanujan Prime
  1261. Quadruplet pair with XOR zero in the given Array
  1262. Maximum Bitwise AND value of subsequence of length K
  1263. Largest substring with same Characters
  1264. Sum of prime numbers without odd prime digits
  1265. Maximum number of elements without overlapping in a Line
  1266. Remove Nth node from end of the Linked List
  1267. FCFS Disk Scheduling Algorithms
  1268. Sum of the sums of all possible subsets
  1269. Find the number of cells in the table contains X
  1270. How to learn Pattern printing easily?
  1271. Find the smallest positive number missing from an unsorted array | Set 3
  1272. Check whether two points (x1, y1) and (x2, y2) lie on same side of a given line or not
  1273. Find the maximum sum of digits of the product of two numbers
  1274. Find the Deepest Node in a Binary Tree Using Queue STL - SET 2
  1275. Lexicographical smallest alternate Array
  1276. Equal Sum and XOR of three Numbers
  1277. Minimum number of Binary strings to represent a Number
  1278. Number of Subsequences with Even and Odd Sum
  1279. Count Set-bits of number using Recursion
  1280. Minimize the cost of buying the Objects
  1281. Sum of digits with even number of 1's in their binary representation
  1282. Remove duplicates from unsorted array using Set data structure
  1283. Find the smallest positive number which can not be represented by given digits
  1284. Sum of all natural numbers from L to R ( for large values of L and R )
  1285. Number of Subsequences with Even and Odd Sum | Set 2
  1286. Count all the permutation of an array
  1287. Find all numbers between range L to R such that sum of digit and sum of square of digit is prime
  1288. Minimum given operations required to convert a given binary string to all 1's
  1289. Reverse every word of the string except the first and the last character
  1290. Count inversions in an array | Set 4 ( Using Trie )
  1291. First N terms whose sum of digits is a multiple of 10
  1292. Sand Timer Flip Counting Problem
  1293. Check if a number is Flavius Number
  1294. Swap Alternate Boundary Pairs
  1295. Probability such that two subset contains same number of elements
  1296. Sum of elements till the smallest index such that there are no even numbers to its right
  1297. Program to find the next prime number
  1298. Count the number of elements which are greater than any of element on right side of an array
  1299. Position of Elements which are equal to sum of all Preceding elements
  1300. Queries for rotation and Kth character of the given string in constant time
  1301. Number of substrings that start with "geeks" and end with "for"
  1302. Maximum XOR of Two Numbers in an Array
  1303. Delete the last leaf node in a Binary Tree
  1304. Find Kth element in an array containing odd elements first and then even elements
  1305. Nth Fibonacci number using Pell's equation
  1306. Area of the largest square that can be formed from the given length sticks using Hashing
  1307. Generate N integers satisfying the given conditions
  1308. Comparing X^Y and Y^X for very large values of X and Y
  1309. Largest substring of str2 which is a prefix of str1
  1310. Count the values greater than X in the modified array
  1311. Print even positioned nodes of odd levels in level order of the given binary tree
  1312. Print odd positioned nodes of even levels in level order of the given binary tree
  1313. Find permutation with maximum remainder Sum
  1314. Reverse the given string in the range [L, R]
  1315. Maximum OR value of a pair in an array
  1316. Print characters having even frequencies in order of occurrence
  1317. Queries for the smallest and the largest prime number of given digit
  1318. Count of numbers below N whose sum of prime divisors is K
  1319. Find the count of subsequences where each element is divisible by K
  1320. Generate an array having Bitwise AND of the previous and the next element
  1321. Count occurrences of a prime number in the prime factorization of every element from the given range
  1322. Make the list non-decreasing by changing only one digit of the elements
  1323. Write a function to get the intersection point of two Linked Lists | Set 2
  1324. Replace elements with absolute difference of smallest element on left and largest element on right
  1325. Number of Subarrays with positive product
  1326. Find number of subarrays with XOR value a power of 2
  1327. Find the minimum capacity of the train required to hold the passengers
  1328. Count total unset bits in all the numbers from 1 to N
  1329. Find the sum of all possible pairs in an array of N elements
  1330. Find out the prime numbers in the form of A+nB or B+nA
  1331. Count of triples (A, B, C) where A*C is greater than B*B
  1332. Count the number of subsequences of length k having equal LCM and HCF
  1333. Contiguous unique substrings with the given length L
  1334. Count of subsets not containing adjacent elements
  1335. Sum of the digits of square of the given number which has only 1's as its digits
  1336. XOR of elements in an array having prime frequency
  1337. Queries to check whether all the elements in the given range occurs even number of times
  1338. Sum of squares of all Subsets of given Array
  1339. Array containing power of 2 whose XOR and Sum of elements equals X
  1340. Find third number such that sum of all three number becomes prime
  1341. Count of Multiples of A ,B or C less than or equal to N
  1342. Total ways of selecting a group of X men from N men with or without including a particular man
  1343. Find the number of strings formed using distinct characters of a given string
  1344. Nth number in a set of multiples of A , B or C
  1345. Check if all elements of binary array can be made 1
  1346. Find numbers which are multiples of first array and factors of second array
  1347. Find the possible permutation of the bits of N
  1348. Count of N-digit numbers in base K with no two consecutive zeroes
  1349. Largest sub-matrix with all equal elements
  1350. Print nodes having maximum and minimum degrees
  1351. QuickSelect (A Simple Iterative Implementation)
  1352. Find Partition Line such that sum of values on left and right is equal
  1353. Minimize the cost of partitioning an array into K groups
  1354. Sum of Digits of the Good Strings
  1355. Minimum halls required for class scheduling
  1356. Find the count of natural Hexadecimal numbers of size N
  1357. Find a pair (n,r) in an integer array such that value of nCr is maximum
  1358. Maximize the expression (A AND X) * (B AND X) | Bit Manipulation
  1359. Minimum number of substrings the given string can be splitted into that satisfy the given conditions
  1360. Sum of numbers in a range [L, R] whose count of divisors is prime
  1361. Minimum number of additons to make the string balanced
  1362. Maximum number of line intersections formed through intersection of N planes
  1363. Program to find Nth odd Fibonacci Number
  1364. Longest Increasing Subsequence using Longest Common Subsequence Algorithm
  1365. Count of N-bit binary numbers without leading zeros
  1366. Find the next fibonacci number
  1367. Find missing elements from an Array
  1368. Maximum Sum of Products of two arrays by toggling adjacent bits
  1369. Divide the array into minimum number of sub-arrays having unique elements
  1370. Find the minimum value of X for an expression
  1371. Minimum increment or decrement operations required to make the array sorted
  1372. Largest Even and Odd N-digit numbers in Octal Number System
  1373. Number of coloured 0's in an N-level hexagon
  1374. Queries to find the count of characters preceding the given location
  1375. Program to print the Diagonals of a Matrix
  1376. Count number of ways to arrange first N numbers
  1377. Count non-adjacent subsets from numbers arranged in Circular fashion
  1378. Minimum, maximum and average price values for all the items of given type
  1379. Number of ways N can be divided into four parts to construct a rectangle
  1380. Length of the longest subsegment which is UpDown after inserting atmost one integer
  1381. Finding the converging element of the diagonals in a square matrix
  1382. Find the deleted value from the array when average of original elements is given
  1383. Probability that a random pair chosen from an array (a[i], a[j]) has the maximum sum
  1384. Count of matchsticks required to represent the given number
  1385. Number of K length subsequences with minimum sum
  1386. Maximum number of times str1 appears as a non-overlapping substring in str2
  1387. Generate an array B[] from the given array A[] which satisfies the given conditions
  1388. Number of subsets whose mean is maximum
  1389. Sum of all the numbers in the Nth parenthesis
  1390. Calculate the Sum of GCD over all subarrays
  1391. Minimum numbers with one's place as 9 to be added to get N
  1392. Number of cells in the Nth order figure
  1393. Find parent of each node in a tree for multiple queries
  1394. Find distance of nodes from root in a tree for multiple queries
  1395. Sum of all the numbers in the Nth row of the given triangle
  1396. Check if a given number is factorial of any number
  1397. Make the array non-decreasing with the given operation
  1398. Count of pairs in an array such that the highest power of 2 that divides their product is 1
  1399. Find the number of positive integers less than or equal to N that have an odd number of digits
  1400. Number of index pairs such that s[i] and s[j] are anagrams
  1401. Increasing permutation of first N natural numbers
  1402. Coxeter method to construct the magic square
  1403. Minimize sum by dividing all elements of a subarray by K
  1404. Count of integers obtained by replacing ? in the given string that give remainder 5 when divided by 13
  1405. Find count of pair of nodes at even distance
  1406. Check if given path between two nodes of a graph represents a shortest paths
  1407. Maximum sum of minimums of pairs in an array
  1408. Find the player who will win the Coin game
  1409. Minimum number of moves to reach N starting from (1, 1)
  1410. Find the number of squares inside the given square grid
  1411. Maximum circular subarray sum of size K
  1412. Find the smallest subarray having atleast one duplicate
  1413. Count of subsets with sum equal to X
  1414. Sum of all the numbers present at given level in Modified Pascal’s triangle
  1415. Count of squares that can be drawn without lifting the pencil
  1416. Number of subsets with a given AND value
  1417. Longest sub-sequence with minimum LCM
  1418. Number of subsets with a given OR value
  1419. Sum of subsets of all the subsets of an array | O(2^N)
  1420. Sum of subsets of all the subsets of an array | O(N)
  1421. Longest subsequence whose sum is divisible by a given number
  1422. Find all palindrome numbers of given digits
  1423. Number of non-decreasing sub-arrays of length less than or equal to K
  1424. Maximum number of splits of a binary number
  1425. Longest subsequence with a given AND value | O(N)
  1426. Check the divisibility of Hexadecimal numbers
  1427. Convert a Singly Linked List to an array
  1428. Permute the elements of an array following given order
  1429. Form N by adding 1 or 2 in minimum number of operations X where X is divisible by M
  1430. Minimum difference between any two primes from the given range
  1431. Maximum prime moves to convert X to Y
  1432. Longest subsequence with a given OR value : Dynamic Programming Approach
  1433. Program for nth Fuss–Catalan Number
  1434. Rearrange array elements such that Bitwise AND of first N - 1 elements is equal to last element
  1435. Smallest subarray with GCD as 1 | Segment Tree
  1436. Number of subsets with sum divisible by M | Set 2
  1437. Find the sum of remaining sticks after each iterations
  1438. Maximum sum subarray of even length
  1439. Diameter of a Binary Indexed Tree with N nodes
  1440. Check whether a node is leaf node or not for multiple queries
  1441. Convert a String to a Singly Linked List
  1442. Calculate the number of set bits for every number from 0 to N
  1443. Check whether the given decoded string is divisible by 6
  1444. Minimum possible travel cost among N cities
  1445. Find the parent of a node in the given binary tree
  1446. Form a Spiral Matrix from the given Array
  1447. Index of character depending on frequency count in string
  1448. N consecutive ropes problem
  1449. Minimum cost to reverse edges such that there is path between every pair of nodes
  1450. Sum of the updated array after performing the given operation
  1451. Clockwise rotation of Doubly Linked List by N places
  1452. Maximize sum by choosing elements from different section of a matrix
  1453. Maximum frequency of a remainder modulo 2i
  1454. Maximum number of consecutive 1's in binary representation of all the array elements
  1455. Compare numbers represented by Linked Lists
  1456. Minimum operations required to make the string satisfy the given condition
  1457. Check if there exists a connected graph that satisfies the given conditions
  1458. Find extra element in the second array
  1459. Maximum possible remainder when an element is divided by other element in the array
  1460. Program to show Belady's Anomaly
  1461. Number of subsequences of maximum length K containing no repeated elements
  1462. Maximum possible array sum after performing the given operation
  1463. Minimize the number by changing at most K digits
  1464. Sum of all the prime numbers with the maximum position of set bit ≤ D
  1465. Count of times second string can be formed from the characters of first string
  1466. Maximize distance between any two consecutive 1's after flipping M 0's
  1467. Maximum possible GCD after replacing at most one element in the given array
  1468. Count of indices in an array that satisfy the given condition
  1469. Count of integers from the range [0, N] whose digit sum is a multiple of K
  1470. Check if the level order traversal of a Binary Tree results in a palindrome
  1471. Restore a permutation from the given helper array
  1472. Check if there exists a prime number which gives Y after being repeatedly subtracted from X
  1473. Minimum cost to partition the given binary string
  1474. Minimize the sum of digits of A and B such that A + B = N
  1475. Check whether the given string is Palindrome using Stack
  1476. Find an integer in the given range that satisfies the given conditions
  1477. Sum of all N digit palindrome numbers
  1478. Longest subsequence having difference atmost K
  1479. Reduce the number to minimum multiple of 4 after removing the digits
  1480. Print all palindrome dates between the given years
  1481. Minimum cells to be flipped to get a 2*2 submatrix with equal elements
  1482. Count of nodes that are greater than Ancestors
  1483. Count of primes below N which can be expressed as the sum of two primes
  1484. Goldbach's Weak Conjecture for Odd numbers
  1485. Find all the possible remainders when N is divided by all positive integers from 1 to N+1
  1486. Maximum sum combination from the given array
  1487. Find the final number obtained after performing the given operation
  1488. Check if a symmetric plus is possible from the elements of the given array
  1489. Check if given string contains all the digits
  1490. Winner in the Rock-Paper-Scissor game using Bit manipulation
  1491. Print all perfect squares from the given range
  1492. Count subarrays such that remainder after dividing sum of elements by K gives count of elements
  1493. Minimum steps to get 1 at the center of a binary matrix
  1494. Number of cells in a matrix that satisfy the given condition
  1495. Create a sorted linked list from the given Binary Tree
  1496. Count of subarrays having exactly K distinct elements
  1497. Find if the glass will be empty or not when the rate of drinking is given
  1498. Minimum count of Full Binary Trees such that the count of leaves is N
  1499. Knapsack with large Weights
  1500. Remove one element to get minimum OR value
  1501. Remove one element to get maximum XOR
  1502. Number of subsequences in a given binary string divisible by 2
  1503. Remove minimum numbers from the array to get minimum OR value
  1504. Number of subsequences with positive product
  1505. Remove vowels from a string stored in a Binary Tree
  1506. Count the total number of triangles after Nth operation
  1507. Number of pairs in an array having sum equal to product
  1508. Queries On Array with disappearing and reappearing elements
  1509. Number of sub-sequences of non-zero length of a binary string divisible by 3
  1510. Longest sub-sequence of a binary string divisible by 3
  1511. Check if N rectangles of equal area can be formed from (4 * N) integers
  1512. Minimum cost to traverse from one index to another in the String
  1513. Minimum cost to reach from the top-left to the bottom-right corner of a matrix
  1514. Number of trailing zeros in N * (N - 2) * (N - 4)*....
  1515. Maximum XOR value of maximum and second maximum element among all possible subarrays
  1516. Prime Numbers present at Kth level of a Binary Tree
  1517. Count of 1's in any path in a Binary Tree
  1518. Radius of the inscribed circle within three tangent circles
  1519. Find two numbers with the given LCM and minimum possible difference
  1520. Problem in comparing Floating point numbers and how to compare them correctly?
  1521. Maximum product of sum of two contiguous subarrays of an array
  1522. Smallest number greater than n that can be represented as a sum of distinct power of k