1. Find Nth term of the series 1, 6, 18, 40, 75, ....
  2. Find Nth term of the series 1, 5, 32, 288 ...
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. Remove duplicates from a given string
  2. Program for n'th node from the end of a Linked List
  3. Write a function to get Nth node in a Linked List
  4. Write a function that counts the number of times a given int occurs in a Linked List
  5. Given only a pointer to a node to be deleted in a singly linked list, how do you delete it?
  6. Compute the minimum or maximum of two integers without branching
  7. Level Order Tree Traversal
  8. Split a Circular Linked List into two halves
  9. Delete a node in a Doubly Linked List
  10. Identical Linked Lists
  11. Foldable Binary Trees
  12. Find Union and Intersection of two unsorted arrays
  13. Find duplicates in O(n) time and O(1) extra space | Set 1
  14. Program for Fibonacci numbers
  15. Find the smallest window in a string containing all characters of another string
  16. Naive algorithm for Pattern Searching
  17. Rabin-Karp Algorithm for Pattern Searching
  18. Segregate even and odd nodes in a Linked List
  19. Trie | (Insert and Search)
  20. Smallest of three integers without comparison operators
  21. Analysis of Algorithms | Set 2 (Worst, Average and Best Cases)
  22. Populate Inorder Successor for all nodes
  23. AVL Tree | Set 1 (Insertion)
  24. AVL Tree | Set 2 (Deletion)
  25. Find a triplet that sum to a given value
  26. Boyer Moore Algorithm for Pattern Searching
  27. Find the smallest positive number missing from an unsorted array | Set 1
  28. Rotate a Linked List
  29. Check whether a given Binary Tree is Complete or not | Set 1 (Iterative Solution)
  30. Find the largest multiple of 3 | Set 1 (Using Queue)
  31. Find the element that appears once
  32. Count the number of possible triangles
  33. Lexicographic rank of a string
  34. Binary representation of a given number
  35. The Stock Span Problem
  36. Segment Tree | Set 1 (Sum of given range)
  37. Segment Tree | Set 2 (Range Minimum Query)
  38. Largest Independent Set Problem | DP-26
  39. Flatten a multilevel linked list
  40. Maximum sum rectangle in a 2D matrix | DP-27
  41. Reverse Level Order Traversal
  42. Counting Sort
  43. Construct Complete Binary Tree from its Linked List Representation
  44. Remove BST keys outside the given range
  45. Remove "b" and "ac" from a given string
  46. Ford-Fulkerson Algorithm for Maximum Flow Problem
  47. Check for Identical BSTs without building the trees
  48. How to check if two given line segments intersect?
  49. Find minimum s-t cut in a flow network
  50. Merge a linked list into another linked list at alternate positions
  51. Find maximum number of edge disjoint paths between two vertices
  52. Pairwise swap elements of a given linked list by changing links
  53. Find if two rectangles overlap
  54. Given a linked list, reverse alternate nodes and append at the end
  55. Print a Binary Tree in Vertical Order | Set 1
  56. Remove minimum elements from either side such that 2*min becomes more than max
  57. Check if a given string is a rotation of a palindrome
  58. Boolean Parenthesization Problem | DP-37
  59. Mobile Numeric Keypad Problem
  60. Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes
  61. Binary Indexed Tree or Fenwick Tree
  62. Flood fill Algorithm - how to implement fill() in paint?
  63. Nuts & Bolts Problem (Lock & Key problem) | Set 1
  64. Given a binary string, count number of substrings that start and end with 1.
  65. Boggle (Find all possible words in a board of characters) | Set 1
  66. Find the element that appears once in an array where every other element appears twice
  67. Find maximum depth of nested parenthesis in a string
  68. Find number of days between two given dates
  69. How to print maximum number of A's using given four keys
  70. Group multiple occurrence of array elements ordered by first occurrence
  71. Swap nodes in a linked list without swapping data
  72. Point to next higher value node in a linked list with an arbitrary pointer
  73. Compute n! under modulo p
  74. Converting Decimal Number lying between 1 to 3999 to Roman Numerals
  75. Find the nearest smaller numbers on left side in an array
  76. Remove spaces from a given string
  77. Find sum of all elements in a matrix except the elements in row and/or column of given cell?
  78. Collect maximum points in a grid using two traversals
  79. Validity of a given Tic-Tac-Toe board configuration
  80. Find the length of largest subarray with 0 sum
  81. Find the largest rectangle of 1's with swapping of columns allowed
  82. Find all possible outcomes of a given expression
  83. Given a Boolean Matrix, find k such that all elements in k'th row are 0 and k'th column are 1.
  84. Rearrange a given linked list in-place.
  85. How to check if a given array represents a Binary Heap?
  86. Find Minimum Depth of a Binary Tree
  87. Find shortest unique prefix for every word in a given list | Set 1 (Using Trie)
  88. Range Minimum Query (Square Root Decomposition and Sparse Table)
  89. Reverse a string without affecting special characters
  90. Reorder an array according to given indexes
  91. Combinatorial Game Theory | Set 3 (Grundy Numbers/Nimbers and Mex)
  92. Check if a given number is Fancy
  93. Count number of paths with at-most k turns
  94. Count number of ways to divide a number in 4 parts
  95. Orientation of 3 ordered points
  96. Print Concatenation of Zig-Zag String in 'n' Rows
  97. Form minimum number from given sequence
  98. Number of Integral Points between Two Points
  99. Construct a Binary Search Tree from given postorder
  100. Iterative function to check if two trees are identical
  101. Querying maximum number of divisors that a number in a given range has
  102. Rearrange a linked list such that all even and odd positioned nodes are together
  103. Rearrange a Linked List in Zig-Zag fashion
  104. Add 1 to a number represented as linked list
  105. Point arbit pointer to greatest value right side node in a linked list
  106. Check if a linked list of strings forms a palindrome
  107. Convert a Binary Tree into Doubly Linked List in spiral fashion
  108. Caesar Cipher in Cryptography
  109. Combinatorial Game Theory | Set 4 (Sprague - Grundy Theorem)
  110. Combinations with repetitions
  111. Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
  112. Cuckoo Hashing - Worst case O(1) Lookup!
  113. Return previous element in an expanding matrix
  114. Absolute distinct count in a sorted array
  115. Printing Shortest Common Supersequence
  116. Find if string is K-Palindrome or not | Set 1
  117. Merge K sorted linked lists | Set 1
  118. Counting Triangles in a Rectangular space using BIT
  119. Smallest Subarray with given GCD
  120. Longest Common Prefix using Character by Character Matching
  121. Maximum value K such that array has at-least K elements that are >= K
  122. Lower case to upper case - An interesting fact
  123. Longest Common Prefix using Binary Search
  124. Remove duplicates from an array of small primes
  125. Find if string is K-Palindrome or not | Set 2
  126. Rearrange positive and negative numbers with constant extra space
  127. Flatten a multi-level linked list | Set 2 (Depth wise)
  128. Jolly Jumper Sequence
  129. Calculate sum of all numbers present in a string
  130. Sub-string Divisibility by 3 Queries
  131. Find longest palindrome formed by removing or shuffling chars from string
  132. Check if string follows order of characters defined by a pattern or not | Set 1
  133. Longest Geometric Progression
  134. Rearrange a given list such that it consists of alternating minimum maximum elements
  135. Check if an array can be Arranged in Left or Right Positioned Array
  136. A Space Optimized DP solution for 0-1 Knapsack Problem
  137. Count digit groupings of a number with given constraints
  138. Count permutations that produce positive result
  139. Pairs of complete strings in two sets of strings
  140. Frequency Measuring Techniques for Competitive Programming
  141. Binary Indexed Tree : Range Updates and Point Queries
  142. Count and Toggle Queries on a Binary Array
  143. Vigenère Cipher
  144. Traveling Salesman Problem using Branch And Bound
  145. Longest common subsequence with permutations allowed
  146. Arrays.fill() in Java with Examples
  147. Queries in a Matrix
  148. Check if a string has all characters with same frequency with one variation allowed
  149. Maximum mirrors which can transfer light from bottom to right
  150. Remove minimum number of characters so that two strings become anagram
  151. Smallest Palindrome after replacement
  152. Count all pairs with given XOR
  153. Sort a string according to the order defined by another string
  154. Aliquot Sequence
  155. Sum of maximum elements of all subsets
  156. Find next Smaller of next Greater in an array
  157. Minimum Product Spanning Tree
  158. Maximum sum of nodes in Binary tree such that no two are adjacent
  159. Check if given sorted sub-sequence exists in binary search tree
  160. Print matrix in diagonal pattern
  161. Count pairs whose products exist in array
  162. Minimum characters to be added at front to make string palindrome
  163. Two Clique Problem (Check if Graph can be divided in two Cliques)
  164. Subarrays with distinct elements
  165. Partitioning a linked list around a given value and keeping the original order
  166. Find all permuted rows of a given row in a matrix
  167. Find all distinct subset (or subsequence) sums of an array
  168. Sort even-placed elements in increasing and odd-placed in decreasing order
  169. Check if all rows of a matrix are circular rotations of each other
  170. Program to implement Collatz Conjecture
  171. Depth of the deepest odd level node in Binary Tree
  172. Find pair with greatest product in array
  173. K-th smallest element after removing some integers from natural numbers
  174. Find elements which are present in first array and not in second
  175. Sqrt (or Square Root) Decomposition Technique | Set 1 (Introduction)
  176. Break an array into maximum number of sub-arrays such that their averages are same
  177. Find three element from different three arrays such that that a + b + c = sum
  178. Queries on substring palindrome formation
  179. Pairs of Amicable Numbers
  180. Primitive root of a prime number n modulo n
  181. Check whether row or column swaps produce maximum size binary sub-matrix with all 1s
  182. Sparse Matrix and its representations | Set 1 (Using Arrays and Linked Lists)
  183. Make two sets disjoint by removing minimum elements
  184. Friends Pairing Problem
  185. Printing all solutions in N-Queen Problem
  186. Implementation of Affine Cipher
  187. Check if there exist two elements in an array whose sum is equal to the sum of rest of the array
  188. Find coordinates of the triangle given midpoint of each side
  189. Check if reversing a sub array make the array sorted
  190. Circular Singly Linked List | Insertion
  191. Minimum operations required to set all elements of binary matrix
  192. Print consecutive characters together in a line
  193. Print all valid words that are possible using Characters of Array
  194. Program for Goldbach’s Conjecture (Two Primes with given Sum)
  195. Program for FCFS CPU Scheduling | Set 2 (Processes with different arrival times)
  196. Count all pairs of an array which differ in K bits
  197. Check if two arrays are equal or not
  198. Sort an array of large numbers
  199. Find the missing number in a string of numbers with no separator
  200. Find longest sequence of 1's in binary representation with one flip
  201. Count substrings with same first and last characters
  202. Find the Deepest Node in a Binary Tree
  203. Point Clipping Algorithm in Computer Graphics
  204. Check whether K-th bit is set or not
  205. Find all pairs (a,b) and (c,d) in array which satisfy ab = cd
  206. Find sum of non-repeating (distinct) elements in an array
  207. Move all occurrences of an element to end in a linked list
  208. Number of substrings divisible by 6 in a string of integers
  209. Count half nodes in a Binary tree (Iterative and Recursive)
  210. Circular Matrix (Construct a matrix with numbers 1 to m*n in spiral way)
  211. Find the next identical calendar year
  212. Nth Square free number
  213. Smallest length string with repeated replacement of two distinct adjacent
  214. Number of occurrences of 2 as a digit in numbers from 0 to n
  215. Number of sink nodes in a graph
  216. Check if two arrays are permutations of each other
  217. Generate all binary permutations such that there are more or equal 1's than 0's before every point in all permutations
  218. Print All Distinct Elements of a given integer array
  219. Program to find remainder without using modulo or % operator
  220. Remove recurring digits in a given number
  221. Check if a sorted array can be divided in pairs whose sum is k
  222. Binary Search Tree | Set 2 (Delete)
  223. Print level order traversal line by line | Set 1
  224. Linked List | Set 1 (Introduction)
  225. Find Length of a Linked List (Iterative and Recursive)
  226. Search an element in a Linked List (Iterative and Recursive)
  227. Delete last occurrence of an item from linked list
  228. Stack | Set 3 (Reverse a string using stack)
  229. Stack Data Structure (Introduction and Program)
  230. Doolittle Algorithm : LU Decomposition
  231. Move spaces to front of string in single traversal
  232. Count full nodes in a Binary tree (Iterative and Recursive)
  233. Left Rotation and Right Rotation of a String
  234. Convert characters of a string to opposite case
  235. Reverse an array without using subtract sign ‘-‘ anywhere in the code
  236. Largest subset whose all elements are Fibonacci numbers
  237. K-th Element of Two Sorted Arrays
  238. Ropes Data Structure (Fast String Concatenation)
  239. Determine if a string has all Unique Characters
  240. Find index of an extra element present in one sorted array
  241. Delete leaf nodes with value as x
  242. Find the n-th number made of even digits only
  243. Biggest number by arranging numbers in certain order
  244. Dynamic Connectivity | Set 1 (Incremental)
  245. Closest (or Next) smaller and greater numbers with same number of set bits
  246. Check for Symmetric Binary Tree (Iterative Approach)
  247. Maximum sum in a 2 x n grid such that no two elements are adjacent
  248. First negative integer in every window of size k
  249. Sum of product of all pairs of array elements
  250. Check whether the length of given linked list is Even or Odd
  251. Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
  252. Find uncommon characters of the two strings
  253. Check if a king can move a valid move or not when N nights are there in a modified chessboard
  254. String containing first letter of every word in a given string with spaces
  255. Program to print all substrings of a given string
  256. Multiply two numbers represented by Linked Lists
  257. Reverse vowels in a given string
  258. Count pairs from two sorted arrays whose sum is equal to a given value x
  259. Arrange consonants and vowels nodes in a linked list
  260. Minimum Fibonacci terms with sum equal to K
  261. Find a pair of elements swapping which makes sum of two arrays same
  262. Find the sum of last n nodes of the given Linked List
  263. Subarray Inversions
  264. Count quadruples from four sorted arrays whose sum is equal to a given value x
  265. Keyword Cipher
  266. Lexicographically n-th permutation of a string
  267. DFA for accepting the language L = { anbm | n+m=even }
  268. Maximum sum from a tree with adjacent levels not allowed
  269. Count of integers of length N and value less than K such that they contain digits only from the given set
  270. Convert all substrings of length 'k' from base 'b' to decimal
  271. Tracking current Maximum Element in a Stack
  272. Check if binary representation of a given number and its complement are anagram
  273. Count of Numbers in Range where the number does not contain more than K non zero digits
  274. Ways of transforming one string to other by removing 0 or more characters
  275. Largest even number possible by using one swap operation in given number
  276. Counts Path in an Array
  277. Find maximum number that can be formed using digits of a given number
  278. Maximum possible sum of a window in an array such that elements of same window in other array are unique
  279. Compute average of two numbers without overflow
  280. Calculate number of nodes in all subtrees | Using DFS
  281. Construct a linked list from 2D matrix
  282. Counting the number of words in a Trie
  283. Print the longest common substring
  284. Find if an array contains a string with one mismatch
  285. Recursive program to print formula for GCD of n integers
  286. Merge two sorted lists (in-place)
  287. Print all subsequences of a string
  288. Insert node into the middle of the linked list
  289. Check if stack elements are pairwise consecutive
  290. Find root of the tree where children id sum for every node is given
  291. Find the n-th number whose binary representation is a palindrome
  292. Generating distinct subsequences of a given string in lexicographic order
  293. Count ways to build street under given constraints
  294. Frequency of a string in an array of strings
  295. Balance pans using given weights that are powers of a number
  296. Remove duplicates from a sorted linked list using recursion
  297. Greatest divisor which divides all natural number in range [L, R]
  298. Binary array after M range toggle operations
  299. Remove all leaf nodes from the binary search tree
  300. Longest word in ternary search tree
  301. Sort a linked list of 0s, 1s and 2s by changing links
  302. Sort an array according to absolute difference with a given value "using constant extra space"
  303. Check if two unsorted arrays (with duplicates allowed) have same elements
  304. Binary representation of previous number
  305. Pattern Printing question asked in CGI Coding Round
  306. Lexicographically smallest permutation of {1, .. n} such that no. and position do not match
  307. Insert a node after the n-th node from the end
  308. Number of substrings with count of each character as k
  309. Number of steps required to convert a binary number to one
  310. Exchange first and last nodes in Circular Linked List
  311. Maximum area rectangle by picking four sides from array
  312. Maximum number of edges to be added to a tree so that it stays a Bipartite graph
  313. Count unset bits of a number
  314. Smallest number k such that the product of digits of k is equal to n
  315. Lexicographically first alternate vowel and consonant string
  316. Difference between highest and least frequencies in an array
  317. Check if a number has bits in alternate pattern | Set-2 O(1) Approach
  318. Check if given Preorder, Inorder and Postorder traversals are of same tree
  319. Longest Increasing Path in Matrix
  320. Count single node isolated sub-graphs in a disconnected graph
  321. Construct Full Binary Tree using its Preorder traversal and Preorder traversal of its mirror tree
  322. Unique element in an array where all elements occur k times except one
  323. Inorder Successor of a node in Binary Tree
  324. Maximum Possible Product in Array after performing given Operations
  325. Count of alphabets having ASCII value less than and greater than k
  326. Largest number with one swap allowed
  327. Aspiring Number
  328. Find smallest and largest elements in singly linked list
  329. Sudo Placement[1.4] | K Sum
  330. Generate all passwords from given character set
  331. Longest Repeated Subsequence
  332. Happy Numbers
  333. Sort a Rotated Sorted Array
  334. Longest increasing sublist in a linked list
  335. Mean of range in array
  336. Distance of closest zero to every element
  337. Combinations in a String of Digits
  338. Cycles of length n in an undirected and connected graph
  339. Maximize value of (a[i]+i)*(a[j]+j) in an array
  340. k-th missing element in increasing sequence which is not present in a given sequence
  341. Counting inversions in all subarrays of given size
  342. Print k numbers where all pairs are divisible by m
  343. Programming puzzle (Assign value without any control statement)
  344. Remove all consecutive duplicates from the string
  345. Cumulative frequency of count of each element in an unsorted array
  346. Count of strings that can be formed from another string using each character at-most once
  347. Maximum number of characters between any two same character in a string
  348. Program to sort string in descending order
  349. Recursive function to delete k-th node from linked list
  350. Modify a bit at a given position
  351. Counting cross lines in an array
  352. Replace a character c1 with c2 and c2 with c1 in a string S
  353. Remove all characters other than alphabets from string
  354. Largest smaller number possible using only one swap operation
  355. Divisors of n-square that are not divisors of n
  356. Distributing items when a person cannot take more than two items of same type
  357. Largest number less than or equal to N in BST (Iterative Approach)
  358. Dividing an array into two halves of same sum
  359. Make three non-empty sets with negative, positive and 0 products
  360. Sorting using trivial hash function
  361. Count sub-arrays which have elements less than or equal to X
  362. Last seen array element (last appearance is earliest)
  363. Mirror of matrix across diagonal
  364. Frequency of a substring in a string
  365. Change string to a new character set
  366. Smallest number whose set bits are maximum in a given range
  367. Generate original array from an array that store the counts of greater elements on right
  368. Find minimum shift for longest common prefix
  369. Minimum jumps to reach last building in a matrix
  370. Program to find the minimum (or maximum) element of an array
  371. Split the string into substrings using delimiter
  372. Unset the last m bits
  373. Sum of first K even-length Palindrome numbers
  374. Find largest element from array without using conditional operator
  375. Largest divisible pairs subset
  376. DFS traversal of a tree using recursion
  377. Count of suffix increment/decrement operations to construct a given array
  378. Encrypt string with product of number of vowels and consonants in substring of size k
  379. Modify and Rearrange List
  380. Minimum number of points to be removed to get remaining points on one side of axis
  381. First common element in two linked lists
  382. Print reverse of a Linked List without extra space and modifications
  383. Program to print right and left arrow patterns
  384. Change the array into a permutation of numbers from 1 to n
  385. Count subarrays with equal number of 1's and 0's
  386. Program for triangular patterns of alphabets
  387. Value of k-th index of a series formed by append and insert MEX in middle
  388. Count Non-Leaf nodes in a Binary Tree
  389. Evaluation of Prefix Expressions
  390. Rearrange an array such that arr[i] = i
  391. Vertical width of Binary tree | Set 1
  392. Longest sub-array having sum k
  393. Distance between two closest minimum
  394. Check if an array is stack sortable
  395. Deepest right leaf node in a binary tree | Iterative approach
  396. Banker's Algorithm in Operating System
  397. Merge 3 Sorted Arrays
  398. Check if an array has a majority element
  399. Delete a linked list using recursion
  400. Maximum rational number (or fraction) from an array
  401. Partitioning into two contiguous element subarrays with equal sums
  402. Find number of pairs in an array such that their XOR is 0
  403. Find the Number which contain the digit d
  404. Print all combinations of factors (Ways to factorize)
  405. Check if the given number K is enough to reach the end of an array
  406. Lexicographical concatenation of all substrings of a string
  407. Queries for frequencies of characters in substrings
  408. Largest value in each level of Binary Tree
  409. Linked List Pair Sum
  410. Majority element in a linked list
  411. Largest value in each level of Binary Tree | Set-2 (Iterative Approach)
  412. Expression contains redundant bracket or not
  413. Count pairs from two sorted matrices with given sum
  414. Leaf nodes from Preorder of a Binary Search Tree (Using Recursion)
  415. N Queen in O(n) space
  416. HCF of array of fractions (or rational numbers)
  417. Non-Repeating Element
  418. Iterative approach for removing middle points in a linked list of line segements
  419. Compute the maximum power with a given condition
  420. Program to copy the contents of one array into another in the reverse order
  421. Prefix to Postfix Conversion
  422. Array Index with same count of even or odd numbers on both sides
  423. Top three elements in binary tree
  424. Find maximum number of elements such that their absolute difference is less than or equal to 1
  425. Find set of m-elements with difference of any two elements is divisible by k
  426. Check whether bits are in alternate pattern in the given range | Set-2
  427. Minimum steps to reach target by a Knight | Set 2
  428. Longest Path with Same Values in a Binary Tree
  429. Program to check if matrix is singular or not
  430. Sum of heights of all individual nodes in a binary tree
  431. Smallest value in each level of Binary Tree
  432. Convert String into Binary Sequence
  433. Check given array of size n can represent BST of n levels or not
  434. Total area of two overlapping rectangles
  435. Find the only repetitive element between 1 to n-1
  436. Power Set in Lexicographic order
  437. Function to copy string (Iterative and Recursive)
  438. Check if any valid sequence is divisible by M
  439. Append a digit in the end to make the number equal to the length of the remaining string
  440. Rank of an element in a stream
  441. Find one extra character in a string
  442. Delete array elements which are smaller than next or become smaller
  443. Largest subset with maximum difference as 1
  444. Maximum Product Subarray | Added negative product case
  445. Booth’s Multiplication Algorithm
  446. Sum of nodes at maximum depth of a Binary Tree
  447. Rosser's Theorem
  448. Euclid Euler Theorem
  449. Count substrings with each character occurring at most k times
  450. Longest common suffix of two linked lists
  451. Double elements and append zeros in linked list
  452. DFA for Strings not ending with "THE"
  453. Check if it possible to partition in k subarrays with equal sum
  454. Balanced expression with replacement
  455. Vertical width of Binary tree | Set 2
  456. Count numbers formed by given two digit with sum having given digits
  457. Two Dimensional Segment Tree | Sub-Matrix Sum
  458. Number of siblings of a given Node in n-ary Tree
  459. Program for Gauss-Jordan Elimination Method
  460. Maximum average sum partition of an array
  461. Find all palindromic sub-strings of a given string | Set 2
  462. Palindrome by swapping only one character
  463. Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
  464. Find Sum of all unique sub-array sum for a given array.
  465. Print reverse string after removing vowels
  466. Longest substring of 0s in a string formed by k concatenations
  467. Maximum in an array that can make another array sorted
  468. Program to reverse a string (Iterative and Recursive)
  469. Minimum bit changes in Binary Circular array to reach a index
  470. Construct array having X subsequences with maximum difference smaller than d
  471. Check if it is possible to make the given matrix increasing matrix or not
  472. Count pairs with set bits sum equal to K
  473. Preorder predecessor of a Node in Binary Tree
  474. Minimum swaps so that binary search can be applied
  475. System of Linear Equations in three variables using Cramer's Rule
  476. Maximum product quadruple (sub-sequence of size 4) in array
  477. Largest set with bitwise OR equal to n
  478. Find the largest Complete Subtree in a given Binary Tree
  479. Partition negative and positive without comparison with 0
  480. Check whether the number formed by concatenating two numbers is a perfect square or not
  481. In-Place Algorithm
  482. Multiset Equivalence Problem
  483. Smallest number with given sum of digits and sum of square of digits
  484. Vieta's Formulas
  485. Check for balanced parenthesis without using stack
  486. First X vowels from a string
  487. Find the closest element in Binary Search Tree | Space Efficient Method
  488. Find the number of operations required to make all array elements Equal
  489. Recursive program to generate power set
  490. Repeated Character Whose First Appearance is Leftmost
  491. Inorder predecessor and successor for a given key in BST | Iterative Approach
  492. Check if X can give change to every person in the Queue
  493. Check if a binary tree is sorted level-wise or not
  494. Find the probability of reaching all points after N moves from point N
  495. Minimum steps to reach end from start by performing multiplication and mod operations with array elements
  496. kth smallest/largest in a small range unsorted array
  497. Minimum number of adjacent swaps for arranging similar elements together
  498. Sum of K largest elements in BST using O(1) Extra space
  499. Minimum inverting factor in an array
  500. Modify string by removing vowels in between two consonants
  501. Level order traversal with direction change after every two levels | Recursive Approach
  502. Minimum operations required to make all the elements distinct in an array
  503. Number of Larger Elements on right side in a string
  504. Count inversions of size k in a given array
  505. Sudo Placement | Beautiful Pairs
  506. Check if concatenation of two strings is balanced or not
  507. Count of elements of an array present in every row of NxM matrix
  508. Maximum parent children sum in Binary tree
  509. Sudo Placement[1.3] | Stack Design
  510. Sum of all even frequency elements in Matrix
  511. Sudo Placement[1.3] | Playing with Stacks
  512. Sudo Placement[1.3] | Final Destination
  513. Delete all the even nodes from a Doubly Linked List
  514. Array elements that appear more than once
  515. Find index of first occurrence when an unsorted array is sorted
  516. Sudo Placement[1.5] | Wolfish
  517. Average of ASCII values of characters of a given string
  518. Maximum distinct lines passing through a single point
  519. Sort first half in ascending and second half in descending order | Set 2
  520. Shortest distance between two nodes in an infinite binary tree
  521. Find indices of all occurrence of one string in other
  522. Longest subsequence whose average is less than K
  523. Insertion at Specific Position in a Circular Doubly Linked List
  524. Minimize the difference between minimum and maximum elements
  525. Possible number of Rectangle and Squares with the given set of elements
  526. Maximum value of XOR among all triplets of an array
  527. First element greater than or equal to X in prefix sum of N numbers using Binary Lifting
  528. Program to print Sine-Wave Pattern
  529. Delete array element in given index range [L - R]
  530. Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
  531. Program to Print Mirror Image of Sine-Wave Pattern
  532. Substring Sort
  533. Reduce a number to 1 by performing given operations
  534. Next Smaller Element
  535. Counting frequencies of array elements
  536. Difference between fundamental data types and derived data types
  537. Find total number of distinct years from a string
  538. Number of divisors of product of N numbers
  539. Minimum multiplications with {2, 3, 7} to make two numbers equal
  540. Prim's Algorithm (Simple Implementation for Adjacency Matrix Representation)
  541. Kruskal's Algorithm (Simple Implementation for Adjacency Matrix)
  542. Balanced expressions such that given positions have opening brackets | Set 2
  543. Sum of decimal equivalent of all possible pairs of Binary representation of a Number
  544. Check if the first and last digit of the smallest number forms a prime
  545. Number of prime pairs in an array
  546. Count number of primes in an array
  547. Count ways to reach a score using 1 and 2 with no consecutive 2s
  548. Sum of the nodes of a Singly Linked List
  549. Find count of common nodes in two Doubly Linked Lists
  550. Find the maximum sum of Plus shape pattern in a 2-D array
  551. Count elements that are divisible by at-least one element in another array
  552. Check if a line at 45 degree can divide the plane into two equal weight parts
  553. For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
  554. Find four factors of N with maximum product and sum equal to N
  555. Balance a string after removing extra brackets
  556. Recursive program to print triangular patterns
  557. Maximum occurred integer in n ranges | Set-2
  558. Check if two given key sequences construct same BSTs
  559. Find minimum number of Log value needed to calculate Log upto N
  560. Minimum number greater than the maximum of array which cannot be formed using the numbers in the array
  561. Check if given string can be formed by two other strings or their permutations
  562. Minimize the length of string by removing occurrence of only one character
  563. Count numbers (smaller than or equal to N) with given digit sum
  564. Replace every character of a string by a different character
  565. Delete linked list nodes which have a greater value on left side
  566. Print the number of set bits in each node of a Binary Tree
  567. Count number of integers less than or equal to N which has exactly 9 divisors
  568. Sum of minimum elements of all subarrays
  569. Minimum and Maximum prime numbers in an array
  570. Program to check if all characters have even frequency
  571. Sum and Product of the nodes of a Singly Linked List which are divisible by K
  572. Find triplets in an array whose AND is maximum
  573. Sort Linked List containing values from 1 to N
  574. Check if a Linked List is Pairwise Sorted
  575. Check if two Linked Lists are permutations of each other
  576. Check if the elements of stack are pairwise sorted
  577. Delete linked list nodes which have a Lesser Value on Left Side
  578. Minimum changes required to make first string substring of second string
  579. Maximum element in min heap
  580. Traverse matrix in L shape
  581. Sum of the nodes of a Circular Linked List
  582. Check if there is any common character in two given strings
  583. How to access elements of a Square Matrix
  584. Find maximum in a stack in O(1) time and O(1) extra space
  585. Construct a BST from given postorder traversal using Stack
  586. Subset array sum by generating all the subsets
  587. Pair with maximum sum in a Matrix
  588. Check whether the given number is Euclid Number or not
  589. Count the number of pop operations on stack to get each element of the array
  590. Find the product of last N nodes of the given Linked List
  591. Program to print Spiral Pattern
  592. Check if a pair with given product exists in a Matrix
  593. Check if a pair with given absolute difference exists in a Matrix
  594. Sum of all odd frequency elements in an array
  595. Sum of squares of Fibonacci numbers
  596. Print all even nodes of Binary Search Tree
  597. Delete all Prime Nodes from a Circular Singly Linked List
  598. Sum of Fibonacci Numbers with alternate negatives
  599. Program to print Hut Star pattern
  600. Product of non-repeating (distinct) elements in an Array
  601. Product of all nodes in a Binary Tree
  602. Sum of all prime numbers in an Array
  603. Product of all prime numbers in an Array
  604. Minimum number of nodes in an AVL Tree with given height
  605. Optimal sequence for AVL tree insertion (without any rotations)
  606. Sum of the alternate nodes of linked list
  607. Sort only non-prime numbers of an array in increasing order
  608. Print nodes in the Top View of Binary Tree | Set 3
  609. Find the common nodes in two singly linked list
  610. Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
  611. All vertex pairs connected with exactly k edges in a graph
  612. Check if the characters of a given string are in alphabetical order
  613. Sum of Fibonacci numbers at even indexes upto N terms
  614. Sub-strings having exactly k characters that have ASCII value greater than p
  615. Minimum and Maximum element of an array which is divisible by a given number k
  616. Sum and Product of minimum and maximum element of Binary Search Tree
  617. Find the node with maximum value in a Binary Search Tree
  618. Maximize the sum of array by multiplying prefix of array with -1
  619. Check whether two strings can be made equal by increasing prefixes
  620. Check if a number is a Trojan Number
  621. Maximum no. of contiguous Prime Numbers in an array
  622. Program to Convert Octal Number to Binary Number
  623. Replace repeating elements with greater that greatest values
  624. Remove characters that appear more than k times
  625. Replace all occurrences of pi with 3.14 in a given string
  626. Remove first node of the linked list
  627. Root to leaf path product equal to a given number
  628. How do Dynamic arrays work?
  629. Remove last node of the linked list
  630. Program to find count of numbers having odd number of divisors in given range
  631. Find array elements with frequencies in range [l , r]
  632. Sorting array elements with set bits equal to K
  633. Convert all lowercase characters to uppercase whose ASCII value is co-prime with k
  634. Replace all consonants with nearest vowels in a string
  635. Find the second last node of a linked list in single traversal
  636. XOR of all Prime numbers in an Array
  637. Minimum array elements to be changed to make it a Lucas Sequence
  638. Most frequent word in first String which is not present in second String
  639. Program to Print Alphabets from A to Z Using Loop
  640. Check whether all the rotations of a given number is greater than or equal to the given number or not
  641. Product of all the Composite Numbers in an array
  642. Replace each element by the difference of the total size of the array and frequency of that element
  643. Count pairs from two arrays having sum equal to K
  644. Smallest odd digits number not less than N
  645. Minimum number of elements to be removed so that pairwise consecutive elements are same
  646. Check if frequency of character in one string is a factor or multiple of frequency of same character in other string
  647. Find minimum and maximum elements in singly Circular Linked List
  648. Find all good indices in the given Array
  649. Print each word in a sentence with their corresponding average of ASCII values
  650. Sort elements of array whose modulo with K yields P
  651. Count number of bits changed after adding 1 to given N
  652. Different possible marks for n questions and negative marking
  653. Sum and Product of the nodes of a Circular Singly Linked List which are divisible by K
  654. Paths with maximum number of 'a' from (1, 1) to (X, Y) vertically or horizontally
  655. Difference between a Static Queue and a Singly Linked List
  656. Maximum litres of water that can be bought with N Rupees
  657. Check if the array has an element which is equal to sum of all the remaining elements
  658. Check whether the frequencies of all the characters in a string are prime or not
  659. Count pairs of numbers from 1 to N with Product divisible by their Sum
  660. Count pairs from two arrays whose modulo operation yields K
  661. Program to find Area of Triangle inscribed in N-sided Regular Polygon
  662. XOR of path between any two nodes in a Binary Tree
  663. Check if the array has an element which is equal to product of remaining elements
  664. Maximum number of parallelograms that can be made using the given length of line segments
  665. Check if the given push and pop sequences of Stack is valid or not
  666. Sort perfect squares in an array at their relative positions
  667. Minimize the number of steps required to reach the end of the array
  668. Largest number in an array that is not a perfect cube
  669. Largest perfect cube number in an Array
  670. Longest rod that can be inserted within a right circular cylinder
  671. Volume of largest right circular cylinder within a Sphere
  672. Volume of biggest sphere within a right circular cylinder
  673. Count pairs with Bitwise XOR as EVEN number
  674. Number of pairs with Bitwise OR as Odd number
  675. Count pairs with Bitwise-AND as even number
  676. Program to convert the diagonal elements of the matrix to 0
  677. Find largest number smaller than N with same set of digits
  678. Distance between two nodes of binary tree with node values from 1 to N
  679. Level Order Predecessor of a node in Binary Tree
  680. Frequency of each element of an array of small ranged values
  681. Print numbers with digits 0 and 1 only such that their sum is N
  682. Print all odd nodes of Binary Search Tree
  683. Rearrange all elements of array which are multiples of x in decreasing order
  684. Sum of Bitwise-OR of all subarrays of a given Array | Set 2
  685. Number of sub-strings which are anagram of any sub-string of another string
  686. Digits of element wise sum of two arrays into a new array
  687. Move all special char to the end of the String
  688. Number of Binary Strings of length N with K adjacent Set Bits
  689. Fraction
  690. Find k-th character of decrypted string | Set - 2
  691. Concatenate suffixes of a String
  692. Count characters in a string whose ASCII values are prime
  693. Minimum Distance Between Words of a String
  694. Program to print the given H Pattern
  695. Subtraction in the Array
  696. How to concatenate two Integer values into one?
  697. Update adjacent nodes if the current node is zero in a Singly Linked List
  698. Sum of element whose prime factors are present in array
  699. Largest Square that can be inscribed within a hexagon
  700. Minimum number of operations required to sum to binary string S
  701. Check if all elements of the array are palindrome or not
  702. Recursive program to insert a star between pair of identical characters
  703. Convert a String into a square matrix grid of characters
  704. Find the sums for which an array can be divided into sub-arrays of equal sum
  705. Append odd position nodes in reverse at the end of even positioned nodes in a Linked List
  706. Count distinct substrings that contain some characters at most k times
  707. Generate all rotations of a number
  708. Minimum prime number operations to convert A to B
  709. Find the repeating and the missing number using two equations
  710. Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
  711. Probability that a N digit number is palindrome
  712. Number of subarrays have bitwise OR >= K
  713. Possible cuts of a number such that maximum parts are divisible by 3
  714. Recursive program to print all numbers less than N which consist of digits 1 or 3 only
  715. Program to check if two strings are same or not
  716. Find the sum of the all amicable numbers up to N
  717. Check if a number can be expressed as sum two abundant numbers
  718. Number of ways to divide a Binary tree into two halves
  719. Count distinct elements in an array
  720. Replace each node with its Surpasser Count in Linked List
  721. Program to check if a number is divisible by any of its digits
  722. Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
  723. Find the Side of the smallest Square that can contain given 4 Big Squares
  724. Water Game
  725. Number of unique pairs in an array
  726. Minimum replacements such that the difference between the index of the same characters is divisible by 3
  727. Sum of nodes at maximum depth of a Binary Tree | Set 2
  728. Find the lexicographically largest palindromic Subsequence of a String
  729. Find the product of first k nodes of the given Linked List
  730. Modify the string by swapping continuous vowels or consonants
  731. Maximize the subarray sum after multiplying all elements of any subarray with X
  732. Maximum money that can be withdrawn in two steps
  733. Minimum steps to make the product of the array equal to 1
  734. Count the number of common divisors of the given strings
  735. Count of unique pairs (arr[i], arr[j]) such that i < j
  736. Find the number of points that have atleast 1 point above, below, left or right of it
  737. Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2
  738. Number of strings that satisfy the given condition
  739. Program to implement Run Length Encoding using Linked Lists
  740. Reverse zigzag Traversal of a Binary Tree
  741. Generate a string consisting of characters 'a' and 'b' that satisfy the given conditions
  742. DFA for accepting the language L = {an bm | n+m=odd}
  743. Minimum replacements to make adjacent characters unequal in a ternary string | Set-2
  744. Generate a random permutation of elements from range [L, R] (Divide and Conquer)
  745. Pick maximum sum M elements such that contiguous repetitions do not exceed K
  746. Maximize the maximum among minimum of K consecutive sub-arrays
  747. Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
  748. Delete nodes which have a greater value on right side using recursion
  749. Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
  750. Queries for number of distinct integers in Suffix
  751. Print Stack Elements from Bottom to Top
  752. Check whether two strings are equivalent or not according to given condition
  753. Minimum number of elements that should be removed to make the array good
  754. Zig-Zag traversal of a Binary Tree using Recursion
  755. Maximum Bitwise AND pair from given range
  756. Count array elements that divide the sum of all other elements
  757. DFA for strings not containing consecutive two a's and starting with 'a'
  758. Reverse Level Order traversal in spiral form
  759. k-th missing element in an unsorted array
  760. Number of connected components in a 2-D matrix of strings
  761. Ways to Remove Edges from a Complete Graph to make Odd Edges
  762. Longest subsequence such that adjacent elements have at least one common digit
  763. Numbers in a Range with given Digital Root
  764. Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
  765. Sum of numbers from 1 to N which are in Lucas Sequence
  766. Minimum cost to make a string free of a subsequence
  767. Bitwise OR of N binary strings
  768. Chessboard Pawn-Pawn game
  769. Time until distance gets equal to X between two objects moving in opposite direction
  770. Print n numbers such that their sum is a perfect square
  771. Maximize the summation of numbers in a maximum of K moves in range [L, R]
  772. Print all the sum pairs which occur maximum number of times
  773. Find last five digits of a given five digit number raised to power five
  774. Print the last k nodes of the linked list in reverse order | Iterative Approaches
  775. Third last digit in 5^N for given N
  776. Find the K-th minimum element from an array concatenated M times
  777. Smallest integer > 1 which divides every element of the given array
  778. Maximum number that can be display on Seven Segment Display using N segments
  779. Program to calculate the value of nPr
  780. Character whose frequency is equal to the sum of frequencies of other characters of the given string
  781. Find sum of a[i]%a[j] for all valid pairs
  782. Check if the given string is K-periodic
  783. Clockwise Spiral Traversal of Binary Tree | Set - 2
  784. Program to Encrypt a String using ! and @
  785. Smallest and Largest Palindrome with N Digits
  786. Count how many times the given digital clock shows identical digits
  787. Minimum cuts required to convert a palindromic string to a different palindromic string
  788. Count maximum elements of an array whose absolute difference does not exceed K
  789. Generate array with minimum sum which can be deleted in P steps
  790. Check if matrix can be converted to another matrix by transposing square sub-matrices
  791. Minimum changes required such that the string satisfies the given condition
  792. Check if Matrix remains unchanged after row reversals
  793. Find if the given number is present in the infinite sequence or not
  794. Find the number of good permutations
  795. Count integers in a range which are divisible by their euler totient value
  796. Number of ways to make binary string of length N such that 0s always occur together in groups of size K
  797. Count sub-arrays whose product is divisible by k
  798. Correct the Random Pointer in Doubly Linked List
  799. Program to calculate Double Integration
  800. Programs for printing pyramid patterns using recursion
  801. Maximize the median of the given array after adding K elements to the same array
  802. Sum of Fibonacci Numbers in a range
  803. Program to find the kth character after decrypting a string
  804. Print all Semi-Prime Numbers less than or equal to N
  805. Total distinct pairs of ugly numbers from two arrays
  806. Number of ways in which the substring in range [L, R] can be formed using characters out of the range
  807. Maximum volume of cube for every person when edge of N cubes are given
  808. Compute maximum of the function efficiently over all sub-arrays
  809. Predict the winner in Coin Game
  810. Uniform Binary Search
  811. Sum of degrees of all nodes of a undirected graph
  812. Print last character of each word in a string
  813. Times required by Simple interest for the Principal to become Y times itself
  814. Maximum array sum that can be obtained after exactly k changes
  815. Replace the odd positioned elements with their cubes and even positioned elements with their squares
  816. Count the number of non-increasing subarrays
  817. Kth node in Diagonal Traversal of Binary Tree
  818. Program to unfold a folded linked list
  819. Recursive Program to Print extreme nodes of each level of Binary Tree in alternate order
  820. Pairs of strings which on concatenating contains each character of "string"
  821. Count number of ways to reach a given score in a Matrix
  822. Maximum points covered after removing an Interval
  823. Length of the longest substring that do not contain any palindrome
  824. Area of largest Circle inscribe in N-sided Regular polygon
  825. Find the final radiations of each Radiated Stations
  826. Count number of binary strings of length N having only 0's and 1's
  827. Find original numbers from gcd() every pair
  828. Maximum number of people that can be killed with strength P
  829. Length of the smallest number which is divisible by K and formed by using 1's only
  830. Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
  831. Find the number of binary strings of length N with at least 3 consecutive 1s
  832. Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors
  833. Reduce the fraction to its lowest form
  834. Delete odd and even numbers at alternate step such that sum of remaining elements is minimized
  835. Lazy Propagation in Segment Tree | Set 2
  836. Shell-Metzner Sort
  837. Find the minimum number of operations required to make all array elements equal
  838. Remove the first and last character of each word in a string
  839. Capitalize the first and last character of each word in a string
  840. Check if all the 1's in a binary string are equidistant or not
  841. Check if two strings are same ignoring their cases
  842. Find the sum of the number of divisors
  843. Count pairs of non-overlapping palindromic sub-strings of the given string
  844. Minimum length of the sub-string whose characters can be used to form a palindrome of length K
  845. Find the nth term of the given series
  846. Product of all Subsequences of size K except the minimum and maximum Elements
  847. Equation of straight line passing through a given point which bisects it into two equal line segments
  848. Count different numbers possible using all the digits their frequency times
  849. Find the minimum of maximum length of a jump required to reach the last island in exactly k jumps
  850. Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
  851. Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term
  852. Count of sub-strings that contain character X at least once
  853. Distance between two parallel lines
  854. Minimum cost to modify a string
  855. Check if the frequency of any character is more than half the length of the string
  856. Highest power of 2 that divides a number represented in binary
  857. Find the minimum sum of distance to A and B from any integer point in a ring of size N
  858. Number of ways to arrange K different objects taking N objects at a time
  859. Minimum time required to transport all the boxes from source to the destination under the given constraints
  860. Count of quadruplets with given Sum | Set 2
  861. Determine the position of the third person on regular N sided polygon
  862. Maximum sum of leaf nodes among all levels of the given binary tree
  863. Print steps to make a number in form of 2^X - 1
  864. Length of the direct common tangent between two externally touching circles
  865. Shortest distance from the centre of a circle to a chord
  866. Radius of the circle when the width and height of an arc is given
  867. Length of direct common tangent between the two non-intersecting Circles
  868. Length of direct common tangent between two intersecting Circles
  869. Shortest distance between a point and a circle
  870. Print even positioned nodes of even levels in level order of the given binary tree
  871. Minimizing array sum by applying XOR operation on all elements of the array
  872. Maximize the given number by replacing a segment of digits with the alternate digits given
  873. Queries to answer the X-th smallest sub-string lexicographically
  874. Find element with the maximum set bits in an array
  875. Minimum number of cubes whose sum equals to given number N
  876. Find all the pairs with given sum in a BST | Set 2
  877. Number of positions such that adding K to the element is greater than sum of all other elements
  878. Count number of 1s in the array after N moves
  879. Largest even number that can be formed by any number of swaps
  880. Area of plot remaining at the end
  881. Make lexicographically smallest palindrome by substituting missing characters
  882. Minimum deletions required such that any number X will occur exactly X times
  883. Count number of subsets whose median is also present in the same subset
  884. Find the occurrence of the given binary pattern in the binary representation of the array elements
  885. Create linked list from a given array
  886. Minimum number of sub-strings of a string such that all are power of 5
  887. Bitwise AND of sub-array closest to K
  888. Count index pairs which satisfy the given condition
  889. Minimize the number of steps required to reach the end of the array | Set 2
  890. Angle subtended by the chord when the angle subtended by another chord of same length is given
  891. Find the last non repeating character in string
  892. Queries for bitwise AND in the given matrix
  893. Queries for bitwise OR in the given matrix
  894. Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
  895. Create a linked list from two linked lists by choosing max element at each position
  896. Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged
  897. Divide the given linked list in two lists of size ratio p:q
  898. Print an N x M matrix such that each row and column has all the vowels in it
  899. Find a triplet in an array whose sum is closest to a given number
  900. Longest substring such that no three consecutive characters are same
  901. Find max length odd parity substring
  902. Count number of ways to divide an array into two halves with same sum
  903. Number of subsets with zero sum
  904. Find maximum topics to prepare in order to pass the exam
  905. Queries to check if string B exists as substring in string A
  906. Print the degree of every node from the given Prufer sequence
  907. Print combinations of distinct numbers which add up to give sum N
  908. Queries for the difference between the count of composite and prime numbers in a given range
  909. Maximise matrix sum by following the given Path
  910. Length of the perpendicular bisector of the line joining the centers of two circles
  911. Find maximum path sum in a 2D matrix when exactly two left moves are allowed
  912. Check if the two given stacks are same
  913. Count the number of digits of palindrome numbers in an array
  914. Count the maximum number of elements that can be selected from the array
  915. Sum of all palindrome numbers present in an Array
  916. Print all the nodes except the leftmost node in every level of the given binary tree
  917. Check if two numbers have same number of digits
  918. Count pairs of characters in a string whose ASCII value difference is K
  919. Count number of distinct substrings of a given length
  920. Find row with maximum and minimum number of zeroes in given Matrix
  921. Count pairs of elements such that number of set bits in their AND is B[i]
  922. Density of Binary Tree using Level Order Traversal
  923. Longest prefix in a string with highest frequency
  924. Number of ways to choose elements from the array such that their average is K
  925. Length of longest sub-array with maximum arithmetic mean.
  926. Print all the super diagonal elements of the given square matrix
  927. Construct the Rooted tree by using start and finish time of its DFS traversal
  928. Run Length Decoding in Linked List
  929. Count of substrings which contains a given character K times
  930. Count of characters in str1 such that after deleting anyone of them str1 becomes str2
  931. Create a Sorted Array Using Binary Search
  932. Print Lower Hessenberg matrix of order N
  933. Find the node with maximum value in a Binary Search Tree using recursion
  934. Order of indices which is lexicographically smallest and sum of elements is <= X
  935. Count pairs of elements such that number of set bits in their OR is B[i]
  936. Minimum operations to make sum of neighbouring elements <= X
  937. Find number of factors of N when location of its two factors whose product is N is given
  938. Queries for number of distinct elements from a given index till last index in an array
  939. Partition first N natural number into two sets such that their sum is not coprime
  940. Find the radii of the circles which are lined in a row, and distance between the centers of first and last circle is given
  941. Find the side of the squares which are lined in a row, and distance between the centers of first and last square is given
  942. Find Nth smallest number that is divisible by 100 exactly K times
  943. Compress the array into Ranges
  944. Case-specific Sorting of Strings
  945. Find a sequence of N prime numbers whose sum is a composite number
  946. Find the Nth term divisible by a or b or c
  947. Find XOR of numbers from the range [L, R]
  948. Reverse individual words with O(1) extra space
  949. Percentage increase in volume of the cube if a side of cube is increased by a given percentage
  950. Find a number containing N - 1 set bits at even positions from the right
  951. Sentence Case of a given Camel cased string
  952. Minimum number of adjacent swaps to convert a string into its given anagram
  953. Count numbers in given range such that sum of even digits is greater than sum of odd digits
  954. Smallest number greater or equals to N such that it has no odd positioned bit set
  955. Program to calculate the area of Kite
  956. Flip minimum signs of array elements to get minimum sum of positive elements possible
  957. Flatten binary tree in order of post-order traversal
  958. Pair with minimum absolute difference | BST
  959. Add one to a number represented as linked list | Set 2
  960. Maximum number formed from array with K number of adjacent swaps allowed
  961. Find a partition point in array to maximize its xor sum
  962. Check if the given n-ary tree is a binary tree
  963. Check if it is possible to redistribute the Array
  964. Programs to print Triangle and Diamond patterns using recursion
  965. Sum of two numbers if the original ratio and new ratio obtained by adding a given number to each number is given
  966. Count of pairs between two arrays such that the sums are distinct
  967. Cost Based Tower of Hanoi
  968. Remove Minimum coins such that absolute difference between any two piles is less than K
  969. Count pairs with given sum | Set 2
  970. Sort the Queue using Recursion
  971. Number of ways to arrange 2*N persons on the two sides of a table with X and Y persons on opposite sides
  972. Find k ordered pairs in array with minimum difference d
  973. Largest and smallest digit of a number
  974. Map every character of one string to another such that all occurrences are mapped to the same character
  975. Find the number of occurrences of a character upto preceding position
  976. Longest sub string of 0's in a binary string which is repeated K times
  977. Find area of the larger circle when radius of the smaller circle and difference in the area is given
  978. Count of elements that can be deleted without disturbing the mean of the initial array
  979. Find maximum xor of k elements in an array
  980. All unique combinations whose sum equals to K
  981. Find the prime P using given four integers
  982. Maximum sum combination from two arrays
  983. Count non-negative triplets with sum equal to N
  984. Convert a String to an Integer using Recursion
  985. Smallest element greater than X not present in the array
  986. Minimum number of times A has to be repeated such that B is a substring of it
  987. Program to find the Speed of train as per speed of sound
  988. Lexicographically largest permutation of the array such that a[i] = a[i-1] + gcd(a[i-1], a[i-2])
  989. Square root of a number without using sqrt() function
  990. Program for sum of cosh(x) series upto Nth term
  991. Modular Exponentiation of Complex Numbers
  992. Wedderburn–Etherington number
  993. Gijswijt's Sequence
  994. Check if the product of every contiguous subsequence is different or not in a number
  995. Subtraction of the alternate nodes of Linked List
  996. Find all combinations of two equal sum subsequences
  997. Sum of even elements of an Array using Recursion
  998. Sum of N terms in the expansion of Arcsin(x)
  999. Product of Primes of all Subsets
  1000. Maximum number of elements without overlapping in a Line
  1001. FCFS Disk Scheduling Algorithms
  1002. Bit manipulation | Swap Endianness of a number
  1003. Number of shortest paths to reach every cell from bottom-left cell in the grid
  1004. How to learn Pattern printing easily?
  1005. Nearest greater number by interchanging the digits
  1006. Count number of permutation of an Array having no SubArray of size two or more from original Array
  1007. Find the maximum cost path from the bottom-left corner to the top-right corner
  1008. Find minimum changes required in an array for it to contain k distinct elements
  1009. Find the maximum sum of digits of the product of two numbers
  1010. Find the Deepest Node in a Binary Tree Using Queue STL - SET 2
  1011. Equal Sum and XOR of three Numbers
  1012. Check if the first and last digit of number N is prime and their sum is less than K
  1013. Number of Subsequences with Even and Odd Sum
  1014. Minimize the cost of buying the Objects
  1015. Count number of ways to reach destination in a Maze using BFS
  1016. Find the average of k digits from the beginning and l digits from the end of the given number
  1017. Find the remaining balance after the transaction
  1018. Sum of all natural numbers from L to R ( for large values of L and R )
  1019. Number of Subsequences with Even and Odd Sum | Set 2
  1020. Count all the permutation of an array
  1021. Count number of bits to be flipped to convert A to B | Set-2
  1022. Lexicographical ordering using Heap Sort
  1023. Find all numbers between range L to R such that sum of digit and sum of square of digit is prime
  1024. Check if a number is Flavius Number
  1025. Duplicate subtree in Binary Tree | SET 2
  1026. Swap Alternate Boundary Pairs
  1027. Check if expression contains redundant bracket or not | Set 2
  1028. Reverse even elements in a Linked List
  1029. Sum of elements till the smallest index such that there are no even numbers to its right
  1030. Minimize the sum of the array according the given condition
  1031. Find an N x N grid whose xor of every row and column is equal
  1032. Queries for rotation and Kth character of the given string in constant time
  1033. Find Kth element in an array containing odd elements first and then even elements
  1034. Nth Fibonacci number using Pell's equation
  1035. Check if a cycle of length 3 exists or not in a graph that satisfy a given condition
  1036. Find the first N integers such that the sum of their digits is equal to 10
  1037. Largest substring of str2 which is a prefix of str1
  1038. Count the values greater than X in the modified array
  1039. Find a Square Matrix such that sum of elements in every row and column is K
  1040. Sum of absolute differences of pairs from the given array that satisfy the given condition
  1041. Find the Nth element of the modified Fibonacci series
  1042. Program for Mobius Function | Set 2
  1043. Count occurrences of a prime number in the prime factorization of every element from the given range
  1044. Repeated sum of first N natural numbers
  1045. Print characters having prime frequencies in order of occurrence
  1046. Replace elements with absolute difference of smallest element on left and largest element on right
  1047. Find the number on the card that remains in the end after performing the given operations
  1048. Find the number of pairs such that their gcd is equals to 1
  1049. Find number of subarrays with XOR value a power of 2
  1050. Find the minimum capacity of the train required to hold the passengers
  1051. Summation of floor of harmonic progression
  1052. Find the sum of all possible pairs in an array of N elements
  1053. Count of numbers in the range [L, R] which satisfy the given conditions
  1054. Find the character made by adding all the characters of the given string
  1055. Count of triples (A, B, C) where A*C is greater than B*B
  1056. Check if the rows of a binary matrix can be made unique by removing a single column
  1057. Number of triplets in array having subarray xor equal
  1058. Absolute difference between the XOR of Non-Prime numbers and Prime numbers of an Array
  1059. Find the number of strings formed using distinct characters of a given string
  1060. Minimum characters that are to be inserted such that no three consecutive characters are same
  1061. Count all substrings having character K
  1062. Twisted Tower of Hanoi Problem
  1063. Find all even length binary sequences with same sum of first and second half bits | Iterative
  1064. Add the given digit to a number stored in a linked list using recursion
  1065. Bitwise XOR of elements having odd frequency