Rajput-Ji
Rajput-Ji
  1. Count of strings that can be formed from another string using each character at-most once
  2. Initialize an ArrayList in Java
  3. Finding n-th term of series 3, 13, 42, 108, 235…
  4. Find n-th term of series 1, 4, 27, 16, 125, 36, 343 .......
  5. Delete all Prime Nodes from a Singly Linked List
  6. Implement a stack using singly linked list
  7. Delete all the even nodes from a Doubly Linked List
  8. Probability of rain on N+1th day
  9. Probability of a key K present in array
  10. Count pairs with Bitwise OR as Even number
  11. Count pairs with Bitwise AND as ODD number
  12. Count pairs with Bitwise XOR as ODD number
  13. Check if a key is present in every segment of size k in an array
  14. Delete array element in given index range [L - R]
  15. How to randomly select rows from Pandas DataFrame
  16. Find Nth term of the series 0, 2, 4, 8, 12, 18...
  17. Find Nth term of the series 5, 13, 25, 41, 61...
  18. Find Nth term of the series 3, 14, 39, 84...
  19. Find Nth term of the series 1, 8, 54, 384...
  20. Find Nth term of the series 1, 1, 2, 6, 24...
  21. Difference Between LinkedList and LinkedHashSet in Java
  22. Replace every element of the array by sum of all other elements
  23. Product of all prime nodes in a Doubly Linked List
  24. Convert a String to Integer Array in C/C++
  25. Sum of the nodes of a Singly Linked List
  26. Find count of common nodes in two Doubly Linked Lists
  27. Balance a string after removing extra brackets
  28. Delete all the nodes from the list which are less than K
  29. Convert List of Characters to String in Java
  30. Find other two sides and angles of a right angle triangle
  31. Delete linked list nodes which have a greater value on left side
  32. Delete all the nodes from a doubly linked list that are smaller than a given value
  33. Sum of all nodes in a doubly linked list divisible by a given number K
  34. Code valid in both C and C++ but produce different output
  35. Program to Convert List to Map in Java
  36. Delete all the nodes from the list which are divisible by any given number K
  37. Replace even nodes of a doubly linked list with the elements of array
  38. Delete linked list nodes which have a Lesser Value on Left Side
  39. Maximum element in min heap
  40. Sum of the nodes of a Circular Linked List
  41. Delete all the even nodes of a Circular Linked List
  42. Print all even nodes of Binary Search Tree
  43. Delete all Prime Nodes from a Circular Singly Linked List
  44. Print Sum and Product of all Non-Leaf nodes in Binary Tree
  45. Find normal at a given point on the curve
  46. Find first and last element of ArrayList in java
  47. Remove all elements from the ArrayList in Java
  48. Remove repeated elements from ArrayList in Java
  49. Find Tangent at a given point on the curve
  50. Convert String to Double in Java
  51. Program to Convert a Vector to List in Java
  52. Min and Max in a List in Java
  53. Convert Double to Integer in Java
  54. Find common elements in two ArrayLists in Java
  55. Convert an ArrayList of String to a String array in Java
  56. Difference between HashMap and HashSet
  57. Find two non-overlapping pairs having equal sum in an Array
  58. Difference between length of Array and size of ArrayList in Java
  59. Print all nodes between two given levels in Binary Tree
  60. Method within method in java
  61. Split a list into two halves in Java
  62. Get name of current method being executed in Java
  63. How do Dynamic arrays work?
  64. Differences between wait() and join() methods in Java
  65. Count number of a class objects created in Java
  66. Get first and last elements from ArrayList in Java
  67. Difference between ArrayList and HashSet in Java
  68. What is the difference between field, variable, attribute, and property in Java
  69. LinkedHashMap and LinkedHashSet in Java
  70. Calculate volume and surface area of Torus
  71. Format Specifiers in Java
  72. Remove all occurrences of an element from Array in Java
  73. Future and FutureTask in java
  74. Find minimum and maximum elements in singly Circular Linked List
  75. BlockingQueue Interface in Java
  76. Difference Between Daemon Threads and User Threads In Java
  77. Deletion at different positions in a Circular Linked List
  78. Delete all odd or even positioned nodes from Circular Linked List
  79. Array implementation of queue (Simple)
  80. Sum and Product of the nodes of a Circular Singly Linked List which are divisible by K
  81. Difference between a Static Queue and a Singly Linked List
  82. Generate random String of given size in Java
  83. Print all pairs in an unsorted array with equal sum
  84. ArrayList vs. HashMap in Java
  85. How to select multiple columns in a pandas dataframe
  86. Non-generic Vs Generic Collection in Java
  87. DelayQueue class in Java with Example
  88. Different ways to sort an array in descending order in C#
  89. Randomly select items from a List in Java
  90. Find smallest and largest element from square matrix diagonals
  91. Reset Index in Pandas Dataframe
  92. Blocks in PL/SQL
  93. Get unique values from a column in Pandas DataFrame
  94. How to drop one or multiple columns in Pandas Dataframe
  95. valarray atan2() function in C++
  96. Difference and similarities between HashSet, LinkedHashSet and TreeSet in Java
  97. Maximum sum of cocktail glass in a 2D matrix
  98. Queries to find the first non-repeating character in the sub-string of a string
  99. Puzzle | Divide a Square into 5 parts such that 4 parts among them are equal
  100. Check whether array has all identical elements using Arrays.asList() and HashSet in Java
  101. Program to calculate the area of Kite
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. How to swap two numbers without using a temporary variable?
  2. Remove duplicates from a given string
  3. Write a program to reverse digits of a number
  4. Program for n'th node from the end of a Linked List
  5. Write a function to delete a Linked List
  6. Reverse a linked list
  7. Function to check if a singly linked list is palindrome
  8. k largest(or smallest) elements in an array | added Min Heap method
  9. Compute the integer absolute value (abs) without branching
  10. Block swap algorithm for array rotation
  11. Print reverse of a Linked List without actually reversing
  12. Count Inversions in an array | Set 1 (Using Merge Sort)
  13. Maximum and minimum of an array using minimum number of comparisons
  14. Find whether a given number is a power of 4 or not
  15. Maximum width of a binary tree
  16. Identical Linked Lists
  17. Find the two repeating elements in a given array
  18. Evaluation order of operands
  19. Find duplicates in O(n) time and O(1) extra space | Set 1
  20. Detect and Remove Loop in a Linked List
  21. N Queen Problem | Backtracking-3
  22. Check if a binary tree is subtree of another binary tree | Set 1
  23. Add two numbers represented by linked lists | Set 1
  24. Delete a given node in Linked List under given constraints
  25. Sorted Linked List to Balanced BST
  26. Check whether two strings are anagram of each other
  27. Interleaving of two given strings with no common characters
  28. Pattern Searching | Set 6 (Efficient Construction of Finite Automata)
  29. Hamiltonian Cycle | Backtracking-6
  30. Longest Palindromic Subsequence | DP-12
  31. Find a triplet from three linked lists with sum equal to a given number
  32. Count the number of possible triangles
  33. Find a pair with given sum in a Balanced BST
  34. Minimum insertions to form a palindrome | DP-28
  35. Longest Common Substring | DP-29
  36. Delete N nodes after M nodes of a linked list
  37. Find maximum number of edge disjoint paths between two vertices
  38. Print all possible paths from top left to bottom right of a mXn matrix
  39. Pairwise swap elements of a given linked list by changing links
  40. Find if two rectangles overlap
  41. Check if a given Binary Tree is height balanced like a Red-Black Tree
  42. Remove minimum elements from either side such that 2*min becomes more than max
  43. Program for nth Catalan Number
  44. Check if a given string is a rotation of a palindrome
  45. Channel Assignment Problem
  46. Check if a binary tree is subtree of another binary tree | Set 2
  47. Print squares of first n natural numbers without using *, / and -
  48. Print all elements in sorted order from row and column wise sorted matrix
  49. Multiply two polynomials
  50. How to check if two given sets are disjoint?
  51. K'th Smallest/Largest Element in Unsorted Array | Set 3 (Worst Case Linear Time)
  52. Given a linked list of line segments, remove middle points
  53. Longest Even Length Substring such that Sum of First and Second Half is same
  54. Print all paths from a given source to a destination
  55. Greedy Algorithm for Egyptian Fraction
  56. Find a common element in all rows of a given row-wise sorted matrix
  57. Check whether a binary tree is a complete tree or not | Set 2 (Recursive Solution)
  58. Function to find Number of customers who could not get a computer
  59. Group multiple occurrence of array elements ordered by first occurrence
  60. Iterative Merge Sort
  61. Compute n! under modulo p
  62. Converting Decimal Number lying between 1 to 3999 to Roman Numerals
  63. Remove spaces from a given string
  64. Compute sum of digits in all numbers from 1 to n
  65. Count BST subtrees that lie in given range
  66. Converting a Real Number (between 0 and 1) to Binary String
  67. Find sum of all elements in a matrix except the elements in row and/or column of given cell?
  68. Count distinct elements in every window of size k
  69. Collect maximum points in a grid using two traversals
  70. Maximum Path Sum in a Binary Tree
  71. Count total number of N digit numbers such that the difference between sum of even and odd digits is 1
  72. Print string of odd length in 'X' format
  73. Lazy Propagation in Segment Tree
  74. Find minimum possible size of array with given rules for removing elements
  75. Count number of ways to partition a set into k subsets
  76. Compare two strings represented as linked lists
  77. Range Minimum Query (Square Root Decomposition and Sparse Table)
  78. Print cousins of a given node in Binary Tree
  79. Number of paths with exactly k coins
  80. Combinatorial Game Theory | Set 3 (Grundy Numbers/Nimbers and Mex)
  81. Check if a given number is Fancy
  82. Clone a linked list with next and random pointer in O(1) space
  83. Search a Word in a 2D Grid of characters
  84. Find the smallest twins in given range
  85. Count number of ways to divide a number in 4 parts
  86. Print individual digits as words without using if or switch
  87. Euler's criterion (Check if square root under modulo p exists)
  88. Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
  89. G-Fact 19 (Logical and Bitwise Not Operators on Boolean)
  90. Rearrange an array in maximum minimum form | Set 1
  91. Form minimum number from given sequence
  92. How to avoid overflow in modular multiplication?
  93. 1's and 2's complement of a Binary Number
  94. Number of Integral Points between Two Points
  95. Print leftmost and rightmost nodes of a Binary Tree
  96. Add 1 to a number represented as linked list
  97. Comparator Interface in Java with Examples
  98. Print root to leaf paths without using recursion
  99. Disjoint Set Data Structures
  100. Common elements in all rows of a given matrix
  101. Maximum product of a triplet (subsequnece of size 3) in array
  102. Find smallest range containing elements from k lists
  103. Find if string is K-Palindrome or not | Set 1
  104. Decimal Equivalent of Binary Linked List
  105. Counting Triangles in a Rectangular space using BIT
  106. Wildcard Pattern Matching
  107. Smallest Subarray with given GCD
  108. Number of ways to calculate a target number using only array elements
  109. Rearrange a string so that all same characters become atleast d distance away
  110. How to find Lexicographically previous permutation?
  111. Longest Common Prefix using Character by Character Matching
  112. Lower case to upper case - An interesting fact
  113. Longest Common Prefix using Trie
  114. Implement a stack using single queue
  115. Palindrome Substring Queries
  116. Printing Longest Common Subsequence | Set 2 (Printing All)
  117. Find if string is K-Palindrome or not | Set 2
  118. Print extreme nodes of each level of Binary Tree in alternate order
  119. Jolly Jumper Sequence
  120. Find all triplets in a sorted array that forms Geometric Progression
  121. Check if string follows order of characters defined by a pattern or not | Set 1
  122. Reverse an array in groups of given size | Set 2 (Variations of Set 1 )
  123. Find if an expression has duplicate parenthesis or not
  124. A Space Optimized DP solution for 0-1 Knapsack Problem
  125. Find Two Missing Numbers | Set 1 (An Interesting Linear Time Solution)
  126. Maximize value of (arr[i] - i) - (arr[j] - j) in an array
  127. Longest repeating and non-overlapping substring
  128. Pairs of complete strings in two sets of strings
  129. Frequency Measuring Techniques for Competitive Programming
  130. Maximum and Minimum Product Subsets
  131. Connect Nodes at same Level (Level Order Traversal)
  132. Queries in a Matrix
  133. Count all pairs with given XOR
  134. Swap Nodes in Binary tree of every k'th level
  135. Count of distinct substrings of a string using Suffix Trie
  136. Check if there is a root to leaf path with given sequence
  137. Aliquot Sequence
  138. Sum of maximum elements of all subsets
  139. Count characters at same position as in English alphabet
  140. Maximum subsequence sum such that no three are consecutive
  141. Print matrix in diagonal pattern
  142. Maximum decimal value path in a binary matrix
  143. Minimum cost to sort strings using reversal operations of different costs
  144. Sort even-placed elements in increasing and odd-placed in decreasing order
  145. Find the first natural number whose factorial is divisible by x
  146. Program to implement Collatz Conjecture
  147. Count natural numbers whose all permutation are greater than that number
  148. Sublist Search (Search a linked list in another list)
  149. Rearrange an array to minimize sum of product of consecutive pair elements
  150. Find pair with greatest product in array
  151. Find a partition point in array
  152. Find pairs in array whose sums already exist in array
  153. Divide array into two sub-arrays such that their averages are equal
  154. K-th smallest element after removing some integers from natural numbers
  155. Queries on substring palindrome formation
  156. Convert a tree to forest of even nodes
  157. Primitive root of a prime number n modulo n
  158. Sum of matrix in which each element is absolute difference of its row and column numbers
  159. Make two sets disjoint by removing minimum elements
  160. Friends Pairing Problem
  161. Minimum steps to reach target by a Knight | Set 1
  162. Count binary strings with k times appearing adjacent two set bits
  163. Implementation of Affine Cipher
  164. Program for FCFS CPU Scheduling | Set 1
  165. Check if there exist two elements in an array whose sum is equal to the sum of rest of the array
  166. Check if reversing a sub array make the array sorted
  167. Maximize sum of N X N upper left sub-matrix from given 2N X 2N matrix
  168. Find all triplets with zero sum
  169. Print a matrix in alternate manner (left to right then right to left)
  170. Circular Singly Linked List | Insertion
  171. Largest subsequence having GCD greater than 1
  172. Number with maximum number of prime factors
  173. Find length of the largest region in Boolean Matrix
  174. Count all pairs of an array which differ in K bits
  175. Find N'th item in a set formed by sum of two arrays
  176. Ways to represent a number as a sum of 1's and 2's
  177. Palindrome pair in an array of words (or strings)
  178. Make largest palindrome by changing at most K-digits
  179. Find largest word in dictionary by deleting some characters of given string
  180. Number Theory | Generators of finite cyclic group under addition
  181. Find longest sequence of 1's in binary representation with one flip
  182. Character replacement after removing duplicates from a string
  183. Lexicographically first palindromic string
  184. Minimum swaps to reach permuted array with at most 2 positions left swaps allowed
  185. Point Clipping Algorithm in Computer Graphics
  186. Convert decimal fraction to binary number
  187. Search, insert and delete in an unsorted array
  188. Search, insert and delete in a sorted array
  189. Find sum of non-repeating (distinct) elements in an array
  190. Recaman's sequence
  191. Number of substrings divisible by 6 in a string of integers
  192. Iterative program to count leaf nodes in a Binary Tree
  193. Count half nodes in a Binary tree (Iterative and Recursive)
  194. Noble integers in an array (count of greater elements is equal to value)
  195. Find Duplicates of array using bit array
  196. Multiply Large Numbers represented as Strings
  197. Largest subset of Graph vertices with edges of 2 or more colors
  198. Multiply large integers under large modulo
  199. Change a Binary Tree so that every node stores sum of all nodes in left subtree
  200. Banker's Algorithm in Operating System
  201. Check if characters of a given string can be rearranged to form a palindrome
  202. Lexicographically minimum string rotation | Set 1
  203. Find the largest three elements in an array
  204. Triangular Numbers
  205. Program to print Sum Triangle for a given array
  206. Check if two numbers are equal without using arithmetic and comparison operators
  207. Iterative Search for a key 'x' in Binary Tree
  208. Linked List | Set 2 (Inserting a node)
  209. Queue - Linked List Implementation
  210. Search an element in a Linked List (Iterative and Recursive)
  211. Insertion Sort for Singly Linked List
  212. Delete last occurrence of an item from linked list
  213. Stack | Set 3 (Reverse a string using stack)
  214. Find Excel column number from column title
  215. Minimum number of Appends needed to make a string palindrome
  216. Move spaces to front of string in single traversal
  217. Binary representation of next number
  218. Maximum sum two non-overlapping subarrays of given size
  219. Sort an array of strings according to string lengths
  220. Binary representation of next greater number with same number of 1's and 0's
  221. Remove all occurrences of duplicates from a sorted Linked List
  222. Count the number of ways to divide an array into three contiguous parts having equal sum
  223. k-th distinct (or non-repeating) element in an array.
  224. Count number of ways to jump to reach end
  225. Reverse an array without using subtract sign ‘-‘ anywhere in the code
  226. First element occurring k times in an array
  227. Partitioning a linked list around a given value and If we don't care about making the elements of the list "stable"
  228. Count subsets having distinct even numbers
  229. Smallest window that contains all characters of string itself
  230. Shortest Uncommon Subsequence
  231. Program to find Smallest and Largest Word in a String
  232. Program to remove vowels from a String
  233. Dynamic Connectivity | Set 1 (Incremental)
  234. Convert a given Binary tree to a tree that holds Logical AND property
  235. Length Of Last Word in a String
  236. Sum of divisors of factorial of a number
  237. Check whether a given binary tree is perfect or not
  238. Check if a given string is a valid number (Integer or Floating Point) | SET 1(Basic approach)
  239. Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
  240. Find uncommon characters of the two strings
  241. String containing first letter of every word in a given string with spaces
  242. URLify a given string (Replace spaces is %20)
  243. Maximizing Unique Pairs from two arrays
  244. Print all substring of a number without any conversion
  245. Reverse vowels in a given string
  246. Program for quotient and remainder of big number
  247. Count pairs from two sorted arrays whose sum is equal to a given value x
  248. Painting Fence Algorithm
  249. Find Corners of Rectangle using mid points
  250. Print all internal nodes of a Binary tree
  251. Check if a string is Isogram or not
  252. Check if absolute difference of consecutive nodes is 1 in Linked List
  253. Check if an array represents Inorder of Binary Search tree or not
  254. Find the sum of last n nodes of the given Linked List
  255. Find two numbers from their sum and XOR
  256. Maximize matrix as per given condition
  257. Subarray Inversions
  258. Count quadruples from four sorted arrays whose sum is equal to a given value x
  259. Find k-th bit in a binary string created by repeated invert and append operations
  260. Check if binary representations of two numbers are anagram
  261. Lexicographically n-th permutation of a string
  262. Master Theorem For Subtract and Conquer Recurrences
  263. Count words that appear exactly two times in an array of words
  264. Count of integers of length N and value less than K such that they contain digits only from the given set
  265. Find length of loop in linked list
  266. Convert all substrings of length 'k' from base 'b' to decimal
  267. Find a string such that every character is lexicographically greater than its immediate next character
  268. Check if the given string of words can be formed from words present in the dictionary
  269. Check if binary representation of a given number and its complement are anagram
  270. Check if a string is Pangrammatic Lipogram
  271. Reverse a Linked List according to its Size
  272. Construct a complete binary tree from given array in level order fashion
  273. Longest Prime Subarray after removing one element
  274. Find any one of the multiple repeating elements in read only array
  275. Minimum Index Sum for Common Elements of Two Lists
  276. Merging two unsorted arrays in sorted order
  277. Counts Path in an Array
  278. Longest common substring in binary representation of two numbers
  279. Find the fractional (or n/k - th) node in linked list
  280. Largest number with the given set of N digits that is divisible by 2, 3 and 5
  281. Find modular node in a linked list
  282. Minimize cost of operation to equalize tower heights
  283. Shortest distance between two nodes in BST
  284. An interesting solution to get all prime numbers smaller than n
  285. Given two strings check which string makes a palindrome first
  286. Smallest element in an array that is repeated exactly 'k' times.
  287. A modified game of Nim
  288. Count All Palindrome Sub-Strings in a String | Set 2
  289. Count subarrays with equal number of occurrences of two given elements
  290. Insertion in a Binary Tree in level order
  291. Longest Common Substring in an Array of Strings
  292. Insert node into the middle of the linked list
  293. Smallest element repeated exactly ‘k’ times (not limited to small range)
  294. Length of the smallest sub-string consisting of maximum distinct characters
  295. Remove three consecutive duplicates from string
  296. Interleave the first half of the queue with second half
  297. Find the n-th number whose binary representation is a palindrome
  298. Find if a 2-D array is completely traversed or not by following the cell values
  299. Diameter of a Binary Tree in O(n) [A new method]
  300. Longest subsequence where every character appears at-least k times
  301. Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
  302. Program for SSTF disk scheduling algorithm
  303. Binary representation of previous number
  304. Program for Next Fit algorithm in Memory Management
  305. A sorting algorithm that slightly improves on selection sort
  306. Count number of digits after decimal on dividing a number
  307. Maximum number of edges to be added to a tree so that it stays a Bipartite graph
  308. Count unset bits of a number
  309. Array range queries over range queries
  310. DFS for a n-ary tree (acyclic graph) represented as adjacency list
  311. Maximize the binary matrix by filpping submatrix once
  312. Smallest number k such that the product of digits of k is equal to n
  313. Make middle node head in a linked list
  314. Sort string of characters
  315. Construct BST from its given level order traversal
  316. Unique element in an array where all elements occur k times except one
  317. Count of alphabets having ASCII value less than and greater than k
  318. Largest number with one swap allowed
  319. Check if a string is suffix of another
  320. Sudo Placement[1.4] | BST Traversal
  321. Happy Numbers
  322. Sort a Rotated Sorted Array
  323. Unique cells in a binary matrix
  324. Lexicographically largest subsequence such that every character occurs at least k times
  325. Combinations in a String of Digits
  326. Maximize value of (a[i]+i)*(a[j]+j) in an array
  327. Replace node with depth in a binary tree
  328. Generate permutations with only adjacent swaps allowed
  329. Common characters in n strings
  330. Simplify the directory path (Unix like)
  331. Check if the given array can represent Level Order Traversal of Binary Search Tree
  332. Minimum sum by choosing minimum of pairs from array
  333. Longest subarray having count of 1s one more than count of 0s
  334. Reverse a circular linked list
  335. Program to sort string in descending order
  336. Lexicographically smallest permutation with distinct elements using minimum replacements
  337. Smallest root of the equation x^2 + s(x)*x - n = 0, where s(x) is the sum of digits of root x.
  338. Distinct permutations of the string | Set 2
  339. Minimum number of elements to add to make median equals x
  340. Average numbers in array
  341. Count all 0s which are blocked by 1s in binary matrix
  342. Remove all characters other than alphabets from string
  343. Longest subarray not having more than K distinct elements
  344. Encoding a word into Pig Latin
  345. Divisors of n-square that are not divisors of n
  346. Largest number less than or equal to N in BST (Iterative Approach)
  347. Find if there is a rectangle in binary matrix with corners as 1
  348. Sort an array with swapping only with a special element is allowed
  349. Sorting using trivial hash function
  350. Maximum consecutive numbers present in an array
  351. Pair with given sum and maximum shortest distance from end
  352. Count sub-arrays which have elements less than or equal to X
  353. Maximum and Minimum value of a quadratic function
  354. Mirror of matrix across diagonal
  355. Count of operations to make a binary string"ab" free
  356. Find index of closing bracket for a given opening bracket in an expression
  357. Generate original array from an array that store the counts of greater elements on right
  358. Next word that does not contain a palindrome and has characters from first k
  359. Construct lexicographically smallest palindrome
  360. Print Longest Palindromic Subsequence
  361. Unset the last m bits
  362. Length of longest strict bitonic subsequence
  363. Decimal to octal conversion with minimum use of arithmetic operators
  364. Minimum cost to construct a string
  365. Queries for maximum difference between prime numbers in given ranges
  366. Binary Tree (Array implementation)
  367. Find largest element from array without using conditional operator
  368. Largest divisible pairs subset
  369. Minimum cost to make Longest Common Subsequence of length k
  370. DFS traversal of a tree using recursion
  371. Modify and Rearrange List
  372. Form the largest palindromic number using atmost two swaps
  373. Find the size of largest subset of anagram words
  374. Count subarrays with equal number of 1's and 0's
  375. Minimum number of subsets with distinct elements
  376. Print first N Mosaic numbers
  377. Program for triangular patterns of alphabets
  378. Print Reverse a linked list using Stack
  379. Check if the given string is the same as its reflection in a mirror
  380. Minimum difference between groups of size two
  381. Minimum Cost to make two Numeric Strings Identical
  382. Insert a whole linked list into other at k-th position
  383. Find next right node of a given key | Set 2
  384. Palindromic Selfie Numbers
  385. Find the Kth smallest element in the sorted generated array
  386. Vertical width of Binary tree | Set 1
  387. Rank of all elements in an array
  388. Banker's Algorithm in Operating System
  389. Median and Mode using Counting Sort
  390. Make a loop at k-th position in a linked list
  391. Delete a linked list using recursion
  392. Find the one missing number in range
  393. Height of binary tree considering even level leaves only
  394. Check if both halves of the string have at least one different character
  395. Convert string X to an anagram of string Y with minimum replacements
  396. Find the largest node in Doubly linked list
  397. Reduce Hamming distance by swapping two characters
  398. Partitioning into two contiguous element subarrays with equal sums
  399. Count consonants in a string (Iterative and recursive methods)
  400. Program to find simple moving average
  401. Connell Sequence
  402. String from prefix and suffix of given two strings
  403. Tilt of Binary Tree
  404. Maximum distinct lowercase alphabets between two uppercase
  405. Height of a generic tree from parent array
  406. Linked List Pair Sum
  407. Alternate Odd and Even Nodes in a Singly Linked List
  408. Expression contains redundant bracket or not
  409. Maximum spiral sum in Binary Tree
  410. Leaf nodes from Preorder of a Binary Search Tree (Using Recursion)
  411. Consecutive sequenced numbers in a string
  412. Total numbers with no repeated digits in a range
  413. N Queen in O(n) space
  414. Remove all outgoing edges except edge with minimum weight
  415. Substrings starting with vowel and ending with consonants and vice versa
  416. Non-Repeating Element
  417. Insertion sort to sort even and odd positioned elements in different orders
  418. Program to copy the contents of one array into another in the reverse order
  419. Sum of products of all combination taken (1 to n) at a time
  420. Sorted merge in one array
  421. Maximum occurring character in a linked list
  422. Iterative HeapSort
  423. Program to check if matrix is singular or not
  424. Check given array of size n can represent BST of n levels or not
  425. Find middle of singly linked list Recursively
  426. Count ordered pairs of positive numbers such that their sum is S and XOR is K
  427. Reverse each word in a linked list node
  428. Find the only repetitive element between 1 to n-1
  429. Power Set in Lexicographic order
  430. Function to copy string (Iterative and Recursive)
  431. Sort an array containing two types of elements
  432. Check if two strings are permutation of each other
  433. Schedule jobs so that each server gets equal load
  434. Find one extra character in a string
  435. Smallest multiple of a given number made of digits 0 and 9 only
  436. Check if item can be measured using a scale and some weights
  437. Lexicographically next greater string using same character set
  438. Array range queries for elements with frequency same as value
  439. Euclid Euler Theorem
  440. Count substrings with each character occurring at most k times
  441. Generate a list of n consecutive composite numbers (An interesting method)
  442. Longest common suffix of two linked lists
  443. Disjoint Set Union on trees | Set 1
  444. Find unique elements in linked list
  445. Reverse Morris traversal using Threaded Binary Tree
  446. Ways to split string such that each partition starts with distinct character
  447. Check if it possible to partition in k subarrays with equal sum
  448. Check if linked list is sorted (Iterative and Recursive)
  449. Number of common base strings for two strings
  450. Find the Largest Cube formed by Deleting minimum Digits from a number
  451. Dynamic Programming | Wildcard Pattern Matching | Linear Time and Constant Space
  452. Find nth term of the Dragon Curve Sequence
  453. Hill Cipher
  454. Find maximum element of each row in a matrix
  455. Maximum product subset of an array
  456. Arithmetic Number
  457. Position of n among the numbers made of 2, 3, 5 & 7
  458. Program to display all alphabets from A to Z in uppercase and lowercase both
  459. Longest substring having K distinct vowels
  460. Maximum average sum partition of an array
  461. Find Sum of all unique sub-array sum for a given array.
  462. Number of ways to merge two arrays such retaining order
  463. Print reverse string after removing vowels
  464. Program to reverse a string (Iterative and Recursive)
  465. Count number of pairs in array having sum divisible by K | SET 2
  466. Check for balanced parentheses in an expression | O(1) space
  467. Minimum bit changes in Binary Circular array to reach a index
  468. Maximum adjacent difference in an array in its sorted form
  469. Maximum length of a sub-array with ugly numbers
  470. Count pairs with set bits sum equal to K
  471. Reverse String according to the number of words
  472. Maximum product quadruple (sub-sequence of size 4) in array
  473. Add n binary strings
  474. Subtract 1 without arithmetic operators
  475. Check whether the number formed by concatenating two numbers is a perfect square or not
  476. Longest subarray such that adjacent elements have at least one common digit | Set 1
  477. Print concentric rectangular pattern in a 2d matrix
  478. Design a stack to retrieve original elements and return the minimum element in O(1) time and O(1) space
  479. Multiset Equivalence Problem
  480. Smallest number in BST which is greater than or equal to N
  481. Sort the biotonic doubly linked list | Set-2
  482. Find n-th node in Preorder traversal of a Binary Tree
  483. Find a Symmetric matrix of order N that contain integers from 0 to N-1 and main diagonal should contain only 0's
  484. Find the closest element in Binary Search Tree | Space Efficient Method
  485. Find the number of operations required to make all array elements Equal
  486. Convert a Binary Tree such that every node stores the sum of all nodes in its right subtree
  487. Recursive program to generate power set
  488. Repeated Character Whose First Appearance is Leftmost
  489. Print all triplets with given sum
  490. Print all distinct circular strings of length M in lexicographical order
  491. Number of permutations such that sum of elements at odd index and even index are equal
  492. Degree of a Cycle Graph
  493. Minimum inverting factor in an array
  494. Rearrange a Linked List in Zig-Zag fashion | Set-2
  495. Minimum steps needed to cover a sequence of points on an infinite grid
  496. Make all numbers of an array equal
  497. Remove leading zeros from an array
  498. Remove edges connected to a node such that the three given nodes are in different trees
  499. Number of Larger Elements on right side in a string
  500. Print cousins of a given node in Binary Tree | Single Traversal
  501. Permutation of a string with maximum number of characters greater than its adjacent characters
  502. Reduce string to shortest length by deleting a pair of same adjacent characters
  503. Minimum element left from the array after performing given operations
  504. Replace every element with the greatest element on its left side
  505. Level order traversal in spiral form | Using one stack and one queue
  506. Check if concatenation of two strings is balanced or not
  507. Lexicographically smallest string formed by appending a character from the first K characters of a given string
  508. Sudo Placement[1.3] | Stack Design
  509. Number of Counterclockwise shifts to make a string palindrome
  510. Delete all the nodes from the doubly linked list that are greater than a given value
  511. First non-repeating character using one traversal of string | Set 2
  512. Print the nearest prime number formed by adding prime numbers to N
  513. Sum of all maximum frequency elements in Matrix
  514. Replace every character of string by character whose ASCII value is K times more than it
  515. Find index of first occurrence when an unsorted array is sorted
  516. Sudo Placement[1.5] | Wolfish
  517. Sorting without comparison of elements
  518. Sum of all prime divisors of all the numbers in range L-R
  519. Number of elements smaller than root using preorder traversal of a BST
  520. Shortest distance between two nodes in an infinite binary tree
  521. Find indices of all occurrence of one string in other
  522. Check if two trees have same structure
  523. Possible number of Rectangle and Squares with the given set of elements
  524. Count pairs with Bitwise XOR as ODD number
  525. Saddleback Search Algorithm in a 2D array
  526. Majority Element | Set-2 (Hashing)
  527. Flatten a binary tree into linked list | Set-2
  528. Delete array element in given index range [L - R]
  529. Round Robin Scheduling with different arrival times
  530. Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
  531. Sum of all elements repeating 'k' times in an array
  532. Total sum except adjacent of a given node in a Binary Tree
  533. Counting frequencies of array elements
  534. Bubble Sort On Doubly Linked List
  535. Split array to three subarrays such that sum of first and third subarray is equal and maximum
  536. Difference between fundamental data types and derived data types
  537. Minimum multiplications with {2, 3, 7} to make two numbers equal
  538. Prim's Algorithm (Simple Implementation for Adjacency Matrix Representation)
  539. Kruskal's Algorithm (Simple Implementation for Adjacency Matrix)
  540. Minimum number of changes required to make the given array an AP
  541. Printing frequency of each character just after its consecutive occurrences
  542. Balanced expressions such that given positions have opening brackets | Set 2
  543. Minimum element in a max heap
  544. Check if Queue Elements are pairwise consecutive
  545. Modulo power for large numbers represented as strings
  546. Program to find GCD or HCF of two numbers using Middle School Procedure
  547. Check if the first and last digit of the smallest number forms a prime
  548. Sort first k values in ascending order and remaining n-k values in descending order
  549. Find kth node from Middle towards Head of a Linked List
  550. Convert an Array to a Circular Doubly Linked List
  551. Find Nth term of series 1, 4, 15, 72, 420...
  552. Recursive Approach to find nth node from the end in the linked list
  553. Longest subarray having maximum sum
  554. Reverse a doubly circular linked list
  555. Find the largest after deleting the given elements
  556. LIFO (Last-In-First-Out) approach in Programming
  557. Remove duplicates from a string in O(1) extra space
  558. Sum of the nodes of a Singly Linked List
  559. Check if a number is divisible by 41 or not
  560. Find count of common nodes in two Doubly Linked Lists
  561. Count elements that are divisible by at-least one element in another array
  562. Rat in a Maze | Backtracking using Stack
  563. Find four factors of N with maximum product and sum equal to N
  564. Minimum operation require to make first and last character same
  565. Find Nth term (A matrix exponentiation example)
  566. Generating subarrays using recursion
  567. Recursively Reversing a linked list (A simple implementation)
  568. Maximize the product of four factors of a Number
  569. Find a palindromic string B such that given String A is a subsequense of B
  570. Check if given string can be formed by two other strings or their permutations
  571. Find any pair with given GCD and LCM
  572. Minimum number of palindromes required to express N as a sum | Set 2
  573. Count the number of ways to traverse a Matrix
  574. Count numbers (smaller than or equal to N) with given digit sum
  575. Delete all the nodes from a doubly linked list that are smaller than a given value
  576. Sum of minimum elements of all subarrays
  577. Program to check if all characters have even frequency
  578. Maximum and Minimum element of a linked list which is divisible by a given number k
  579. Find the winner of the Game to Win by erasing any two consecutive similar alphabets
  580. Find number of magical pairs of string of length L
  581. Find triplets in an array whose AND is maximum
  582. Check if Queue Elements are pairwise consecutive | Set-2
  583. Remove a given word from a String
  584. Ways to write N as sum of two or more positive integers | Set-2
  585. Replace even nodes of a doubly linked list with the elements of array
  586. Print Doubly Linked list in Reverse Order
  587. Check if a Linked List is Pairwise Sorted
  588. Delete all Prime Nodes from a Doubly Linked List
  589. Delete all nodes from the doubly linked list which are divisible by K
  590. Check if elements of Linked List are present in pair
  591. Number of balanced bracket subsequence of length 2 and 4
  592. Replace minimal number of characters to make all characters pair wise distinct
  593. Quotient - Remainder Sort
  594. Find a peak element in Linked List
  595. Program to print the Zigzag pattern
  596. Find the largest good number in the divisors of given number N
  597. Check if there is any common character in two given strings
  598. How to access elements of a Square Matrix
  599. Meta Binary Search | One-Sided Binary Search
  600. Product of all nodes in a doubly linked list divisible by a given number K
  601. Check if it is possible to return to the starting position after moving in the given directions
  602. Find Sum of pair from two arrays with maximum sum
  603. Product of the nodes of a Singly Linked List
  604. Check whether it is possible to join two points given on circle such that distance between them is k
  605. Maximize the number of subarrays with XOR as zero
  606. Pair with given sum in matrix
  607. Check if a pair with given absolute difference exists in a Matrix
  608. Find the sum of all highest occurring elements in an Array
  609. Sum of all minimum occurring elements in an Array
  610. Iterative program to find distance of a node from root
  611. Sum of squares of Fibonacci numbers
  612. Remove BST Keys in a given Range
  613. Ulam Number Sequence
  614. Sum of all prime numbers in an Array
  615. Find pairs with given product in a sorted Doubly Linked List
  616. Check if there exists any sub-sequence in a string which is not palindrome
  617. Check if suffix and prefix of a string are palindromes
  618. Find the winner of the game with N piles of boxes
  619. Program to Print Mirrored Hollow Parallelogram
  620. Sum of the alternate nodes of linked list
  621. Kth prime number greater than N
  622. All vertex pairs connected with exactly k edges in a graph
  623. Largest element in the array that is repeated exactly k times
  624. Sum of Fibonacci numbers at even indexes upto N terms
  625. Check if a pair with given product exists in Linked list
  626. Find the node with maximum value in a Binary Search Tree
  627. Sort prime numbers of an array in descending order
  628. How to convert Vector to array in Java
  629. Search in a sorted 2D matrix (Stored in row major order)
  630. Rearrange all elements of array which are multiples of x in increasing order
  631. Maximum no. of contiguous Prime Numbers in an array
  632. Remove characters from string that appears strictly less than K times
  633. Check if any permutation of N equals any power of K
  634. Check if it is possible to rearrange a binary string with alternate 0s and 1s
  635. Check if there is any pair in a given range with GCD is divisible by k
  636. Get K-th letter of the decoded string formed by repeating substrings
  637. Check if a string contains a palindromic sub-string of even length
  638. Remove elements from the array which appear more than k times
  639. Replace every elements in the array by its frequency in the array
  640. Find the foot of perpendicular of a point in a 3 D plane
  641. Remove elements from the array whose frequency lies in the range [l, r]
  642. Find number of cavities in a matrix
  643. Immediate smallest number after re-arranging the digits of a given number
  644. Replace every array element by sum of previous and next
  645. String matching with * (that matches with any) in any of the two strings
  646. Assign other value to a variable from two possible values
  647. Minimize Cost with Replacement with other allowed
  648. String with frequency of characters in Lucas Sequence
  649. Replace consonants with next immediate consonants alphabetically in a String
  650. Array elements with prime frequencies
  651. Sum and Product of all the nodes which are less than K in the linked list
  652. XOR of all Prime numbers in an Array
  653. Check whether it is possible to make both arrays equal by modifying a single element
  654. Number of words in a camelcase sequence
  655. Check whether all the rotations of a given number is greater than or equal to the given number or not
  656. Check whether product of digits at even places of a number is divisible by K
  657. Shortest distance to every other character from given character
  658. XOR of Prime Frequencies of Characters in a String
  659. Longest subarray with elements having equal modulo K
  660. N digit numbers divisible by 5 formed from the M digits
  661. Replace every element with the smallest element on its left side
  662. Replace each element by the difference of the total size of the array and frequency of that element
  663. Check if the Xor of the frequency of all digits of a number N is zero or not
  664. Magical Pattern
  665. Minimum number of elements to be replaced to make the given array a Fibonacci Sequence
  666. Program to print hollow Triangle pattern
  667. Mode
  668. Find the count of palindromic sub-string of a string in its sorted form
  669. Check whether a given binary tree is skewed binary tree or not?
  670. Minimum swaps to group similar characters side by side?
  671. Count the number of words having sum of ASCII values less than and greater than k
  672. XOR of all elements of array with set bits equal to K
  673. Count number of bits changed after adding 1 to given N
  674. Find the value of f(n) / f(r) * f(n-r)
  675. Infix to Postfix using different Precedence Values for In-Stack and Out-Stack
  676. Maximum litres of water that can be bought with N Rupees
  677. Find the player who rearranges the characters to get a palindrome string first
  678. Check whether the frequencies of all the characters in a string are prime or not
  679. Program to remove consonants from a String
  680. Count distinct pairs from two arrays having same sum of digits
  681. Double ended priority queue
  682. Check if two nodes are in same subtree of the root node
  683. Minimum number of characters to be replaced to make a given string Palindrome
  684. Generate a sequence with the given operations
  685. Check if the given push and pop sequences of Stack is valid or not
  686. Sort perfect squares in an array at their relative positions
  687. Count pairs (A, B) such that A has X and B has Y number of set bits and A+B = C
  688. Number of ways to reach the end of matrix with non-zero AND value
  689. Program to convert the diagonal elements of the matrix to 0
  690. Find minimum steps required to reach the end of a matrix | Set - 1
  691. Sum of elements whose square root is present in the array
  692. Program to find average of all nodes in a Linked List
  693. Reverse middle words of a string
  694. Check if elements of an array can be arranged satisfying the given condition
  695. Check if the given decimal number has 0 and 1 digits only
  696. Fraction
  697. Program to print the given H Pattern
  698. Update adjacent nodes if the current node is zero in a Singly Linked List
  699. Check if moves in a stack or queue are possible or not
  700. Recursive program to print all subsets with given sum
  701. Add index to characters and reverse the string
  702. Count of Numbers in a Range where digit d occurs exactly K times
  703. Difference between Recursion and Iteration
  704. Program for converting hours into minutes and seconds
  705. Buy minimum items without change and given coins
  706. Convert a String into a square matrix grid of characters
  707. Check if a number is perfect square without finding square root
  708. Represent n as the sum of exactly k powers of two | Set 2
  709. Shortest root to leaf path sum equal to a given number
  710. Find probability that a player wins when probabilities of hitting the target are given
  711. Probability that a N digit number is palindrome
  712. Number of subarrays have bitwise OR >= K
  713. Count of pairs violating BST property
  714. Smallest multiple of 3 which consists of three given non-zero digits
  715. Largest right circular cylinder that can be inscribed within a cone which is in turn inscribed within a cube
  716. Count distinct elements in an array
  717. Check if a string can be repeated to make another string
  718. A variation of Rat in a Maze : multiple steps or jumps allowed
  719. Check whether the given character is in upper case, lower case or non alphabetic character
  720. Sort even and odd placed elements in increasing order
  721. Find safe cells in a matrix
  722. Predictor-Corrector or Modified-Euler method for solving Differential equation
  723. Find the Side of the smallest Square that can contain given 4 Big Squares
  724. Count the number of survivors
  725. Check if a number can be represented as a sum of 2 triangular numbers
  726. Print numbers such that no two consecutive numbers are co-prime and every three consecutive numbers are co-prime
  727. Minimum replacements to make adjacent characters unequal in a ternary string
  728. Closest sum partition (into two subsets) of numbers from 1 to n
  729. Operations required to make the string empty
  730. Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
  731. Number of sub-strings that contain the given character exactly k times
  732. Lexicographically largest sub-sequence of the given string
  733. Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
  734. Sum of minimum elements of all possible sub-arrays of an array
  735. Find sub-matrix with the given sum
  736. Program to reverse a linked list using Stack
  737. Print Leaf Nodes at a given Level
  738. DFA for accepting the language L = {an bm | n+m=odd}
  739. Find a positive number M such that gcd(N^M, N&M) is maximum
  740. Given two binary strings perform operation until B > 0 and print the result
  741. Smallest Special Prime which is greater than or equal to a given number
  742. Split the array into odd number of segments of odd lengths
  743. Maximum Bitwise AND pair from given range
  744. Sum of all Submatrices of a Given Matrix
  745. Print All Leaf Nodes of a Binary Tree from left to right | Set-2 ( Iterative Approach )
  746. Count array elements that divide the sum of all other elements
  747. Find the maximum value permutation of a graph
  748. Find Nth positive number whose digital root is X
  749. Sum of bitwise AND of all submatrices
  750. Sum of Bitwise-OR of all Submatrices
  751. Count Numbers in Range with difference between Sum of digits at even and odd positions as Prime
  752. Number of connected components in a 2-D matrix of strings
  753. Longest subsequence such that adjacent elements have at least one common digit
  754. Minimum changes required to make a Catalan Sequence
  755. Count all elements in the array which appears at least K times after their first occurrence
  756. Two equal sum segment range queries
  757. Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
  758. Sum of numbers from 1 to N which are in Lucas Sequence
  759. Bitwise OR of N binary strings
  760. Minimize sum of adjacent difference with removal of one element from array
  761. Chessboard Pawn-Pawn game
  762. Group consecutive characters of same type in a string
  763. Probability of A winning the match when individual probabilities of hitting the target given
  764. Minimum number of replacements to make the binary string alternating | Set 2
  765. Longest double string from a Palindrome
  766. Print the last k nodes of the linked list in reverse order | Iterative Approaches
  767. Ways to form a group from three groups with given constraints
  768. Minimum number of bracket reversals needed to make an expression balanced | Set - 2
  769. Sum of the series (1*2) + (2*3) + (3*4) + ...... upto n terms
  770. Numbers that are not divisible by any number in the range [2, 10]
  771. Find the K-th minimum element from an array concatenated M times
  772. Maximum number that can be display on Seven Segment Display using N segments
  773. Program to calculate the value of nPr
  774. Check if the given array is mirror-inverse
  775. Find d to maximize the number of zeros in array c[] created as c[i] = d*a[i] + b[i]
  776. Minimum steps to make all the elements of the array divisible by 4
  777. Character whose frequency is equal to the sum of frequencies of other characters of the given string
  778. Find the side of the squares which are inclined diagonally and lined in a row
  779. Remove first adjacent pairs of similar characters until possible
  780. Addition of two numbers without propagating Carry
  781. Find the sum of all Truncatable primes below N
  782. Search an element in given N ranges
  783. Minimum cuts required to convert a palindromic string to a different palindromic string
  784. Find maximum N such that the sum of square of first N natural numbers is not more than X
  785. Generate array with minimum sum which can be deleted in P steps
  786. Check if matrix can be converted to another matrix by transposing square sub-matrices
  787. Minimum changes required such that the string satisfies the given condition
  788. Find if the given number is present in the infinite sequence or not
  789. Find the number of good permutations
  790. Check if the given array can be reduced to zeros with the given operation performed given number of times
  791. Minimum length of square to contain at least half of the given Coordinates
  792. Count integers in a range which are divisible by their euler totient value
  793. Number of ways to make binary string of length N such that 0s always occur together in groups of size K
  794. Count sub-arrays whose product is divisible by k
  795. Find foot of perpendicular from a point in 2 D plane to a Line
  796. Find a pair from the given array with maximum nCr value
  797. Minimum steps to delete a string by deleting substring comprising of same characters
  798. Find a distinct pair (x, y) in given range such that x divides y
  799. Find the number of ways to divide number into four parts such that a = c and b = d
  800. Find 2^(2^A) % B
  801. Check if the given binary tree has a sub-tree with equal no of 1's and 0's | Set 2
  802. Maximize the value of the given expression
  803. Programs for printing pyramid patterns using recursion
  804. Sum of Fibonacci Numbers in a range
  805. Minimize the cost to split a number
  806. Total distinct pairs of ugly numbers from two arrays
  807. Count of sub-arrays whose elements can be re-arranged to form palindromes
  808. Construct Binary Tree from given Parent Array representation | Iterative Approach
  809. Partition the array into three equal sum segments
  810. Determine the number of squares of unit area that a given line will pass through.
  811. Find the good permutation of first N natural numbers
  812. Sum of degrees of all nodes of a undirected graph
  813. Find the hypotenuse of a right angled triangle with given two sides
  814. Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
  815. Sort ugly numbers in an array at their relative positions
  816. Reverse Clockwise spiral traversal of a binary tree
  817. Iterative approach to check if a Binary Tree is Perfect
  818. Iterative approach to check for children sum property in a Binary Tree
  819. Print all leaf nodes of a binary tree from right to left
  820. Count of sub-strings that do not contain all the characters from the set {'a', 'b', 'c'} at the same time
  821. Find the number of different numbers in the array after applying the given operation q times
  822. XOR of all the elements in the given range [L, R]
  823. Arrange given numbers to form the smallest number
  824. Compare two strings considering only alphanumeric characters
  825. Find maximum in stack in O(1) without using additional stack
  826. Find the final radiations of each Radiated Stations
  827. Find number of edges that can be broken in a tree such that Bitwise OR of resulting two trees are equal
  828. Sum of nodes in a linked list which are greater than next node
  829. Count number of binary strings of length N having only 0's and 1's
  830. Maximum number of people that can be killed with strength P
  831. Length of the smallest number which is divisible by K and formed by using 1's only
  832. Find the number of binary strings of length N with at least 3 consecutive 1s
  833. Reduce the fraction to its lowest form
  834. Iterative selection sort for linked list
  835. Print path from root to all nodes in a Complete Binary Tree
  836. Insert N elements in a Linked List one after other at middle position
  837. Minimum sub-array such that number of 1's in concatenation of binary representation of its elements is at least K
  838. Find the minimum number of operations required to make all array elements equal
  839. Sum of all distinct nodes in a linked list
  840. Sum of smaller elements of nodes in a linked list
  841. Count of quadruplets with given Sum
  842. Queries to answer the number of ones and zero to the left of given index
  843. Check if two strings are same ignoring their cases
  844. Find the sum of the number of divisors
  845. Travelling Salesman Problem implementation using BackTracking
  846. Queries to check if substring[L...R] is palindrome or not
  847. Count pairs of non-overlapping palindromic sub-strings of the given string
  848. Maximum length cycle that can be formed by joining two nodes of a binary tree
  849. Minimum length of the sub-string whose characters can be used to form a palindrome of length K
  850. Check whether N is a Dihedral Prime Number or not
  851. Given a string and an integer k, find the kth sub-string when all the sub-strings are sorted according to the given condition
  852. Check whether the given string is a valid identifier
  853. Find the nth term of the given series
  854. Find the sum of leafs at maximum level
  855. Queries to update a given index and find gcd in range
  856. Remove all occurrences of any element for maximum array sum
  857. Highest power of a number that divides other number
  858. Maximum elements which can be crossed using given units of a and b
  859. Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term
  860. Reverse alternate k characters in a string
  861. Check if given two straight lines are identical or not
  862. Game Theory in Balanced Ternary Numeral System | (Moving 3k steps at a time)
  863. Find sum of factorials in an array
  864. Count of quadruplets with given Sum | Set 2
  865. Find the Diameter or Longest chord of a Circle
  866. Determine the position of the third person on regular N sided polygon
  867. Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
  868. Maximum sum of leaf nodes among all levels of the given binary tree
  869. Reorder the position of the words in alphabetical order
  870. Given two arrays count all pairs whose sum is an odd number
  871. Print steps to make a number in form of 2^X - 1
  872. Length of the direct common tangent between two externally touching circles
  873. Maximize the given number by replacing a segment of digits with the alternate digits given
  874. Count unique numbers that can be generated from N by adding one and removing trailing zeros
  875. Find element with the maximum set bits in an array
  876. Minimum number of cubes whose sum equals to given number N
  877. Generate an array of K elements such that sum of elements is N and the condition a[i] < a[i+1] <= 2*a[i] is met | Set 2
  878. Calculate score for the given binary string
  879. Count number of 1s in the array after N moves
  880. Area of plot remaining at the end
  881. Minimum increments to convert to an array of consecutive integers
  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. Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
  885. Minimum operations required to change the array such that |arr[i] - M| <= 1
  886. Maximum sum path in a matrix from top to bottom and back
  887. Minimum number of given operations required to reduce the array to 0 element
  888. Find prime number K in an array such that (A[i] % K) is maximum
  889. Create linked list from a given array
  890. Create a sequence whose XOR of elements is y
  891. Count squares with odd side length in Chessboard
  892. Check if the number is valid when flipped upside down
  893. Find minimum steps required to reach the end of a matrix | Set 2
  894. Minimize the number of steps required to reach the end of the array | Set 2
  895. Minimum steps required to reach the end of a matrix | Set 2
  896. Queries for bitwise AND in the index range [L, R] of the given array
  897. Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
  898. Program to find the number of men initially
  899. Count the nodes of the given tree whose weight has X as a factor
  900. Maximum Sum Subsequence of length k
  901. Change one element in the given array to make it an Arithmetic Progression
  902. Count number of ways to divide an array into two halves with same sum
  903. Check if each element of the given array is the product of exactly K prime numbers
  904. Number of ways to divide an array into K equal sum sub-arrays
  905. Count duplicates in a given linked list
  906. Print combinations of distinct numbers which add up to give sum N
  907. Find the largest possible k-multiple set
  908. Find the sum of the ascii values of characters which are present at prime positions
  909. Count of three non-overlapping sub-strings which on concatenation forms a palindrome
  910. Maximise array sum after taking non-overlapping sub-arrays of length K
  911. Sum of XOR of all sub-arrays of length K
  912. Count the number of digits of palindrome numbers in an array
  913. Count the maximum number of elements that can be selected from the array
  914. Find uncommon characters of the two strings | Set 2
  915. Minimum length subarray of 1s in a Binary Array
  916. Count number of distinct substrings of a given length
  917. Program to calculate angle on circumference subtended by the chord when the central angle subtended by the chord is given
  918. Longest prefix in a string with highest frequency
  919. Maximum sub-sequence sum such that indices of any two adjacent elements differs at least by 3
  920. Find the node with minimum value in a Binary Search Tree using recursion
  921. Queries for number of distinct elements from a given index till last index in an array
  922. Reverse the Sentence using Stack
  923. Minimum time required to rot all oranges | Dynamic Programming
  924. Rearrange characters in a string such that no two adjacent are same using hashing
  925. Find Nth smallest number that is divisible by 100 exactly K times
  926. Kth smallest element in the array using constant space when array can't be modified
  927. Check whether it is possible to convert A into B
  928. Check whether str1 can be converted to str2 with the given operations
  929. Number of elements from the array which are reachable after performing given operations on D
  930. Maximum previous and next element product
  931. Find the minimum number of elements that should be removed to make an array good
  932. Find XOR of numbers from the range [L, R]
  933. Construct a DFA which accept the language L = {w | w ∈ {a,b}* and Na(w) mod 3 = Nb (w) mod 3}
  934. Construct a DFA which accept the language L = {anbm | n > =1, (m) mod 3 = 1}
  935. Reverse alternate K nodes in a Singly Linked List - Iterative Solution
  936. Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
  937. Minimum number of adjacent swaps to convert a string into its given anagram
  938. Probability of getting more heads than tails when N biased coins are tossed
  939. Coin Change | BFS Approach
  940. Minimum number of steps to convert a given matrix into Upper Hessenberg matrix
  941. Find a subarray whose sum is divisible by size of the array
  942. Program to calculate the area of Kite
  943. Flatten Binary Tree in order of Level Order Traversal
  944. Sum of Semi-Prime Numbers less than or equal to N
  945. Nodes from given two BSTs with sum equal to X
  946. Partiton the string in two parts such that both parts have at least k different characters
  947. Find the position of the given row in a 2-D array
  948. Unbounded Fractional Knapsack
  949. Find Leftmost and Rightmost node of BST from its given preorder traversal
  950. Distinct adjacent elements in a binary array
  951. Find a partition point in array to maximize its xor sum
  952. Count of non-overlapping sub-strings "101" and "010" in the given binary string
  953. Programs to print Triangle and Diamond patterns using recursion
  954. Splitting starting N nodes into new Circular Linked List while preserving the old nodes
  955. Print the lexicographically smallest array by swapping elements whose sum is odd
  956. Generate all possible strings such that char at index i is either str1[i] or str2[i]
  957. Longest subsequence such that every element in the subsequence is formed by multiplying previous element with a prime
  958. Maximum length sub-array which satisfies the given conditions
  959. Sum of the Tan(x) expansion upto N terms
  960. Alternate XOR operations on sorted array
  961. Longest sub string of 0's in a binary string which is repeated K times
  962. Number of balanced parenthesis substrings
  963. Remove minimum elements from the array such that 2*min becomes more than max
  964. All unique combinations whose sum equals to K
  965. Time taken per hour for stoppage of Car
  966. Find the difference of count of equal elements on the right and the left for each element
  967. Lexicographically largest permutation of the array such that a[i] = a[i-1] + gcd(a[i-1], a[i-2])
  968. Smallest power of 4 greater than or equal to N
  969. Alcuin's Sequence
  970. Gijswijt's Sequence
  971. Subtraction of the alternate nodes of Linked List
  972. Count of all possible pairs of disjoint subsets of integers from 1 to N
  973. Print all the peaks and troughs in an Array of Integers
  974. Subsequence X of length K such that gcd(X[0], X[1]) + (X[2], X[3]) + ... is maximized
  975. Sum of even elements of an Array using Recursion
  976. Maximum Bitwise AND value of subsequence of length K
  977. Product of Primes of all Subsets
  978. Largest substring with same Characters
  979. Maximum value of division of two numbers in an Array
  980. Reduce number to a single digit by subtracting adjacent digits repeatedly
  981. Nambiar Number Generator
  982. Remove Nth node from end of the Linked List
  983. FCFS Disk Scheduling Algorithms
  984. Bit manipulation | Swap Endianness of a number
  985. Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given
  986. Check whether Quadrilateral is valid or not if angles are given
  987. How to learn Pattern printing easily?
  988. Find the smallest positive number missing from an unsorted array | Set 3
  989. Lexicographical smallest alternate Array
  990. Equal Sum and XOR of three Numbers
  991. Number of Subsequences with Even and Odd Sum
  992. Print the season name of the year based on the month number
  993. Print all the permutation of length L using the elements of an array | Iterative
  994. Lexicographical ordering using Heap Sort
  995. Check if it is possible to perform the given Grid Division
  996. Maximum XOR of Two Numbers in an Array
  997. Delete the last leaf node in a Binary Tree
  998. Find Kth element in an array containing odd elements first and then even elements
  999. Ways to choose balls such that at least one ball is chosen
  1000. Generate N integers satisfying the given conditions
  1001. Find the first N integers such that the sum of their digits is equal to 10
  1002. Maximum subsequence sum such that all elements are K distance apart
  1003. Count the values greater than X in the modified array
  1004. Sum of absolute differences of pairs from the given array that satisfy the given condition
  1005. Find the minimum value from an array associated with another array
  1006. Calculate height of Binary Tree using Inorder and Level Order Traversal
  1007. Queries for the smallest and the largest prime number of given digit
  1008. Count of numbers below N whose sum of prime divisors is K
  1009. Find the count of subsequences where each element is divisible by K
  1010. Count occurrences of a prime number in the prime factorization of every element from the given range
  1011. Product of elements in an array having prime frequency
  1012. Find the number of pairs such that their gcd is equals to 1
  1013. Find the sum of all possible pairs in an array of N elements
  1014. Find out the prime numbers in the form of A+nB or B+nA
  1015. Count of subsets not containing adjacent elements
  1016. Sum of the digits of square of the given number which has only 1's as its digits
  1017. Check if a right-angled triangle can be formed by moving any one of the coordinates
  1018. Minimum cost to make all array elements equal
  1019. Bitwise AND of the sum of prime numbers and the sum of composite numbers in an array
  1020. Queries to check whether all the elements in the given range occurs even number of times
  1021. Prime Subset Product Problem
  1022. Angle between 3 given vertices in a n-sided regular polygon
  1023. Count of elements which are equal to the XOR of the next two elements
  1024. Number of occurrences of a given angle formed using 3 vertices of a n-sided regular polygon
  1025. Check if the Matrix satisfies the given conditions
  1026. Count of operations required to update the array such that it satisfies the given conditions
  1027. GCD of elements which occur prime number of times
  1028. Check if the number formed by the last digits of N numbers is divisible by 10 or not
  1029. Find the permutation of first N natural numbers such that sum of i % Pi is maximum possible
  1030. Find the sum of prime numbers in the Kth array
  1031. Count number of binary strings such that there is no substring of length greater than or equal to 3 with all 1's
  1032. Reduce N to 1 with minimum number of given operations
  1033. Maximum count of common divisors of A and B such that all are co-primes to one another
  1034. Find the day number in the current year for the given date
  1035. Minimum cost to convert str1 to str2 with the given operations
  1036. Count of N-digit numbers in base K with no two consecutive zeroes
  1037. Check duplicates in a stream of strings
  1038. Choose X elements from A[] and Y elements from B[] which satisfy the given condition
  1039. Maximum length sub-array which satisfies the given conditions
  1040. Count total number of even sum sequences
  1041. Program to print the Ladder Pattern
  1042. Find Partition Line such that sum of values on left and right is equal
  1043. Sum of Digits of the Good Strings
  1044. Sorting objects using In-Place sorting algorithm
  1045. Count of elements on the left which are divisible by current element
  1046. Program to print the Diagonals of a Matrix
  1047. Finding the converging element of the diagonals in a square matrix
  1048. Find the deleted value from the array when average of original elements is given
  1049. Probability that a random pair chosen from an array (a[i], a[j]) has the maximum sum
  1050. Check whether the given integers a, b, c and d are in proportion
  1051. Number of ways to insert two pairs of parentheses into a string of N characters
  1052. Number of subsets whose mean is maximum
  1053. Count number of rotated strings which have more number of vowels in the first half than second half
  1054. Check if it is possible to make array increasing or decreasing by rotating the array
  1055. Maximum LCM among all pairs (i, j) of first N natural numbers
  1056. Find the Kth position element of the given sequence
  1057. Count of N-digit Palindrome numbers
  1058. Modify the string such that every character gets replaced with the next character in the keyboard
  1059. Represent (2 / N) as the sum of three distinct positive integers of the form (1 / m)
  1060. Program to find the last digit of X in base Y
  1061. Count of triplets in an array that satisfy the given conditions
  1062. Count of integers obtained by replacing ? in the given string that give remainder 5 when divided by 13
  1063. Generating all divisors of a number using its prime factorization
  1064. Maximum possible Bitwise OR of the two numbers from the range [L, R]
  1065. Check if the bracket sequence can be balanced with at most one change in the position of a bracket | Set 2
  1066. Program to toggle K-th bit of a number N
  1067. Find the maximum element in the array other than Ai
  1068. Minimum possible value of (i * j) % 2019
  1069. Check whether the given floating point number is a palindrome
  1070. Program to print first N Prime numbers
  1071. Longest sub-sequence with maximum GCD
  1072. Longest sub-sequence with non-negative sum
  1073. Integer part of the geometric mean of the divisors of N
  1074. Count of squares that can be drawn without lifting the pencil
  1075. Number of non-decreasing sub-arrays of length K
  1076. Number of subsets with a given AND value
  1077. Number of subsets with a given OR value
  1078. Count integers in the range [A, B] that are not divisible by C and D
  1079. Sum of subsets of all the subsets of an array | O(2^N)
  1080. Sum of subsets of all the subsets of an array | O(N)
  1081. Number of K's such that the given array can be divided into two sets satisfying the given conditions
  1082. Count of elements which are second smallest among three consecutive elements
  1083. Find all palindrome numbers of given digits
  1084. Number of non-decreasing sub-arrays of length greater than or equal to K
  1085. Number of non-decreasing sub-arrays of length less than or equal to K
  1086. Maximum number of splits of a binary number
  1087. Number of subarrays with GCD equal to 1
  1088. Convert a Singly Linked List to an array
  1089. Reduce the string to minimum length with the given operation
  1090. Check if a number is Euler Pseudoprime