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