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

  1. Write a function to get Nth node in a Linked List
  2. Write a function that counts the number of times a given int occurs in a Linked List
  3. Given only a pointer to a node to be deleted in a singly linked list, how do you delete it?
  4. Level Order Tree Traversal
  5. Delete a node in a Doubly Linked List
  6. Identical Linked Lists
  7. Foldable Binary Trees
  8. Find Union and Intersection of two unsorted arrays
  9. Program for Fibonacci numbers
  10. Find the smallest window in a string containing all characters of another string
  11. Naive algorithm for Pattern Searching
  12. Rabin-Karp Algorithm for Pattern Searching
  13. Segregate even and odd nodes in a Linked List
  14. Trie | (Insert and Search)
  15. Smallest of three integers without comparison operators
  16. Analysis of Algorithms | Set 2 (Worst, Average and Best Cases)
  17. Populate Inorder Successor for all nodes
  18. AVL Tree | Set 1 (Insertion)
  19. AVL Tree | Set 2 (Deletion)
  20. Find a triplet that sum to a given value
  21. Boyer Moore Algorithm for Pattern Searching
  22. Find the smallest positive number missing from an unsorted array | Set 1
  23. Rotate a Linked List
  24. Check whether a given Binary Tree is Complete or not | Set 1 (Iterative Solution)
  25. Find the largest multiple of 3 | Set 1 (Using Queue)
  26. Find the element that appears once
  27. Lexicographic rank of a string
  28. Binary representation of a given number
  29. The Stock Span Problem
  30. Segment Tree | Set 1 (Sum of given range)
  31. Segment Tree | Set 2 (Range Minimum Query)
  32. Flatten a multilevel linked list
  33. Maximum sum rectangle in a 2D matrix | DP-27
  34. Reverse Level Order Traversal
  35. Counting Sort
  36. Construct Complete Binary Tree from its Linked List Representation
  37. Remove BST keys outside the given range
  38. Remove "b" and "ac" from a given string
  39. Ford-Fulkerson Algorithm for Maximum Flow Problem
  40. Check for Identical BSTs without building the trees
  41. How to check if two given line segments intersect?
  42. Merge a linked list into another linked list at alternate positions
  43. Pairwise swap elements of a given linked list by changing links
  44. Find if two rectangles overlap
  45. Given a linked list, reverse alternate nodes and append at the end
  46. Print a Binary Tree in Vertical Order | Set 1
  47. Remove minimum elements from either side such that 2*min becomes more than max
  48. Boolean Parenthesization Problem | DP-37
  49. Mobile Numeric Keypad Problem
  50. Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes
  51. Binary Indexed Tree or Fenwick Tree
  52. Flood fill Algorithm - how to implement fill() in paint?
  53. Given a binary string, count number of substrings that start and end with 1.
  54. Find the element that appears once in an array where every other element appears twice
  55. Find maximum depth of nested parenthesis in a string
  56. Find number of days between two given dates
  57. How to print maximum number of A's using given four keys
  58. Group multiple occurrence of array elements ordered by first occurrence
  59. Swap nodes in a linked list without swapping data
  60. Point to next higher value node in a linked list with an arbitrary pointer
  61. Compute n! under modulo p
  62. Converting Decimal Number lying between 1 to 3999 to Roman Numerals
  63. Find the nearest smaller numbers on left side in an array
  64. Remove spaces from a given string
  65. Collect maximum points in a grid using two traversals
  66. Validity of a given Tic-Tac-Toe board configuration
  67. Find the length of largest subarray with 0 sum
  68. Find the largest rectangle of 1's with swapping of columns allowed
  69. Find all possible outcomes of a given expression
  70. Given a Boolean Matrix, find k such that all elements in k'th row are 0 and k'th column are 1.
  71. Rearrange a given linked list in-place.
  72. How to check if a given array represents a Binary Heap?
  73. Find shortest unique prefix for every word in a given list | Set 1 (Using Trie)
  74. Reverse an array without affecting special characters
  75. Reorder an array according to given indexes
  76. Combinatorial Game Theory | Set 3 (Grundy Numbers/Nimbers and Mex)
  77. Count number of ways to divide a number in 4 parts
  78. Orientation of 3 ordered points
  79. Print Concatenation of Zig-Zag String in 'n' Rows
  80. Form minimum number from given sequence
  81. Number of Integral Points between Two Points
  82. Construct a Binary Search Tree from given postorder
  83. Iterative function to check if two trees are identical
  84. Rearrange a linked list such that all even and odd positioned nodes are together
  85. Rearrange a Linked List in Zig-Zag fashion
  86. Add 1 to a number represented as linked list
  87. Point arbit pointer to greatest value right side node in a linked list
  88. Check if a linked list of strings forms a palindrome
  89. Convert a Binary Tree into Doubly Linked List in spiral fashion
  90. Caesar Cipher
  91. Combinatorial Game Theory | Set 4 (Sprague - Grundy Theorem)
  92. Combinations with repetitions
  93. Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
  94. Absolute distinct count in a sorted array
  95. Printing Shortest Common Supersequence
  96. Find if string is K-Palindrome or not | Set 1
  97. Merge K sorted linked lists | Set 1
  98. Longest Common Prefix using Character by Character Matching
  99. Maximum value K such that array has at-least K elements that are >= K
  100. Lower case to upper case - An interesting fact
  101. Longest Common Prefix using Binary Search
  102. Remove duplicates from an array of small primes
  103. Find if string is K-Palindrome or not | Set 2
  104. Rearrange positive and negative numbers with constant extra space
  105. Flatten a multi-level linked list | Set 2 (Depth wise)
  106. Sub-string Divisibility by 3 Queries
  107. Find longest palindrome formed by removing or shuffling chars from string
  108. Check if string follows order of characters defined by a pattern or not | Set 1
  109. Longest Geometric Progression
  110. Check if an array can be Arranged in Left or Right Positioned Array
  111. A Space Optimized DP solution for 0-1 Knapsack Problem
  112. Count digit groupings of a number with given constraints
  113. Pairs of complete strings in two sets of strings
  114. Binary Indexed Tree : Range Updates and Point Queries
  115. Count and Toggle Queries on a Binary Array
  116. Vigenère Cipher
  117. Traveling Salesman Problem using Branch And Bound
  118. Longest common subsequence with permutations allowed
  119. Arrays.fill() in Java with Examples
  120. Queries in a Matrix
  121. Check if a string has all characters with same frequency with one variation allowed
  122. Remove minimum number of characters so that two strings become anagram
  123. Smallest Palindrome after replacement
  124. Count all pairs with given XOR
  125. Sort a string according to the order defined by another string
  126. Aliquot Sequence
  127. Sum of maximum elements of all subsets
  128. Find next Smaller of next Greater in an array
  129. Maximum sum of nodes in Binary tree such that no two are adjacent
  130. Check if given sorted sub-sequence exists in binary search tree
  131. Print matrix in diagonal pattern
  132. Count pairs whose products exist in array
  133. Minimum characters to be added at front to make string palindrome
  134. Two Clique Problem (Check if Graph can be divided in two Cliques)
  135. Partitioning a linked list around a given value and keeping the original order
  136. Find all permuted rows of a given row in a matrix
  137. Find all distinct subset (or subsequence) sums of an array
  138. Sort even-placed elements in increasing and odd-placed in decreasing order
  139. Check if all rows of a matrix are circular rotations of each other
  140. Program to implement Collatz Conjecture
  141. Depth of the deepest odd level node in Binary Tree
  142. Find pair with greatest product in array
  143. K-th smallest element after removing some integers from natural numbers
  144. Find elements which are present in first array and not in second
  145. Break an array into maximum number of sub-arrays such that their averages are same
  146. Find three element from different three arrays such that that a + b + c = sum
  147. Queries on substring palindrome formation
  148. Check whether row or column swaps produce maximum size binary sub-matrix with all 1s
  149. Sparse Matrix and its representations | Set 1 (Using Arrays and Linked Lists)
  150. Make two sets disjoint by removing minimum elements
  151. Friends Pairing Problem
  152. Printing all solutions in N-Queen Problem
  153. Implementation of Affine Cipher
  154. Check if there exist two elements in an array whose sum is equal to the sum of rest of the array
  155. Find coordinates of the triangle given midpoint of each side
  156. Check if reversing a sub array make the array sorted
  157. Circular Singly Linked List | Insertion
  158. Minimum operations required to set all elements of binary matrix
  159. Print consecutive characters together in a line
  160. Program for Goldbach’s Conjecture (Two Primes with given Sum)
  161. Program for FCFS Scheduling | Set 2 (Processes with different arrival times)
  162. Check if two arrays are equal or not
  163. Sort an array of large numbers
  164. Find the missing number in a string of numbers with no separator
  165. Find longest sequence of 1's in binary representation with one flip
  166. Count substrings with same first and last characters
  167. Find the Deepest Node in a Binary Tree
  168. Point Clipping Algorithm in Computer Graphics
  169. Check whether K-th bit is set or not
  170. Find all pairs (a,b) and (c,d) in array which satisfy ab = cd
  171. Find sum of non-repeating (distinct) elements in an array
  172. Move all occurrences of an element to end in a linked list
  173. Count half nodes in a Binary tree (Iterative and Recursive)
  174. Circular Matrix (Construct a matrix with numbers 1 to m*n in spiral way)
  175. Find the next identical calendar year
  176. Nth Square free number
  177. Smallest length string with repeated replacement of two distinct adjacent
  178. Number of occurrences of 2 as a digit in numbers from 0 to n
  179. Check if two arrays are permutations of each other
  180. Generate all binary permutations such that there are more or equal 1's than 0's before every point in all permutations
  181. Print All Distinct Elements of a given integer array
  182. Remove recurring digits in a given number
  183. Check if a sorted array can be divided in pairs whose sum is k
  184. Binary Search Tree | Set 2 (Delete)
  185. Print level order traversal line by line | Set 1
  186. Linked List | Set 1 (Introduction)
  187. Find Length of a Linked List (Iterative and Recursive)
  188. Search an element in a Linked List (Iterative and Recursive)
  189. Delete last occurrence of an item from linked list
  190. Stack | Set 3 (Reverse a string using stack)
  191. Stack Data Structure (Introduction and Program)
  192. Doolittle Algorithm : LU Decomposition
  193. Move spaces to front of string in single traversal
  194. Count full nodes in a Binary tree (Iterative and Recursive)
  195. Convert characters of a string to opposite case
  196. Reverse an array without using subtract sign ‘-‘ anywhere in the code
  197. K-th Element of Two Sorted Arrays
  198. Ropes Data Structure (Fast String Concatenation)
  199. Determine if a string has all Unique Characters
  200. Find index of an extra element present in one sorted array
  201. Delete leaf nodes with value as x
  202. Find the n-th number made of even digits only
  203. Biggest number by arranging numbers in certain order
  204. Closest (or Next) smaller and greater numbers with same number of set bits
  205. Check for Symmetric Binary Tree (Iterative Approach)
  206. Maximum sum in a 2 x n grid such that no two elements are adjacent
  207. Sum of product of all pairs of array elements
  208. Check whether the length of given linked list is Even or Odd
  209. Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
  210. Find uncommon characters of the two strings
  211. String containing first letter of every word in a given string with spaces
  212. Program to print all substrings of a given string
  213. Multiply two numbers represented by Linked Lists
  214. Reverse vowels in a given string
  215. Count pairs from two sorted arrays whose sum is equal to a given value x
  216. Arrange consonants and vowels nodes in a linked list
  217. Find a pair of elements swapping which makes sum of two arrays same
  218. Count quadruples from four sorted arrays whose sum is equal to a given value x
  219. Keyword Cipher
  220. Lexicographically n-th permutation of a string
  221. Maximum sum from a tree with adjacent levels not allowed
  222. Tracking current Maximum Element in a Stack
  223. Check if binary representation of a given number and its complement are anagram
  224. Count of Numbers in Range where the number does not contain more than K non zero digits
  225. Ways of transforming one string to other by removing 0 or more characters
  226. Largest even number possible by using one swap operation in given number
  227. Find maximum number that can be formed using digits of a given number
  228. Maximum possible sum of a window in an array such that elements of same window in other array are unique
  229. Compute average of two numbers without overflow
  230. Construct a linked list from 2D matrix
  231. Counting the number of words in a Trie
  232. Print the longest common substring
  233. Find if an array contains a string with one mismatch
  234. Recursive program to print formula for GCD of n integers
  235. Merge two sorted lists (in-place)
  236. Print all subsequences of a string
  237. Insert node into the middle of the linked list
  238. Check if stack elements are pairwise consecutive
  239. Find the n-th number whose binary representation is a palindrome
  240. Generating distinct subsequences of a given string in lexicographic order
  241. Count ways to build street under given constraints
  242. Frequency of a string in an array of strings
  243. Balance pans using given weights that are powers of a number
  244. Remove duplicates from a sorted linked list using recursion
  245. Greatest divisor which divides all natural number in range [L, R]
  246. Binary array after M range toggle operations
  247. Remove all leaf nodes from the binary search tree
  248. Longest word in ternary search tree
  249. Sort a linked list of 0s, 1s and 2s by changing links
  250. Sort an array according to absolute difference with a given value "using constant extra space"
  251. Check if two unsorted arrays (with duplicates allowed) have same elements
  252. Binary representation of previous number
  253. Pattern Printing question asked in CGI Coding Round
  254. Lexicographically smallest permutation of {1, .. n} such that no. and position do not match
  255. Insert a node after the n-th node from the end
  256. Number of substrings with count of each character as k
  257. Number of steps required to convert a binary number to one
  258. Exchange first and last nodes in Circular Linked List
  259. Maximum area rectangle by picking four sides from array
  260. Count unset bits of a number
  261. Smallest number k such that the product of digits of k is equal to n
  262. Lexicographically first alternate vowel and consonant string
  263. Check if given Preorder, Inorder and Postorder traversals are of same tree
  264. Longest Increasing Path in Matrix
  265. Unique element in an array where all elements occur k times except one
  266. Inorder Successor of a node in Binary Tree
  267. Maximum Possible Product in Array after performing given Operations
  268. Count of alphabets having ASCII value less than and greater than k
  269. Largest number with one swap allowed
  270. Aspiring Number
  271. Find smallest and largest elements in singly linked list
  272. Sudo Placement[1.4] | K Sum
  273. Generate all passwords from given character set
  274. Longest Repeated Subsequence
  275. Happy Numbers
  276. Sort a Rotated Sorted Array
  277. Mean of range in array
  278. Distance of closest zero to every element
  279. Cycles of length n in an undirected and connected graph
  280. Maximize value of (a[i]+i)*(a[j]+j) in an array
  281. k-th missing element in increasing sequence which is not present in a given sequence
  282. Programming puzzle (Assign value without any control statement)
  283. Cumulative frequency of count of each element in an unsorted array
  284. Count of strings that can be formed from another string using each character at-most once
  285. Maximum number of characters between any two same character in a string
  286. Program to sort string in descending order
  287. Recursive function to delete k-th node from linked list
  288. Modify a bit at a given position
  289. Replace a character c1 with c2 and c2 with c1 in a string S
  290. Remove all characters other than alphabets from string
  291. Largest smaller number possible using only one swap operation
  292. Dividing an array into two halves of same sum
  293. Make three non-empty sets with negative, positive and 0 products
  294. Sorting using trivial hash function
  295. Mirror of matrix across diagonal
  296. Frequency of a substring in a string
  297. Change string to a new character set
  298. Smallest number whose set bits are maximum in a given range
  299. Generate original array from an array that store the counts of greater elements on right
  300. Find minimum shift for longest common prefix
  301. Program to find the minimum (or maximum) element of an array
  302. Split the string into substrings using delimiter
  303. Unset the last m bits
  304. Sum of first K even-length Palindrome numbers
  305. Find largest element from array without using conditional operator
  306. Largest divisible pairs subset
  307. DFS traversal of a tree using recursion
  308. Count of suffix increment/decrement operations to construct a given array
  309. Encrypt string with product of number of vowels and consonants in substring of size k
  310. Program to print right and left arrow patterns
  311. Program for triangular patterns of alphabets
  312. Value of k-th index of a series formed by append and insert MEX in middle
  313. Count Non-Leaf nodes in a Binary Tree
  314. Evaluation of Prefix Expressions
  315. Rearrange an array such that arr[i] = i
  316. Longest sub-array having sum k
  317. Distance between two closest minimum
  318. Check if an array is stack sortable
  319. Operating System | Banker's Algorithm : Print all the safe state (or safe sequences)
  320. Merge 3 Sorted Arrays
  321. Delete a linked list using recursion
  322. Find number of pairs in an array such that their XOR is 0
  323. Find the Number which contain the digit d
  324. Check if the given number K is enough to reach the end of an array
  325. Lexicographical concatenation of all substrings of a string
  326. Largest value in each level of Binary Tree | Set-2 (Iterative Approach)
  327. Expression contains redundant bracket or not
  328. Count pairs from two sorted matrices with given sum
  329. Leaf nodes from Preorder of a Binary Search Tree (Using Recursion)
  330. N Queen in O(n) space
  331. HCF of array of fractions (or rational numbers)
  332. Non-Repeating Element
  333. Iterative approach for removing middle points in a linked list of line segements
  334. Program to copy the contents of one array into another in the reverse order
  335. Prefix to Postfix Conversion
  336. Array Index with same count of even or odd numbers on both sides
  337. Check whether bits are in alternate pattern in the given range | Set-2
  338. Minimum steps to reach target by a Knight | Set 2
  339. Program to check if matrix is singular or not
  340. Check given array of size n can represent BST of n levels or not
  341. Find the only repetitive element between 1 to n-1
  342. Power Set in Lexicographic order
  343. Function to copy string (Iterative and Recursive)
  344. Check if any valid sequence is divisible by M
  345. Delete array elements which are smaller than next or become smaller
  346. Maximum Product Subarray | Added negative product case
  347. Booth’s Multiplication Algorithm
  348. Count substrings with each character occurring at most k times
  349. Double elements and append zeros in linked list
  350. Check if it possible to partition in k subarrays with equal sum
  351. Balanced expression with replacement
  352. Count numbers formed by given two digit with sum having given digits
  353. Two Dimensional Segment Tree | Sub-Matrix Sum
  354. Program for Gauss-Jordan Elimination Method
  355. Find all palindromic sub-strings of a given string | Set 2
  356. Palindrome by swapping only one character
  357. Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
  358. Print reverse string after removing vowels
  359. Longest substring of 0s in a string formed by k concatenations
  360. Maximum in an array that can make another array sorted
  361. Program to reverse a string (Iterative and Recursive)
  362. Minimum bit changes in Binary Circular array to reach a index
  363. Construct array having X subsequences with maximum difference smaller than d
  364. Check if it is possible to make the given matrix increasing matrix or not
  365. Preorder predecessor of a Node in Binary Tree
  366. Minimum swaps so that binary search can be applied
  367. System of Linear Equations in three variables using Cramer's Rule
  368. Maximum product quadruple (sub-sequence of size 4) in array
  369. Largest set with bitwise OR equal to n
  370. Partition negative and positive without comparison with 0
  371. Check whether the number formed by concatenating two numbers is a perfect square or not
  372. Multiset Equivalence Problem
  373. Smallest number with given sum of digits and sum of square of digits
  374. Vieta's Formulas
  375. Check for balanced parenthesis without using stack
  376. First X vowels from a string
  377. Find the number of operations required to make all array elements Equal
  378. Recursive program to generate power set
  379. Repeated Character Whose First Appearance is Leftmost
  380. Check if X can give change to every person in the Queue
  381. Find the probability of reaching all points after N moves from point N
  382. Minimum steps to reach end from start by performing multiplication and mod operations with array elements
  383. kth smallest/largest in a small range unsorted array
  384. Minimum number of adjacent swaps for arranging similar elements together
  385. Minimum inverting factor in an array
  386. Modify string by removing vowels in between two consonants
  387. Number of Larger Elements on right side in a string
  388. Count inversions of size k in a given array
  389. Sudo Placement | Beautiful Pairs
  390. Check if concatenation of two strings is balanced or not
  391. Maximum parent children sum in Binary tree
  392. Sudo Placement[1.3] | Stack Design
  393. Sum of all even frequency elements in Matrix
  394. Sudo Placement[1.3] | Playing with Stacks
  395. Sudo Placement[1.3] | Final Destination
  396. Find index of first occurrence when an unsorted array is sorted
  397. Sudo Placement[1.5] | Wolfish
  398. Average of ASCII values of characters of a given string
  399. Maximum distinct lines passing through a single point
  400. Sort first half in ascending and second half in descending order | Set 2
  401. Find indices of all occurrence of one string in other
  402. Longest subsequence whose average is less than K
  403. Insertion at Specific Position in a Circular Doubly Linked List
  404. Minimize the difference between minimum and maximum elements
  405. Possible number of Rectangle and Squares with the given set of elements
  406. Maximum value of XOR among all triplets of an array
  407. First element greater than or equal to X in prefix sum of N numbers using Binary Lifting
  408. Delete array element in given index range [L - R]
  409. Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
  410. Substring Sort
  411. Next Smaller Element
  412. Counting frequencies of array elements
  413. Difference between fundamental data types and derived data types
  414. Find total number of distinct years from a string
  415. Number of divisors of product of N numbers
  416. Minimum multiplications with {2, 3, 7} to make two numbers equal
  417. Kruskal's Algorithm (Simple Implementation for Adjacency Matrix)
  418. Balanced expressions such that given positions have opening brackets | Set 2
  419. Sum of decimal equivalent of all possible pairs of Binary representation of a Number
  420. Check if the first and last digit of the smallest number forms a prime
  421. Number of prime pairs in an array
  422. Count number of primes in an array
  423. Count ways to reach a score using 1 and 2 with no consecutive 2s
  424. Find the maximum sum of Plus shape pattern in a 2-D array
  425. Count elements that are divisible by at-least one element in another array
  426. Check if a line at 45 degree can divide the plane into two equal weight parts
  427. For each element in 1st array count elements less than or equal to it in 2nd array | Set 2
  428. Find four factors of N with maximum product and sum equal to N
  429. Balance a string after removing extra brackets
  430. Recursive program to print triangular patterns
  431. Check if two given key sequences construct same BSTs
  432. Find minimum number of Log value needed to calculate Log upto N
  433. Minimum number greater than the maximum of array which cannot be formed using the numbers in the array
  434. Minimize the length of string by removing occurrence of only one character
  435. Count numbers (smaller than or equal to N) with given digit sum
  436. Replace every character of a string by a different character
  437. Count number of integers less than or equal to N which has exactly 9 divisors
  438. Minimum and Maximum prime numbers in an array
  439. Sum and Product of the nodes of a Singly Linked List which are divisible by K
  440. Find triplets in an array whose AND is maximum
  441. Check if the elements of stack are pairwise sorted
  442. Minimum changes required to make first string substring of second string
  443. Maximum element in min heap
  444. Sum of the nodes of a Circular Linked List
  445. Check if there is any common character in two given strings
  446. How to access elements of a Square Matrix
  447. Find maximum in a stack in O(1) time and O(1) extra space
  448. Construct a BST from given postorder traversal using Stack
  449. Subset array sum by generating all the subsets
  450. Pair with maximum sum in a Matrix
  451. Program to print Spiral Pattern
  452. Check if a pair with given product exists in a Matrix
  453. Check if a pair with given absolute difference exists in a Matrix
  454. Sum of squares of Fibonacci numbers
  455. Print all even nodes of Binary Search Tree
  456. Delete all Prime Nodes from a Circular Singly Linked List
  457. Sum of Fibonacci Numbers with alternate negatives
  458. Program to print Hut Star pattern
  459. Product of non-repeating (distinct) elements in an Array
  460. Product of all nodes in a Binary Tree
  461. Sum of all prime numbers in an Array
  462. Product of all prime numbers in an Array
  463. Optimal sequence for AVL tree insertion (without any rotations)
  464. Sort only non-prime numbers of an array in increasing order
  465. Print nodes in the Top View of Binary Tree | Set 3
  466. Find the common nodes in two singly linked list
  467. Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
  468. Check if the characters of a given string are in alphabetical order
  469. Sub-strings having exactly k characters that have ASCII value greater than p
  470. Minimum and Maximum element of an array which is divisible by a given number k
  471. Check whether two strings can be made equal by increasing prefixes
  472. Maximum no. of contiguous Prime Numbers in an array
  473. Program to Convert Octal Number to Binary Number
  474. Replace repeating elements with greater that greatest values
  475. Remove characters that appear more than k times
  476. Replace all occurrences of pi with 3.14 in a given string
  477. Remove first node of the linked list
  478. How do Dynamic arrays work?
  479. Remove last node of the linked list
  480. Find array elements with frequencies in range [l , r]
  481. Convert all lowercase characters to uppercase whose ASCII value is co-prime with k
  482. Replace all consonants with nearest vowels in a string
  483. Find the second last node of a linked list in single traversal
  484. XOR of all Prime numbers in an Array
  485. Minimum array elements to be changed to make it a Lucas Sequence
  486. Program to Print Alphabets from A to Z Using Loop
  487. Check whether all the rotations of a given number is greater than or equal to the given number or not
  488. Product of all the Composite Numbers in an array
  489. Replace each element by the difference of the total size of the array and frequency of that element
  490. Count pairs from two arrays having sum equal to K
  491. Smallest odd digits number not less than N
  492. Minimum number of elements to be removed so that pairwise consecutive elements are same
  493. Find minimum and maximum elements in singly Circular Linked List
  494. Print each word in a sentence with their corresponding average of ASCII values
  495. Sort elements of array whose modulo with K yields P
  496. Count number of bits changed after adding 1 to given N
  497. Different possible marks for n questions and negative marking
  498. Sum and Product of the nodes of a Circular Singly Linked List which are divisible by K
  499. Difference between a Static Queue and a Singly Linked List
  500. Maximum litres of water that can be bought with N Rupees
  501. Check if the array has an element which is equal to sum of all the remaining elements
  502. Check whether the frequencies of all the characters in a string are prime or not
  503. Count pairs of numbers from 1 to N with Product divisible by their Sum
  504. XOR of path between any two nodes in a Binary Tree
  505. Check if the array has an element which is equal to product of remaining elements
  506. Check if the given push and pop sequences of Stack is valid or not
  507. Sort perfect squares in an array at their relative positions
  508. Minimize the number of steps required to reach the end of the array
  509. Largest number in an array that is not a perfect cube
  510. Largest perfect cube number in an Array
  511. Longest rod that can be inserted within a right circular cylinder
  512. Volume of largest right circular cylinder within a Sphere
  513. Volume of biggest sphere within a right circular cylinder
  514. Count pairs with Bitwise XOR as EVEN number
  515. Number of pairs with Bitwise OR as Odd number
  516. Count pairs with Bitwise-AND as even number
  517. Program to convert the diagonal elements of the matrix to 0
  518. Find largest number smaller than N with same set of digits
  519. Distance between two nodes of binary tree with node values from 1 to N
  520. Level Order Predecessor of a node in Binary Tree
  521. Frequency of each element of an array of small ranged values
  522. Print numbers with digits 0 and 1 only such that their sum is N
  523. Print all odd nodes of Binary Search Tree
  524. Rearrange all elements of array which are multiples of x in decreasing order
  525. Sum of Bitwise-OR of all subarrays of a given Array | Set 2
  526. Number of sub-strings which are anagram of any sub-string of another string
  527. Digits of element wise sum of two arrays into a new array
  528. Number of Binary Strings of length N with K adjacent Set Bits
  529. Concatenate suffixes of a String
  530. Count characters in a string whose ASCII values are prime
  531. Minimum Distance Between Words of a String
  532. Program to print the given H Pattern
  533. How to concatenate two Integer values into one?
  534. Update adjacent nodes if the current node is zero in a Singly Linked List
  535. Largest Square that can be inscribed within a hexagon
  536. Minimum number of operations required to sum to binary string S
  537. Check if all elements of the array are palindrome or not
  538. Convert a String into a square matrix grid of characters
  539. Count distinct substrings that contain some characters at most k times
  540. Generate all rotations of a number
  541. Minimum prime number operations to convert A to B
  542. Find the repeating and the missing number using two equations
  543. Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
  544. Number of subarrays have bitwise OR >= K
  545. Possible cuts of a number such that maximum parts are divisible by 3
  546. Recursive program to print all numbers less than N which consist of digits 1 or 3 only
  547. Program to check if two strings are same or not
  548. Find the sum of the all amicable numbers up to N
  549. Check if a number can be expressed as sum two abundant numbers
  550. Count distinct elements in an array
  551. Replace each node with its Surpasser Count in Linked List
  552. Program to check if a number is divisible by any of its digits
  553. Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
  554. Find the Side of the smallest Square that can contain given 4 Big Squares
  555. Number of unique pairs in an array
  556. Minimum replacements such that the difference between the index of the same characters is divisible by 3
  557. Sum of nodes at maximum depth of a Binary Tree | Set 2
  558. Find the lexicographically largest palindromic Subsequence of a String
  559. Find the product of first k nodes of the given Linked List
  560. Modify the string by swapping continuous vowels or consonants
  561. Maximize the subarray sum after multiplying all elements of any subarray with X
  562. Maximum money that can be withdrawn in two steps
  563. Count the number of common divisors of the given strings
  564. Count of unique pairs (arr[i], arr[j]) such that i < j
  565. Pairwise swap adjacent nodes of a linked list by changing pointers | Set 2
  566. Number of strings that satisfy the given condition
  567. Program to implement Run Length Encoding using Linked Lists
  568. Reverse zigzag Traversal of a Binary Tree
  569. Generate a string consisting of characters 'a' and 'b' that satisfy the given conditions
  570. DFA for accepting the language L = {an bm | n+m=odd}
  571. Minimum replacements to make adjacent characters unequal in a ternary string | Set-2
  572. Generate a random permutation of elements from range [L, R] (Divide and Conquer)
  573. Pick maximum sum M elements such that contiguous repetitions do not exceed K
  574. Maximize the maximum among minimum of K consecutive sub-arrays
  575. Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
  576. Split an array into groups of 3 such that X3 is divisible by X2 and X2 is divisible by X1
  577. Queries for number of distinct integers in Suffix
  578. Print Stack Elements from Bottom to Top
  579. Check whether two strings are equivalent or not according to given condition
  580. Minimum number of elements that should be removed to make the array good
  581. Zig-Zag traversal of a Binary Tree using Recursion
  582. Maximum Bitwise AND pair from given range
  583. Count array elements that divide the sum of all other elements
  584. k-th missing element in an unsorted array
  585. Number of connected components in a 2-D matrix of strings
  586. Ways to Remove Edges from a Complete Graph to make Odd Edges
  587. Longest subsequence such that adjacent elements have at least one common digit
  588. Numbers in a Range with given Digital Root
  589. Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
  590. Sum of numbers from 1 to N which are in Lucas Sequence
  591. Minimum cost to make a string free of a subsequence
  592. Bitwise OR of N binary strings
  593. Chessboard Pawn-Pawn game
  594. Time until distance gets equal to X between two objects moving in opposite direction
  595. Print n numbers such that their sum is a perfect square
  596. Maximize the summation of numbers in a maximum of K moves in range [L, R]
  597. Find last five digits of a given five digit number raised to power five
  598. Third last digit in 5^N for given N
  599. Find the K-th minimum element from an array concatenated M times
  600. Smallest integer > 1 which divides every element of the given array
  601. Maximum number that can be display on Seven Segment Display using N segments
  602. Program to calculate the value of nPr
  603. Character whose frequency is equal to the sum of frequencies of other characters of the given string
  604. Check if the given string is K-periodic
  605. Clockwise Spiral Traversal of Binary Tree | Set - 2
  606. Smallest and Largest Palindrome with N Digits
  607. Count how many times the given digital clock shows identical digits
  608. Minimum cuts required to convert a palindromic string to a different palindromic string
  609. Count maximum elements of an array whose absolute difference does not exceed K
  610. Generate array with minimum sum which can be deleted in P steps
  611. Check if matrix can be converted to another matrix by transposing square sub-matrices
  612. Minimum changes required such that the string satisfies the given condition
  613. Check if Matrix remains unchanged after row reversals
  614. Find if the given number is present in the infinite sequence or not
  615. Find the number of good permutations
  616. Count integers in a range which are divisible by their euler totient value
  617. Number of ways to make binary string of length N such that 0s always occur together in groups of size K
  618. Count sub-arrays whose product is divisible by k
  619. Program to calculate Double Integration
  620. Programs for printing pyramid patterns using recursion
  621. Maximize the median of the given array after adding K elements to the same array
  622. Sum of Fibonacci Numbers in a range
  623. Print all Semi-Prime Numbers less than or equal to N
  624. Number of ways in which the substring in range [L, R] can be formed using characters out of the range
  625. Maximum volume of cube for every person when edge of N cubes are given
  626. Predict the winner in Coin Game
  627. Uniform Binary Search
  628. Sum of degrees of all nodes of a undirected graph
  629. Print last character of each word in a string
  630. Times required by Simple interest for the Principal to become Y times itself
  631. Maximum array sum that can be obtained after exactly k changes
  632. Replace the odd positioned elements with their cubes and even positioned elements with their squares
  633. Count the number of non-increasing subarrays
  634. Program to unfold a folded linked list
  635. Recursive Program to Print extreme nodes of each level of Binary Tree in alternate order
  636. Pairs of strings which on concatenating contains each character of "string"
  637. Count number of ways to reach a given score in a Matrix
  638. Maximum points covered after removing an Interval
  639. Length of the longest substring that do not contain any palindrome
  640. Area of largest Circle inscribe in N-sided Regular polygon
  641. Find the final radiations of each Radiated Stations
  642. Count number of binary strings of length N having only 0's and 1's
  643. Find original numbers from gcd() every pair
  644. Maximum number of people that can be killed with strength P
  645. Length of the smallest number which is divisible by K and formed by using 1's only
  646. Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
  647. Find the number of binary strings of length N with at least 3 consecutive 1s
  648. Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors
  649. Reduce the fraction to its lowest form
  650. Lazy Propagation in Segment Tree | Set 2
  651. Shell-Metzner Sort
  652. Find the minimum number of operations required to make all array elements equal
  653. Remove the first and last character of each word in a string
  654. Capitalize the first and last character of each word in a string
  655. Check if all the 1's in a binary string are equidistant or not
  656. Check if two strings are same ignoring their cases
  657. Find the sum of the number of divisors
  658. Count pairs of non-overlapping palindromic sub-strings of the given string
  659. Find the nth term of the given series
  660. Product of all Subsequences of size K except the minimum and maximum Elements
  661. Equation of straight line passing through a given point which bisects it into two equal line segments
  662. Count different numbers possible using all the digits their frequency times
  663. Find the minimum of maximum length of a jump required to reach the last island in exactly k jumps
  664. Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
  665. Sum of the series 1, 2, 4, 3, 5, 7, 9, 6, 8, 10, 11, 13.. till N-th term
  666. Count of sub-strings that contain character X at least once
  667. Distance between two parallel lines
  668. Minimum cost to modify a string
  669. Check if the frequency of any character is more than half the length of the string
  670. Highest power of 2 that divides a number represented in binary
  671. Find the minimum sum of distance to A and B from any integer point in a ring of size N
  672. Number of ways to arrange K different objects taking N objects at a time
  673. Minimum time required to transport all the boxes from source to the destination under the given constraints
  674. Count of quadruplets with given Sum | Set 2
  675. Determine the position of the third person on regular N sided polygon
  676. Print steps to make a number in form of 2^X - 1
  677. Length of the direct common tangent between two externally touching circles
  678. Shortest distance from the centre of a circle to a chord
  679. Radius of the circle when the width and height of an arc is given
  680. Length of direct common tangent between the two non-intersecting Circles
  681. Length of direct common tangent between two intersecting Circles
  682. Shortest distance between a point and a circle
  683. Minimizing array sum by applying XOR operation on all elements of the array
  684. Maximize the given number by replacing a segment of digits with the alternate digits given
  685. Queries to answer the X-th smallest sub-string lexicographically
  686. Find element with the maximum set bits in an array
  687. Minimum number of cubes whose sum equals to given number N
  688. Find all the pairs with given sum in a BST | Set 2
  689. Number of positions such that adding K to the element is greater than sum of all other elements
  690. Count number of 1s in the array after N moves
  691. Largest even number that can be formed by any number of swaps
  692. Area of plot remaining at the end
  693. Make lexicographically smallest palindrome by substituting missing characters
  694. Count number of subsets whose median is also present in the same subset
  695. Minimum number of sub-strings of a string such that all are power of 5
  696. Count index pairs which satisfy the given condition
  697. Minimize the number of steps required to reach the end of the array | Set 2
  698. Angle subtended by the chord when the angle subtended by another chord of same length is given
  699. Find the last non repeating character in string
  700. Queries for bitwise AND in the given matrix
  701. Queries for bitwise OR in the given matrix
  702. Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
  703. Create a linked list from two linked lists by choosing max element at each position
  704. Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged
  705. Divide the given linked list in two lists of size ratio p:q
  706. Print an N x M matrix such that each row and column has all the vowels in it
  707. Find max length odd parity substring
  708. Count number of ways to divide an array into two halves with same sum
  709. Number of subsets with zero sum
  710. Find maximum topics to prepare in order to pass the exam
  711. Queries to check if string B exists as substring in string A
  712. Print the degree of every node from the given Prufer sequence
  713. Print combinations of distinct numbers which add up to give sum N
  714. Queries for the difference between the count of composite and prime numbers in a given range
  715. Maximise matrix sum by following the given Path
  716. Length of the perpendicular bisector of the line joining the centers of two circles
  717. Find maximum path sum in a 2D matrix when exactly two left moves are allowed
  718. Check if the two given stacks are same
  719. Count the number of digits of palindrome numbers in an array
  720. Count the maximum number of elements that can be selected from the array
  721. Sum of all palindrome numbers present in an Array
  722. Check if two numbers have same number of digits
  723. Count pairs of characters in a string whose ASCII value difference is K
  724. Count number of distinct substrings of a given length
  725. Find row with maximum and minimum number of zeroes in given Matrix
  726. Count pairs of elements such that number of set bits in their AND is B[i]
  727. Longest prefix in a string with highest frequency
  728. Number of ways to choose elements from the array such that their average is K
  729. Length of longest sub-array with maximum arithmetic mean.
  730. Construct the Rooted tree by using start and finish time of its DFS traversal
  731. Run Length Decoding in Linked List
  732. Count of substrings which contains a given character K times
  733. Create a Sorted Array Using Binary Search
  734. Find the node with maximum value in a Binary Search Tree using recursion
  735. Order of indices which is lexicographically smallest and sum of elements is <= X