AnkitRai01
AnkitRai01
  1. Python | Plotting Google Map using gmplot package
  2. Python | Writing to an excel file using openpyxl module
  3. Python | Get a set of places according to search query using Google Places API
  4. Python | Find current weather of any city using openweathermap API
  5. Python | Calculate distance and duration between two places using google distance matrix API
  6. Python | Calculate geographic coordinates of places using google geocoding API
  7. Python | Reading an excel file using openpyxl module
  8. Python | Program to implement Rock paper scissor game
  9. Program to print Collatz Sequence
  10. Python | Play a video in reverse mode using OpenCV
  11. Program to print all the numbers divisible by 3 and 5 for a given number
  12. Python | Get a google map image of specified location using Google Static Maps API
  13. Program to check if a string contains any special character
  14. Python | Django Admin Interface
  15. Python | Plotting Google Map using folium package
  16. Python | Program that matches a word containing 'g' followed by one or more e's using regex
  17. Python | Simple registration form using Tkinter
  18. Python | Simple GUI calculator using Tkinter
  19. Python | Program to accept the strings which contains all vowels
  20. Python | Find Live running status and PNR of any train using Railway API
  21. Python | Plotting Data on Google Map using pygmaps package
  22. Python | Distance-time GUI calculator using Tkinter
  23. Python | ASCII art using pyfiglet module
  24. Python | Arithmetic operations in excel file using openpyxl
  25. Python | Adjusting rows and columns of an excel file using openpyxl module
  26. Python | Plotting charts in excel sheet using openpyxl module | Set - 1
  27. Python | random.sample() function
  28. Python | Plotting charts in excel sheet using openpyxl module | Set – 2
  29. Python | Trigonometric operations in excel file using openpyxl
  30. Python | Plotting charts in excel sheet using openpyxl module | Set 3
  31. Python | Create and write on excel file using xlsxwriter module
  32. Creating a Pandas Series from Dictionary
  33. Generating Word Cloud in Python | Set 2
  34. Python | Plotting Area charts in excel sheet using XlsxWriter module
  35. Python | Getting started with SymPy module
  36. Python | Plotting bar charts in excel sheet using XlsxWriter module
  37. Python | Plotting Radar charts in excel sheet using XlsxWriter module
  38. Python | Program to implement Jumbled word game
  39. Python | Plotting scatter charts in excel sheet using XlsxWriter module
  40. Python | Plotting column charts in excel sheet using XlsxWriter module
  41. Python | Program to implement simple FLAMES game
  42. Python | Program to generate one-time password (OTP)
  43. Python | Plotting Pie charts in excel sheet using XlsxWriter module
  44. Python | Real time currency convertor using Tkinter
  45. Python | Get the real time currency exchange rate
  46. Python | Plotting Doughnut charts in excel sheet using XlsxWriter module
  47. Python | Plotting Stock charts in excel sheet using XlsxWriter module
  48. Python | Plotting Line charts in excel sheet using XlsxWriter module
  49. Python | Plotting Combined charts in excel sheet using XlsxWriter module
  50. Difference of two columns in Pandas dataframe
  51. Python | Real time weather detection using Tkinter
  52. Python | Plotting an Excel chart with pattern fills in column using XlsxWriter module
  53. Python | Plotting Different types of style charts in excel sheet using XlsxWriter module
  54. Python | Working with Pandas and XlsxWriter | Set - 1
  55. Python | Adding a Chartsheet in an excel sheet using XlsxWriter module
  56. Split a text column into two columns in Pandas DataFrame
  57. Python | Plotting an Excel chart with Gradient fills using XlsxWriter module
  58. Python | Plotting column charts in excel sheet with data tables using XlsxWriter module
  59. Python | Plotting charts in excel sheet with Data Tools using XlsxWriter module | Set - 1
  60. Python | Working with Pandas and XlsxWriter | Set – 2
  61. Python | Working with Pandas and XlsxWriter | Set – 3
  62. Python | Plotting charts in excel sheet with data tools using XlsxWriter module | Set – 2
  63. Creating a dataframe using Excel files
  64. Python | Tokenize text using TextBlob
  65. Different ways to iterate over rows in Pandas Dataframe
  66. Python | Simple FLAMES game using Tkinter
  67. Selecting rows in pandas DataFrame based on conditions
  68. Creating a Pandas Series from Lists
  69. Python | Lemmatization with TextBlob
  70. Python | Display images with PyGame
  71. Python | Part of Speech Tagging using TextBlob
  72. Python | Display text to PyGame window
  73. Python | Drawing different shapes on PyGame window
  74. Formatting integer column of Dataframe in Pandas
  75. Python | Sentiment Analysis using VADER
  76. Python program to check if a given string is Keyword or not
  77. Python | Check if string is a valid identifier
  78. Python | Check if given string is numeric or not
  79. Check if email address valid or not in Python
  80. Python program to validate an IP Address
  81. Python regex | Check whether the input is Floating point number or not
  82. Python Regex - Program to accept string starting with vowel
  83. Python Regex | Program to accept string ending with alphanumeric character
  84. Python program to print all Strong numbers in given list
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. Position of rightmost set bit
  2. Largest Sum Contiguous Subarray
  3. Maximum size square sub-matrix with all 1s
  4. Check for balanced parentheses in an expression
  5. Program for Fibonacci numbers
  6. Longest Increasing Subsequence | DP-3
  7. Count total set bits in all numbers from 1 to n
  8. Egg Dropping Puzzle | DP-11
  9. Floyd Warshall Algorithm | DP-16
  10. Bellman–Ford Algorithm | DP-23
  11. Binary representation of a given number
  12. Segment Tree | Set 1 (Sum of given range)
  13. Segment Tree | Set 2 (Range Minimum Query)
  14. Find position of the only set bit
  15. Longest Common Substring | DP-29
  16. Program for nth Catalan Number
  17. Find k closest elements to a given value
  18. Shortest Common Supersequence
  19. Trapping Rain Water
  20. Lazy Propagation in Segment Tree
  21. Count even length binary sequences with same sum of first and second half bits
  22. Count number of squares in a rectangle
  23. Volume of cube using its space diagonal
  24. A Space Optimized Solution of LCS
  25. Dynamic Programming | High-effort vs. Low-effort Tasks Problem
  26. Maximum sum of i*arr[i] among all rotations of a given array
  27. Calculate sum of all numbers present in a string
  28. Minimum cost to fill given weight in a bag
  29. Maximum weight path ending at any element of last row in a matrix
  30. Calculate XOR from 1 to n.
  31. Count All Palindromic Subsequence in a given String
  32. Recursively break a number in 3 parts to get maximum sum
  33. Path with maximum average value
  34. Maximum sum of pairs with specific difference
  35. Maximum sum alternating subsequence
  36. Count All Palindrome Sub-Strings in a String | Set 1
  37. Maximum subsequence sum such that no three are consecutive
  38. Maximum path sum for each position with jumps under divisibility condition
  39. Check if all rows of a matrix are circular rotations of each other
  40. LCS (Longest Common Subsequence) of three strings
  41. Count of acute, obtuse and right triangles with given sides
  42. Friends Pairing Problem
  43. Maximum path sum that starting with any cell of 0-th row and ending with any cell of (N-1)-th row
  44. Gold Mine Problem
  45. Highway Billboard Problem
  46. Convert decimal fraction to binary number
  47. Find number of endless points
  48. Subset with sum divisible by m
  49. Program to find second most frequent character
  50. Minimum steps to minimize n as per given condition
  51. Generate all rotations of a given string
  52. Shortest Uncommon Subsequence
  53. Number of times the largest perfect square number can be subtracted from N
  54. Ways to sum to N using array elements with repetition allowed
  55. Maximum sum in a 2 x n grid such that no two elements are adjacent
  56. Check if two numbers are bit rotations of each other or not
  57. Check whether given string can be generated after concatenating given strings
  58. Random list of M non-negative integers whose sum is N
  59. Minimum time to write characters using insert, delete and copy operation
  60. Regular polygon using only 1s in a binary numbered circle
  61. Number of integral solutions of the equation x1 + x2 +.... + xN = k
  62. Slope of the line parallel to the line with the given slope
  63. Count Balanced Binary Trees of Height h
  64. Painting Fence Algorithm
  65. Length of the transverse common tangent between the two non intersecting circles
  66. To check divisibility of any large number by 999
  67. Printing Items in 0/1 Knapsack
  68. Number of n-digits non-decreasing integers
  69. Remove one bit from a binary number to get maximum value
  70. Divide the two given numbers by their common divisors
  71. Count of Palindromic substrings in an Index range
  72. Program to calculate the number of odd days in given number of years
  73. Quick way to check if all the characters of a string are same
  74. Maximum number of 3-person teams formed from two groups
  75. Program to check if input is an integer or a string
  76. String which when repeated exactly K times gives a permutation of S
  77. Counts Path in an Array
  78. Check if a large number can be divided into two or more segments of equal sum
  79. Print matrix after applying increment operations in M ranges
  80. Subset Sum Problem in O(sum) space
  81. Print the following pyramid pattern
  82. Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
  83. Count of sub-sequences which satisfy the given condition
  84. Count ways to build street under given constraints
  85. Count number of paths whose weight is exactly X and has at-least one edge of weight M
  86. Greatest divisor which divides all natural number in range [L, R]
  87. Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
  88. Find an element in array such that sum of left array is equal to sum of right array
  89. Minimum number of Square Free Divisors
  90. Check if sums of i-th row and i-th column are same in matrix
  91. Check if the string contains consecutive letters and each letter occurs exactly once
  92. Lexicographically smallest permutation of {1, .. n} such that no. and position do not match
  93. Check if it is possible to reach vector B by rotating vector A and adding vector C to it
  94. Remove array end element to maximize the sum of product
  95. Value of continuous floor function : F(x) = F(floor(x/2)) + x
  96. Permutations to arrange N persons around a circular table
  97. Distributing all balls without repetition
  98. To check whether a large number is divisible by 7
  99. Number of ways to arrange N items under given constraints
  100. Number of closing brackets needed to complete a regular bracket sequence
  101. Count all subsequences having product less than K
  102. Find the Majority Element | Set 3 (Bit Magic)
  103. Longest Repeated Subsequence
  104. Check if a two character string can be made using given words
  105. Remove all the palindromic words from the given sentence
  106. Number of triangles that can be formed
  107. Find if it is possible to make a binary string which contanins given number of "0", "1" , "01" and "10" as sub sequences
  108. Smallest integer with digit sum M and multiple of N
  109. Number of subarrays having absolute sum greater than K | Set-2
  110. Replace two substrings (of a string) with each other
  111. Tile Stacking Problem
  112. Segment tree | Efficient implementation
  113. Maximum and Minimum value of a quadratic function
  114. Minimum area of a Polygon with three points given
  115. Print Longest Palindromic Subsequence
  116. Program to find the number of region in Planar Graph
  117. Eulerian Number
  118. Different ways to sum n using numbers greater than or equal to m
  119. Maximum possible elements which are divisible by 2
  120. Convert the ASCII value sentence to its equivalent string
  121. Print first N Mosaic numbers
  122. Check if the given string is the same as its reflection in a mirror
  123. Find the Kth smallest element in the sorted generated array
  124. Evaluation of Prefix Expressions
  125. Distance between two closest minimum
  126. Check if a given string is made up of two alternating characters
  127. Count ways to divide circle using N non-intersecting chords
  128. Segment Tree | (XOR of a given range )
  129. Minimum sum of multiplications of n numbers
  130. Compute the maximum power with a given condition
  131. Area of hexagon with given diagonal length
  132. Program to copy the contents of one array into another in the reverse order
  133. Postfix to Prefix Conversion
  134. Calculate area of pentagon with given diagonal
  135. Maximize the sum of selected numbers from an array to make it empty
  136. Sum of columns of a 2-D Matrix where first element is odd
  137. Dyck Words of given length
  138. Longest string in non-decreasing order of ASCII code and in arithmetic progression
  139. Sum of each element raised to (prime-1) % prime
  140. Expressing factorial n as sum of consecutive numbers
  141. Count numbers from range whose prime factors are only 2 and 3
  142. Find frequency of each word in a string in Python
  143. Check if number can be displayed using seven segment led
  144. Check if it possible to partition in k subarrays with equal sum
  145. Longest Common Substring (Space optimized DP solution)
  146. Count pairs in an array which have at least one digit common
  147. Find Nth even length palindromic number formed using digits X and Y
  148. Check if every index i has an index j such that sum of elements in both directions are equal
  149. Print equal sum sets of array (Partition Problem) | Set 2
  150. Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
  151. Maximum in an array that can make another array sorted
  152. Check if a number can be expressed as a^b | Set 2
  153. Count pairs with set bits sum equal to K
  154. Program to find Nth term of series 1, 3, 12, 60, 360…
  155. Python | Count the Number of matching characters in a pair of string
  156. First X vowels from a string
  157. Find a Symmetric matrix of order N that contain integers from 0 to N-1 and main diagonal should contain only 0's
  158. Sum of multiplication of triplet of divisors of a number
  159. Number of elements with even factors in the given range
  160. Find the lexicographical next balanced bracket sequence
  161. Repeated Character Whose First Appearance is Leftmost
  162. Program to check similarity of given two triangles
  163. Count the number of intervals in which a given value lies
  164. Degree of a Cycle Graph
  165. Minimum number of adjacent swaps for arranging similar elements together
  166. Find a non empty subset in an array of N integers such that sum of elements of subset is divisible by N
  167. Minimum inverting factor in an array
  168. Bitwise OR (or | ) of a range
  169. Make all numbers of an array equal
  170. All pairs whose xor gives unique prime
  171. Area of the Largest Triangle inscribed in a Hexagon
  172. Previous greater element
  173. Count number of steps to cover a distance if steps can be taken in powers of 2
  174. Python program to print even length words in a string
  175. Minimum element left from the array after performing given operations
  176. Find three integers less than or equal to N such that their LCM is maximum
  177. Print all prime numbers less than or equal to N
  178. Python | Plotting charts in excel sheet using openpyxl module | Set - 1
  179. Shortest path on a Square
  180. Probability of rain on N+1th day
  181. Find the sum of non-prime elements in the given array
  182. Absolute difference between the first X and last X Digits of N
  183. Check if it is possible to create a polygon with a given angle
  184. Sum of similarities of string with all of its suffixes
  185. Array Manipulation and Sum
  186. Maximum bishops that can be placed on N*N chessboard
  187. Find the multiple of x which is closest to a^b
  188. Print the corner elements and their sum in a 2-D matrix
  189. Probability that the pieces of a broken stick form a n sided polygon
  190. Remove all occurrences of a character in a string
  191. Number of ways to reach Nth floor by taking at-most K leaps
  192. Probability of a key K present in array
  193. Surd number
  194. Count pairs with Bitwise OR as Even number
  195. Minimize the difference between minimum and maximum elements
  196. Check if a key is present in every segment of size k in an array
  197. Delete array element in given index range [L - R]
  198. Check if a point lies on or inside a rectangle | Set-2
  199. Check if max occurring character of one string appears same no. of times in other
  200. Find First element in AP which is multiple of given prime
  201. Count the number of pairs that have column sum greater than row sum
  202. Cut all the rods with some length such that the sum of cut-off length is maximized
  203. Number of possible pairs of Hypotenuse and Area to form right angled triangle
  204. Subtraction of two numbers using 2's Complement
  205. Count strings with consonants and vowels at alternate position
  206. Maximum number of dots after throwing a dice N times
  207. Minimum multiplications with {2, 3, 7} to make two numbers equal
  208. Find N in the given matrix that follows a pattern
  209. Count permutation such that sequence is non decreasing
  210. Printing frequency of each character just after its consecutive occurrences
  211. Alternate Primes till N
  212. Program to print the initials of a name with the surname
  213. Find the largest number that can be formed with the given digits
  214. Count no. of ordered subsets having a particular XOR value
  215. N-th term in the series 1, 11, 55, 239, 991,....
  216. Count elements in the given range which have maximum number of divisors
  217. Minimum element in a max heap
  218. Program to find number of solutions in Quadratic Equation
  219. Length of longest consecutive zeroes in the binary representation of a number.
  220. Sum of decimal equivalent of all possible pairs of Binary representation of a Number
  221. Fascinating Number
  222. Program to print half diamond Number-Star pattern
  223. Program to find Nth term in the series 0, 2, 1, 3, 1, 5, 2, 7, 3,…
  224. Complement of a number with any base b
  225. Minimize ASCII values sum after removing all occurrences of one character
  226. Minimum number of square tiles required to fill the rectangular floor
  227. Maximize the profit by selling at-most M products
  228. Program to check if an array is bitonic or not
  229. Find Nth term of series 1, 4, 15, 72, 420...
  230. Program to check whether 4 points in a 3-D plane are Coplanar
  231. Count number of triplets with product equal to given number with duplicates allowed
  232. Pairs with GCD equal to one in the given range
  233. Find Nth term of the series 0, 2, 4, 8, 12, 18...
  234. Find Nth term of the series 5, 13, 25, 41, 61...
  235. Check whether a given point lies on or inside the rectangle | Set 3
  236. Program to find the percentage of difference between two numbers
  237. Program to find the Nth term of the series 3, 20, 63, 144, 230, ……
  238. Program to find the Nth term of series 5, 10, 17, 26, 37, 50, 65, 82, ...
  239. Program to find the Nth term of series 0, 4, 14, 30, 51, 80, 114, 154, 200, ...
  240. Number of divisors of a given number N which are divisible by K
  241. Number of substrings of one string present in other
  242. Program to count number of distinct Squares and Cubes upto N
  243. Coin game of two corners (Greedy Approach)
  244. Find Nth term of the series 3, 14, 39, 84...
  245. Check if a number with even number of digits is palindrome or not
  246. Find area of parallelogram if vectors of two adjacent sides are given
  247. Print elements that can be added to form a given sum
  248. Calculate the total fine to be collected
  249. Find out the correct position of the ball after shuffling
  250. Find Nth term of the series 1, 1, 2, 6, 24...
  251. Replace every element of the array by sum of all other elements
  252. Program to calculate Profit Or Loss
  253. Check if a String can be converted to Pangram in K changes
  254. Check if a number is divisible by 23 or not
  255. Concatenate strings in any order to get Maximum Number of "AB"
  256. Check if a number is divisible by 41 or not
  257. Total character pairs from two strings, with equal number of set bits in their ascii value
  258. Program to find Length of Bridge using Speed and Length of Train
  259. Find four factors of N with maximum product and sum equal to N
  260. Minimum number of elements to be removed to make XOR maximum
  261. Check if the given chessboard is valid or not
  262. Check if any large number is divisible by 19 or not
  263. Check if any large number is divisible by 17 or not
  264. Sum of Factors of a Number using Prime Factorization
  265. Largest rectangle that can be inscribed in a semicircle
  266. Find the number after successive division
  267. Area of circle inscribed within rhombus
  268. Program to calculate Root Mean Square
  269. Find the sum of series 0.X + 0.XX + 0.XXX +... upto k terms
  270. Area of a largest square fit in a right angle triangle
  271. Minimum Players required to win the game
  272. Program to find total number of edges in a Complete Graph
  273. Check if given string can be formed by two other strings or their permutations
  274. Sum of Digits in a^n till a single digit
  275. Find bitwise AND (&) of all possible sub-arrays
  276. Minimum length of string having all permutation of given string.
  277. Find bitwise OR of all possible sub-arrays
  278. Product of 2 numbers using recursion | Set 2
  279. Largest triangle that can be inscribed in a semicircle
  280. Minimize the length of string by removing occurrence of only one character
  281. Find the sum of n terms of the series 1,8,27,64 ....
  282. Find the sum of the series 2, 5, 13, 35, 97...
  283. Find Nth term of the series 0, 6, 0, 12, 0, 90...
  284. Find maximum points which can be obtained by deleting elements from array
  285. Probability of getting a sum on throwing 2 Dices N times
  286. Length of longest rod that can fit into a cuboid
  287. Minimum no. of operations required to make all Array Elements Zero
  288. Largest trapezoid that can be inscribed in a semicircle
  289. Area of Largest rectangle that can be inscribed in an Ellipse
  290. Count common subsequence in two strings
  291. Perfect cube greater than a given number
  292. Count pairs (a, b) whose sum of squares is N (a^2 + b^2 = N)
  293. Count the number of ways to traverse a Matrix
  294. Check if lowercase and uppercase characters are in same order
  295. Largest triangle that can be inscribed in an ellipse
  296. Program to print elements of a Matrix row-wise skipping alternate elements
  297. Program to find the Volume of an irregular tetrahedron
  298. Divide a number into two parts such that sum of digits is maximum
  299. Find sum of product of number in given series
  300. Find area of triangle if two vectors of two adjacent sides are given
  301. Find the sum of the series x(x+y) + x^2(x^2+y^2) +x^3(x^3+y^3)+ ... + x^n(x^n+y^n)
  302. Program to find Nth term of the series 2, 4, 3, 4, 15...
  303. Ratio of mth and nth term in an Arithmetic Progression (AP)
  304. Area of a circle inscribed in a regular hexagon
  305. Replace every character of a string by a different character
  306. Program to find Circuit Rank of an Undirected Graph
  307. Check if two arrays are permutations of each other using Mathematical Operation
  308. Program to find the value of tan(nΘ)
  309. Program to find N-th term of series 3, 5, 33, 35, 53....
  310. Program to find the value of sin(nΘ)
  311. First triangular number whose number of divisors exceeds N
  312. Find an element in an array such that elements form a strictly decreasing and increasing sequence
  313. Program to convert KiloBytes to Bytes and Bits
  314. Minimum cost to buy N kilograms of sweet for M persons
  315. Program to find the N-th term of series 3, 5, 33, 35, 53…. | Set-2
  316. Maximum Sum of Products of Two Arrays
  317. Minimum odd cost path in a matrix
  318. Divide an array into K subarray with the given condition
  319. Find the winner of the Game to Win by erasing any two consecutive similar alphabets
  320. Maximize the value of A by replacing some of its digits with digits of B
  321. Find number of magical pairs of string of length L
  322. Check if any square (with one colored cell) can be divided into two equal parts
  323. Set the rightmost off bit
  324. Generating numbers that are divisor of their right-rotations
  325. Area of a square inscribed in a circle which is inscribed in an equilateral triangle
  326. Program to find the Centroid of the triangle
  327. Number of Co-prime pairs from 1 to N with product equals to N
  328. Sum of the first N terms of the series 5,12, 23, 38....
  329. Find the GCD of N Fibonacci Numbers with given Indices
  330. Sum of the first N terms of the series 2,10, 30, 68,....
  331. Number of unique permutations starting with 1 of a Binary String
  332. Minimum increment in the sides required to get non-negative area of a triangle
  333. Find two distinct prime numbers with given product
  334. Program to find the Nth Harmonic Number
  335. Program to find Nth term of series 0, 9, 22, 39, 60, 85, 114, 147, .....
  336. Program to find Nth term of series 1, 6, 17, 34, 56, 86, 121, 162, .......
  337. Program to find Nth term of series 3, 12, 29, 54, 86, 128, 177, 234, .....
  338. Program to find the Radius of the incircle of the triangle
  339. Check if an array is Wave Array
  340. Rearrange the string to maximize the number of palindromic substrings
  341. Number of solutions of n = x + n ⊕ x
  342. Find count of Almost Prime numbers from 1 to N
  343. Absolute difference between sum and product of roots of a quartic equation
  344. Program to print the Cot Bed Pattern
  345. Sum of nth terms of Modified Fibonacci series made by every pair of two arrays
  346. Number of ways to choose a pair containing an even and an odd number from 1 to N
  347. Program to find the Circumcircle of any regular polygon
  348. Program to find the angles of a quadrilateral
  349. Minimum and maximum number of N chocolates after distribution among K students
  350. Sum of the first N Prime numbers
  351. Check if a cell can be visited more than once in a String
  352. Minimize the total number of teddies to be distributed
  353. Next greater Number than N with the same quantity of digits A and B
  354. Number of solutions for x < y, where a <= x <= b and c <= y <= d and x, y are integers
  355. Check if it is possible to return to the starting position after moving in the given directions
  356. Find the number of rectangles of size 2*1 which can be placed inside a rectangle of size n*m
  357. Sum of all the prime numbers in a given range
  358. Number of solutions for the equation x + y + z <= n
  359. Check if a string can be rearranged to form special palindrome
  360. Sum of all the elements in an array divisible by a given number K
  361. Program to find the maximum element in a Matrix
  362. Count all the numbers in a range with smallest factor as K
  363. Program to print the pattern with two hollow Triangles
  364. Count pairs (i,j) such that (i+j) is divisible by A and B both
  365. Value of the series (1^3 + 2^3 + 3^3 + ... + n^3) mod 4 for a given n
  366. Print N lines of 4 numbers such that every pair among 4 numbers has a GCD K
  367. Minimum increment operations to make the array in increasing order
  368. Sum of squares of Fibonacci numbers
  369. Check whether product of 'n' numbers is even or odd
  370. Sum of Fibonacci Numbers with alternate negatives
  371. Program to print Hut Star pattern
  372. Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ..... upto n terms
  373. Minimum number of Parentheses to be added to make it valid
  374. Check if a number is Primorial Prime or not
  375. Print all Prime Quadruplet of a number less than it
  376. Minimum sum falling path in a NxN grid
  377. Check if at least half array is reducible to zero by performing some operations
  378. Number of groups of magnets formed from N magnets
  379. All possible co-prime distinct element pairs within a range [L, R]
  380. Check if a string is the typed name of the given name
  381. Ways of dividing a group into two halves such that two elements are in different groups
  382. Count of common multiples of two numbers in a range
  383. Find Tangent at a given point on the curve
  384. Calculate Stirling numbers which represents the number of ways to arrange r objects around n different circles
  385. Sort only non-prime numbers of an array in increasing order
  386. Minimum number of towers required such that every house is in the range of at least one tower
  387. Find the longest common prefix between two strings after performing swaps on second string
  388. Number of permutations of a string in which all the occurrences of a given character occurs together
  389. Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
  390. Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
  391. Minimum swaps required to convert one binary string to another
  392. Number of squares of side length required to cover an N*M rectangle
  393. Maximum count of equal numbers in an array after performing given operations
  394. Check if the characters of a given string are in alphabetical order
  395. Maximum number of fixed points using atmost 1 swap
  396. Maximum difference elements that can added to a set
  397. Largest element in the array that is repeated exactly k times
  398. Check if the given vectors are at equilibrium or not
  399. Program to find the Sum of each Row and each Column of a Matrix
  400. Sub-strings of length K containing same character
  401. Sum of Fibonacci numbers at even indexes upto N terms
  402. K- Fibonacci series
  403. Count numbers whose difference with N is equal to XOR with N
  404. Count unordered pairs (i,j) such that product of a[i] and a[j] is power of two
  405. Minimum sum possible of any bracket sequence of length N
  406. Check whether the vowels in a string are in alphabetical order or not
  407. Largest number divisible by 90 that can be made using 0 and 5
  408. Count numbers whose XOR with N is equal to OR with N
  409. Count number of ordered pairs with Even and Odd Product
  410. Check if the frequency of all the digits in a number is same
  411. Program to find the Area and Perimeter of a Semicircle
  412. Program to Convert Hexadecimal Number to Binary
  413. Print a number containing K digits with digital root D
  414. Minimum time to reach a point with +t and -t moves at time t
  415. Program to find the Perimeter of a Regular Polygon
  416. Count the numbers < N which have equal number of divisors as K
  417. Minimum swaps required to make a binary string alternating
  418. Number of anomalies in an array
  419. Equation of parabola from its focus and directrix
  420. Find the foot of perpendicular of a point in a 3 D plane
  421. Find amount to be added to achieve target ratio in a given mixture
  422. Find time taken for signal to reach all positions in a string
  423. Maximum points of intersection n lines
  424. Problem of 8 Neighbours of an element in a 2-D Matrix
  425. Equation of ellipse from its focus, directrix, and eccentricity
  426. Find single Movement in a Matrix
  427. Number of cells in the right and left diagonals passing through (x, y) in a matrix
  428. Lexicographically smallest permutation with no digits at Original Index
  429. Maximum difference of indices (i, j) such that A[i][j] = 0 in the given matrix
  430. Smallest odd digits number not less than N
  431. Largest number smaller than or equal to N divisible by K
  432. Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts
  433. Smallest number greater than or equal to N divisible by K
  434. Minimize the value of N by applying the given operations
  435. Absolute Difference of even and odd indexed elements in an Array
  436. Largest N digit number divisible by given three numbers
  437. Largest number not greater than N all the digits of which are odd
  438. Check if any permutation of a number is divisible by 3 and is Palindromic
  439. Maximum sum and product of the M consecutive digits in a number
  440. Mode
  441. Index with Minimum sum of prefix and suffix sums in an Array
  442. Partition an array such into maximum increasing segments
  443. Find if array has an element whose value is half of array sum
  444. GCD of a number raised to some power and another number
  445. Minimum cuts required to divide the Circle into equal parts
  446. Find the count of Strictly decreasing Subarrays
  447. Program to find the profit or loss when CP of N items is equal to SP of M items
  448. Find minimum operations needed to make an Array beautiful
  449. Minimum number of cuts required to make circle segments equal sized
  450. Minimum deletions from string to reduce it to string with at most 2 unique characters
  451. Game of stones
  452. Steps to reduce N to zero by subtracting its most significant digit at every step
  453. Find two numbers with sum and product both same as N
  454. Number of matches required to find the winner
  455. Maximum no. of apples that can be kept in a single basket
  456. In-Place Merge Sort
  457. Check whether count of distinct characters in a string is Prime or not
  458. Check if a prime number can be expressed as sum of two Prime Numbers
  459. Sum of the elements from index L to R in an array when arr[i] = i * (-1)^i
  460. Check if a large number is divisible by 75 or not
  461. Probability of getting more value in third dice throw
  462. Count of cyclic permutations having XOR with other binary string as 0
  463. Check whether the sum of prime elements of the array is prime or not
  464. Sort perfect squares in an array at their relative positions
  465. Split N^2 numbers into N groups of equal sum
  466. Common prime factors of two numbers
  467. Total number of subsets in which the product of the elements is even
  468. Minimum cost to cover the given positions in a N*M grid
  469. Minimum steps to convert one binary string to other only using negation
  470. Element equal to the sum of all the remaining elements
  471. Number of ways to reach the end of matrix with non-zero AND value
  472. Check whether an Array is Subarray of another Array
  473. Indexed Sequential Search
  474. Program to convert given Matrix to a Diagonal Matrix
  475. Largest perfect square number in an Array
  476. Number of pairs with Bitwise OR as Odd number
  477. Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
  478. Minimum sum of the elements of an array after subtracting smaller elements from larger
  479. Nth number made up of odd digits only
  480. Find a point that lies inside exactly K given squares
  481. Find sum of a number and its maximum prime factor
  482. Find minimum steps required to reach the end of a matrix | Set - 1
  483. Find position of left most dis-similar bit for two numbers
  484. Add N digits to A such that it is divisible by B after each addition
  485. Number of moves required to guess a permutation.
  486. Sum of elements whose square root is present in the array
  487. Find element position in given monotonic sequence
  488. Find the intersection of two Matrices
  489. Program to find first N Iccanobif Numbers
  490. Find smallest and largest element from square matrix diagonals
  491. Frequency of each element of an array of small ranged values
  492. Minimum range increment operations to Sort an array
  493. Print numbers with digits 0 and 1 only such that their sum is N
  494. Minimum number of moves to make all elements equal
  495. Size of the smallest subset with maximum Bitwise OR
  496. Find number of substrings of length k whose sum of ASCII value of characters is divisible by k
  497. Find alphabet in a Matrix which has maximum number of stars around it
  498. Largest number less than N with digit sum greater than the digit sum of N
  499. Time taken by two persons to meet on a circular track
  500. Number of comparisons in each direction for m queries in linear search
  501. Replace every element of the array by its previous element
  502. Replace every element of the array by its next element
  503. Print numbers in descending order along with their frequencies
  504. Replace the middle element of matrix with sum of surrounding elements
  505. Length of longest consecutive ones by at most one swap in a Binary String
  506. Check If every group of a's is followed by a group of b's of same length
  507. Rearrange all elements of array which are multiples of x in decreasing order
  508. Sum of Bitwise-OR of all subarrays of a given Array | Set 2
  509. Sum of first N natural numbers which are divisible by X or Y
  510. Floor of every element in same array
  511. Smallest Pair Sum in an array
  512. Number of Paths of Weight W in a K-ary tree
  513. Check if a number is Triperfect Number
  514. Largest right circular cylinder within a frustum
  515. Largest right circular cylinder within a cube
  516. Larger of a^b or b^a (a raised to power b or b raised to power a)
  517. Minimum and Maximum number of pairs in m teams of n people
  518. Maximize the difference between two subsets of a set with negatives
  519. Find the only different element in an array
  520. Reverse middle words of a string
  521. Move all Uppercase char to the end of string
  522. Puzzle | 1000 light bulbs switched on/off by 1000 persons passing by
  523. Minimum moves required to change position with the given operation
  524. Interchange elements of first and last columns in matrix
  525. Reduce the array to a single element with the given operation
  526. Maximum sum of all elements of array after performing given operations
  527. Check if the given decimal number has 0 and 1 digits only
  528. Sum of elements in an array with frequencies greater than or equal to that element
  529. Largest Divisor of a Number not divisible by a perfect square
  530. Count all sub-sequences having product <= K - Recursive approach
  531. Sum of the multiples of two numbers below N
  532. Sort the array in a given index range
  533. Check if the sum of perfect squares in an array is divisible by x
  534. Permutations of string such that no two vowels are adjacent
  535. Color N boxes using M colors such that K boxes have different color from the box on its left
  536. Concatenate suffixes of a String
  537. Minimum absolute difference of a number and its closest prime
  538. Remove all continuous occurrences of 'a' and all occurrences of 'b'
  539. Count characters in a string whose ASCII values are prime
  540. Largest palindromic number in an array
  541. Minimum removals in a number to be divisible by 10 power raised to K
  542. Split a number into 3 parts such that none of the parts is divisible by 3
  543. Minimum Distance Between Words of a String
  544. Binary Search a String
  545. Sum of integers upto N with given unit digit
  546. Count numbers upto N which are both perfect square and perfect cube
  547. Check if the sum of primes is divisible by any prime from the array
  548. Average of remaining elements after removing K largest and K smallest elements from array
  549. Find numbers a and b that satisfy the given conditions
  550. Count the number of special permutations
  551. Count sub-sets that satisfy the given condition
  552. Integers from the range that are composed of a single distinct digit
  553. Sub-strings of a string that are prefix of the same string
  554. Sum of integers upto N with given unit digit (Set 2)
  555. Count numbers < = N whose difference with the count of primes upto them is > = K
  556. Leftmost and rightmost indices of the maximum and the minimum element of an array
  557. Program to generate all possible valid IP addresses from given string | Set 2
  558. Lower Insertion Point
  559. Minimum number of consecutive sequences that can be formed in an array
  560. Sum of element whose prime factors are present in array
  561. Minimum value that divides one number and divisible by other
  562. Largest palindromic prime in an array
  563. Sum of elements from an array having even parity
  564. Smallest subarray containing minimum and maximum values
  565. Check if moves in a stack or queue are possible or not
  566. Minimum steps to reach any of the boundary edges of a matrix | Set 1
  567. Side of a regular n-sided polygon circumscribed in a circle
  568. Number of pairs whose sum is a power of 2
  569. Check if the sum of distinct digits of two integers are equal
  570. Ways to fill N positions using M colors such that there are exactly K pairs of adjacent different colors
  571. Maximum GCD of N integers with given product
  572. Find minimum x such that (x % k) * (x / k) == n
  573. Generate elements of the array following given conditions
  574. Minimum K such that every substring of length atleast K contains a character c
  575. Find minimum x such that (x % k) * (x / k) == n | Set-2
  576. Minimum number of operations required to sum to binary string S
  577. Sum of kth powers of first n natural numbers
  578. Find elements of array using XOR of consecutive elements
  579. Find an integer X which is divisor of all except exactly one element in an array
  580. Program to multiply two Matrix by taking data from user
  581. Program to check the number is Palindrome or not
  582. Split a string in equal parts such that all parts are palindromes
  583. Find the maximum possible value of the minimum value of modified array
  584. Sub-strings that start and end with one character and have at least one other
  585. Area of Reuleaux Triangle
  586. Diagonal of a Regular Pentagon
  587. Diagonal of a Regular Hexagon
  588. Number of array elements derivable from D after performing certain operations
  589. Maximum number of removals of given subsequence from a string
  590. Biggest Reuleaux Triangle within A Square
  591. Count pairs in an array that hold i+j= arr[i]+arr[j]
  592. Largest hexagon that can be inscribed within a square
  593. Reach the numbers by making jumps of two given lengths
  594. Largest hexagon that can be inscribed within an equilateral triangle
  595. Minimize the maximum minimum difference after one removal from array
  596. Program for converting hours into minutes and seconds
  597. Distinct palindromic sub-strings of the given string using Dynamic Programming
  598. Count of Numbers in a Range divisible by m and having digit d in even positions
  599. A Sum Array Puzzle
  600. Count Subarrays with Consecutive elements differing by 1
  601. Buy minimum items without change and given coins
  602. Check if all elements of the array are palindrome or not
  603. Count numbers in a range that are divisible by all array elements
  604. Count common prime factors of two numbers
  605. Recursive program to insert a star between pair of identical characters
  606. Product of N with its largest odd digit
  607. Cost to make a string Panagram
  608. Remove consecutive alphabets which are in same case
  609. Diagonal of a Regular Heptagon
  610. Diagonal of a Regular Decagon
  611. Convert a String into a square matrix grid of characters
  612. Count number of step required to reduce N to 1 by following certain rule
  613. Check if N is a Factorial Prime
  614. Find the number in a range having maximum product of the digits
  615. Area of a n-sided regular polygon with given side length
  616. Area of a n-sided regular polygon with given Radius
  617. Recursive Program for Binary to Decimal
  618. Generate number with given operation and check if it is palindrome
  619. Print numbers in matrix diagonal pattern
  620. Find the sums for which an array can be divided into sub-arrays of equal sum
  621. Minimum Numbers of cells that are connected with the smallest path between 3 given cells
  622. Check if a number is perfect square without finding square root
  623. Remove exactly one element from the array such that max - min is minimum
  624. Choose n elements such that their mean is maximum
  625. Occurrences of a pattern in binary representation of a number
  626. Count distinct substrings that contain some characters at most k times
  627. Check whether a + b = c or not after removing all zeroes from a,b and c
  628. Represent n as the sum of exactly k powers of two | Set 2
  629. Apothem of a n-sided regular polygon
  630. Print all subsequences of a string using ArrayList
  631. Generate all rotations of a number
  632. Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
  633. Replace all occurrences of a string with space
  634. Find probability that a player wins when probabilities of hitting the target are given
  635. Find the n-th binary string in sorted order
  636. Minimum absolute difference between N and a power of 2
  637. Minimum prime number operations to convert A to B
  638. Maximum value of arr[i] % arr[j] for a given array
  639. Check whether a number is Non-hypotenuse number
  640. Find the repeating and the missing number using two equations
  641. Replace the maximum element in the array by coefficient of range
  642. Check if a word exists in a grid or not
  643. Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
  644. Count rows in a matrix that consist of same element
  645. Probability that a N digit number is palindrome
  646. Number of subarrays have bitwise OR >= K
  647. Smallest multiple of 3 which consists of three given non-zero digits
  648. Largest number less than X having at most K set bits
  649. Minimum number of sets with numbers less than Y
  650. Check if it is possible to draw a straight line with the given direction cosines
  651. Minimum number N such that total set bits of all numbers from 1 to N is at-least X
  652. Find cost price from given selling price and profit or loss percentage
  653. Count of matrices (of different orders) with given number of elements
  654. Minimum elements to be added so that two matrices can be multiplied
  655. Minimum steps required to convert X to Y where a binary matrix represents the possible conversions
  656. Distribute N candies among K people
  657. Program to find nth term of the series 1 4 15 24 45 60 92
  658. Print all integers that are sum of powers of two given numbers
  659. Possible cuts of a number such that maximum parts are divisible by 3
  660. Program to delete Nth digit of a Number
  661. First and Last Three Bits
  662. K length words that can be formed from given characters without repetition
  663. Program to print Step Pattern
  664. Smallest perfect square divisible by all elements of an array
  665. Length of the longest substring with consecutive characters
  666. Largest sub-set possible for an array satisfying the given condition
  667. Smallest perfect Cube divisible by all elements of an array
  668. Weighted sum of the characters of a string in an array | Set 2
  669. Count the number of holes in an integer
  670. Recursive program to print all numbers less than N which consist of digits 1 or 3 only
  671. Cost to make a string Panagram | Set 2
  672. Convert given string so that it holds only distinct characters
  673. Find probability of selecting element from kth column after N iterations
  674. Program to check if two strings are same or not
  675. Check if a number can be expressed as sum two abundant numbers
  676. Sum of P terms of an AP if Mth and Nth terms are given
  677. Ternary Search
  678. Find nth term of the series 5 2 13 41
  679. Program to find sum of harmonic series
  680. Count number of set bits in a range using bitset
  681. Print n 0s and m 1s such that no two 0s and no three 1s are together
  682. Print all Proth primes up to N
  683. Find Pth term of a GP if Mth and Nth terms are given
  684. Count of strings that become equal to one of the two strings after one removal
  685. Largest subset where absolute difference of any two element is a power of 2
  686. Print all safe primes below N
  687. Check if it is possible to get back to 12'0 clock only by adding or subtracting given seconds
  688. Difference between Sum of Cubes and Sum of First N Natural Numbers
  689. Minimum cost of choosing 3 increasing elements in an array of size N
  690. Count pairs in an array such that at least one element is prime
  691. Check whether two straight lines are orthogonal or not
  692. Program for Area Of Square after N-th fold
  693. Minimize the number of replacements to get a string with same number of 'a', 'b' and 'c' in it
  694. Rearrange Odd and Even values in Alternate Fashion in Ascending Order
  695. Count of Numbers such that difference between the number and sum of its digits not less than L
  696. Count number of sub-sequences with GCD 1
  697. Print prime numbers with prime sum of digits in an array
  698. Check if a string can be repeated to make another string
  699. Largest number less than or equal to N/2 which is coprime to N
  700. Find the area of largest circle inscribed in ellipse
  701. Print multiples of Unit Digit of Given Number
  702. Check if the binary representation of a number has equal number of 0s and 1s in blocks
  703. Check whether the given character is in upper case, lower case or non alphabetic character
  704. Sort even and odd placed elements in increasing order
  705. Rectangle with minimum possible difference between the length and the width
  706. Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
  707. Count of values of x <= n for which (n XOR x) = (n - x)
  708. Count the numbers that can be reduced to zero or less in a game
  709. Print all multiplicative primes <= N
  710. Program to check if a number is divisible by any of its digits
  711. Find the resulting Colour Combination
  712. Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
  713. Find the final X and Y when they are Altering under given condition
  714. Remove first X rows and columns from a matrix
  715. Find array using different XORs of elements in groups of size 4
  716. Count the number of survivors
  717. Program to implement Linear Extrapolation
  718. Remove characters from a numeric string such that string becomes divisible by 8
  719. Remove any corner X rows and columns from a matrix
  720. Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
  721. Largest right circular cone that can be inscribed within a sphere which is inscribed within a cube
  722. Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
  723. Minimum operations of given type to make all elements of a matrix equal
  724. Count of sub-strings that are divisible by K
  725. Program to check if a number is divisible by sum of its digits
  726. Composite XOR and Coprime AND
  727. Maximum given sized rectangles that can be cut out of a sheet of paper
  728. Midpoint ellipse drawing algorithm
  729. Check if a binary string has two consecutive occurrences of one everywhere
  730. Generate a random permutation of 1 to N
  731. Check if possible to shuffle a matrix with adjacent movements
  732. Make all elements of an array equal with the given operation
  733. Check if a number can be represented as a sum of 2 triangular numbers
  734. Minimum operations of the given type required to make a complete graph
  735. Count of pairs of (i, j) such that ((n % i) % j) % n is maximized
  736. Count number of trailing zeros in (1^1)*(2^2)*(3^3)*(4^4)*..
  737. Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
  738. Check whether XOR of all numbers in a given range is even or odd
  739. Minimum positive integer divisible by C and is not in range [A, B]
  740. Number of unique pairs in an array
  741. Count all Prime Length Palindromic Substrings
  742. Array element with minimum sum of absolute differences
  743. Maximum GCD from Given Product of Unknowns
  744. Count operations of the given type required to reduce N to 0
  745. Check if a + b = c is valid after removing all zeroes from a, b and c
  746. Decrypt a string encrypted by repeating i-th character i times
  747. Arrange first N natural numbers such that absolute difference between all adjacent elements > 1
  748. Increasing sequence with given GCD
  749. Minimum replacements to make adjacent characters unequal in a ternary string
  750. Filling diagonal to make the sum of every row, column and diagonal equal of 3x3 matrix
  751. Program to find LCM of two Fibonnaci Numbers
  752. Maximum subarray sum in array formed by repeating the given array k times
  753. Closest sum partition (into two subsets) of numbers from 1 to n
  754. Find two numbers whose divisors are given in a random order
  755. Number of Simple Graph with N Vertices and M Edges
  756. Smallest integer greater than n such that it consists of digit m exactly k times
  757. Minimum operations required to make all the array elements equal
  758. Check if a binary string contains consecutive same or not
  759. Cost of painting n * m grid
  760. Count Odd and Even numbers in a range from L to R
  761. Generate minimum sum sequence of integers with even elements greater
  762. Find the lexicographically largest palindromic Subsequence of a String
  763. Validation of Equation Given as String
  764. Count of sub-sets of size n with total element sum divisible by 3
  765. Count occurrences of a string that can be constructed from another given string
  766. Split the array into equal sum parts according to given conditions
  767. Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
  768. Modify the string by swapping continuous vowels or consonants
  769. Ways to divide a binary array into sub-arrays such that each sub-array contains exactly one 1
  770. Program to Assign grades to a student using Nested If Else
  771. Count of alphabets whose ASCII values can be formed with the digits of N
  772. Make palindromic string non-palindromic by rearranging its letters
  773. Minimum spanning tree cost of given Graphs
  774. Find the winner by adding Pairwise difference of elements in the array until Possible
  775. Maximum number of teams that can be formed with given persons
  776. Maximum count of sub-strings of length K consisting of same characters
  777. Minimum operations required to modify the array such that parity of adjacent elements is different
  778. Maximize the subarray sum after multiplying all elements of any subarray with X
  779. Maximize the value of x + y + z such that ax + by + cz = n
  780. Maximum money that can be withdrawn in two steps
  781. Number of sub-strings that contain the given character exactly k times
  782. Find integers that divides maximum number of elements of the array
  783. Find M-th number whose repeated sum of digits of a number is N
  784. Total position where king can reach on a chessboard in exactly M moves
  785. Maximum size of sub-array that satisfies the given condition
  786. Find minimum difference between any two elements | Set 2
  787. Maximum sum after repeatedly dividing N by a divisor
  788. Minimum steps to make the product of the array equal to 1
  789. Find the cordinates of the fourth vertex of a rectangle with given 3 vertices
  790. Minimum number of operations to move all uppercase characters before all lower case characters
  791. Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
  792. Find the integers that doesnot ends with T1 or T2 when squared and added X
  793. Minimum value to be added to X such that it is at least Y percent of N
  794. Choose points from two ranges such that no point lies in both the ranges
  795. Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
  796. Find maximum operations to reduce N to 1
  797. Find frequency of smallest value in an array
  798. Find Intersection of all Intervals
  799. Count of unique pairs (arr[i], arr[j]) such that i < j
  800. Minimum number of operations on an array to make all elements 0
  801. Count the number of rhombi possible inside a rectangle of given size
  802. Acronym words
  803. Maximize the sum of products of the degrees between any two vertices of the tree
  804. Maximum number of segments that can contain the given points
  805. Maximum length subsequence such that adjacent elements in the subsequence have a common factor
  806. Find sub-matrix with the given sum
  807. Modify a binary array to Bitwise AND of all elements as 1
  808. Count all possible N digit numbers that satisfy the given condition
  809. Minimum elements to be removed such that sum of adjacent elements is always odd
  810. Count possible moves in the given direction in a grid
  811. Minimum number of given operations required to convert a string to another string
  812. Program for power of a complex number in O(log n)
  813. Total number of days taken to complete the task if after certain days one person leaves
  814. Composite numbers with digit sum 1
  815. Generate a string consisting of characters 'a' and 'b' that satisfy the given conditions
  816. Length of the longest alternating subarray
  817. Check if a string can be converted to another string by replacing vowels and consonants
  818. Minimum replacements to make adjacent characters unequal in a ternary string | Set-2
  819. Numbers less than N that are perfect cubes and the sum of their digits reduced to a single digit is 1
  820. Minimize the sum of squares of sum of N/2 paired formed by N numbers
  821. Check whether the point (x, y) lies on a given line
  822. Count of pairs (x, y) in an array such that x < y
  823. Maximize the maximum among minimum of K consecutive sub-arrays
  824. Sum of XOR of all subarrays
  825. Sum of bitwise AND of all subarrays
  826. Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
  827. Find index i such that prefix of S1 and suffix of S2 till i form a palindrome when concatenated
  828. Find a positive number M such that gcd(N^M, N&M) is maximum
  829. Minimum index i such that all the elements from index i to given index are equal
  830. Find the longest Fibonacci-like subarray of the given array
  831. Find a permutation of 2N numbers such that the result of given expression is exactly 2K
  832. Queries for number of distinct integers in Suffix
  833. Given two binary strings perform operation until B > 0 and print the result
  834. Count primes that can be expressed as sum of two consecutive primes and 1
  835. Iterating over all possible combinations in an Array using Bits
  836. Check whether two strings are equivalent or not according to given condition
  837. Longest subsequence having greater corner values
  838. Smallest Special Prime which is greater than or equal to a given number
  839. Ways to form an array having integers in given range such that total sum is divisible by 2
  840. Minimum number of elements that should be removed to make the array good
  841. Select numbers in such way to maximize the amount of money
  842. Minimum removals to make array sum odd
  843. Check whether the number can be made perfect square after adding 1
  844. Number of Hamiltonian cycle
  845. Split the array into odd number of segments of odd lengths
  846. Maximum Bitwise AND pair from given range
  847. Sum of all Submatrices of a Given Matrix
  848. Find whether only two parallel lines contain all coordinates points or not
  849. Longest sub-sequence of array containing Lucas numbers
  850. XOR of a submatrix queries
  851. Find the minimum number of preprocess moves required to make two strings equal
  852. Minimum LCM and GCD possible among all possible sub-arrays
  853. Find the Nth term of the series where each term f[i] = f[i - 1] - f[i - 2]
  854. Maximum product from array such that frequency sum of all repeating elements in product is less than or equal to 2 * k
  855. Sort the numbers according to their sum of digits
  856. Minimum possible sum of array elements after performing the given operation
  857. XOR of XORs of all sub-matrices
  858. Schedule elevator to reduce the total time taken
  859. Maximum length subarray with difference between adjacent elements as either 0 or 1
  860. Find Nth positive number whose digital root is X
  861. Number of subarrays such that XOR of one half is equal to the other
  862. Bitwise AND of N binary strings
  863. Maximum length of the sub-array whose first and last elements are same
  864. Longest Sub-array with maximum average value
  865. k-th missing element in an unsorted array
  866. Maximum occurrence of prefix in the Array
  867. Count pairs (p, q) such that p occurs in array at least q times and q occurs at least p times
  868. Number of connected components in a 2-D matrix of strings
  869. Sum of even values and update queries on an array
  870. Longest subsequence such that adjacent elements have at least one common digit
  871. Minimum changes required to make a Catalan Sequence
  872. Count all elements in the array which appears at least K times after their first occurrence
  873. Numbers in a Range with given Digital Root
  874. Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
  875. Check if frequency of characters are in Recaman Series
  876. Replace every consonant sequence with its length in the given string
  877. Equation of circle when three points on the circle are given
  878. Count Hexadecimal Number
  879. Check if product of digits of a number at even and odd places is equal
  880. Character pairs from two strings with even sum
  881. Given number of matches played, find number of teams in tournament
  882. Minimize sum of adjacent difference with removal of one element from array
  883. Missing even and odd elements from the given arrays
  884. Maximum subarray sum by flipping signs of at most K array elements
  885. Group consecutive characters of same type in a string
  886. Probability of A winning the match when individual probabilities of hitting the target given
  887. Number of quadruples where the first three terms are in AP and last three terms are in GP
  888. Deletions of "01" or "10" in binary string to make it free from "01" or "10"
  889. Minimum length substring with exactly K distinct characters
  890. Find the first maximum length even word from a string
  891. Minimum number of letters needed to make a total of n
  892. Smallest integer > 1 which divides every element of the given array
  893. Print the balanced bracket expression using given brackets
  894. Series summation if T(n) is given and n is very large
  895. Maximize profit when divisibility by two numbers have associated profits
  896. Encrypt a string by repeating i-th character i times
  897. Maximum number that can be display on Seven Segment Display using N segments
  898. Number of ways to remove elements to maximize arithmetic mean
  899. Maximum average of a subarray of size of atleast X and atmost Y
  900. Sum of i * countDigits(i)^2 for all i in range [L, R]
  901. Program to calculate the value of nPr
  902. Find the modified array after performing k operations of given type
  903. Check if the given array is mirror-inverse
  904. Maximize the number of sum pairs which are divisible by K
  905. Find d to maximize the number of zeros in array c[] created as c[i] = d*a[i] + b[i]
  906. Sum of elements in an array whose difference with the mean of another array is less than k
  907. Remove first adjacent pairs of similar characters until possible
  908. Program to Encrypt a String using ! and @
  909. Number of pairs from the first N natural numbers whose sum is divisible by K
  910. Generate all the binary strings of N bits
  911. Position of the K-th set bit in a number
  912. Maximum count of pairs which generate the same sum
  913. Count integers in a range which are divisible by their euler totient value
  914. Number of ways to make binary string of length N such that 0s always occur together in groups of size K
  915. Count sub-arrays whose product is divisible by k
  916. Find foot of perpendicular from a point in 2 D plane to a Line
  917. Minimum steps to delete a string by deleting substring comprising of same characters
  918. Print a number as string of 'A' and 'B' in lexicographic order
  919. Maximum sum from three arrays such that picking elements consecutively from same is not allowed
  920. Count of buttons pressed in a keypad mobile
  921. Find a distinct pair (x, y) in given range such that x divides y
  922. Largest number N which can be reduced to 0 in K steps
  923. Sort elements of the array that occurs in between multiples of K
  924. Find the value of XXXX.....(N times) % M where N is large
  925. Find the smallest number X such that X! contains at least Y trailing zeros.
  926. Find 2^(2^A) % B
  927. Smallest index in the given array that satisfies the given condition
  928. Print the longest prefix of the given string which is also the suffix of the same string
  929. Minimum cost to reach end of array array when a maximum jump of K index is allowed
  930. Minimize the cost to split a number
  931. Maximum number of continuous Automorphic numbers
  932. Compute maximum of the function efficiently over all sub-arrays
  933. Find the maximum number of composite summands of a number
  934. Given count of digits 1, 2, 3, 4, find the maximum sum possible
  935. Determine the number of squares of unit area that a given line will pass through.
  936. Check if product of array containing prime numbers is a perfect square
  937. Count common characters in two strings
  938. Minimum value to add to arr[i] so that an array can be split at index i with equal sum
  939. Uniform Binary Search
  940. Sum of degrees of all nodes of a undirected graph
  941. Number of ways to go from one point to another in a grid
  942. Print last character of each word in a string
  943. Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
  944. Maximum number of candies that can be bought
  945. Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first
  946. Pairs of strings which on concatenating contains each character of "string"
  947. Maximum sum possible for a sub-sequence such that no two elements appear at a distance < K in the array
  948. Total position where king can reach on a chessboard in exactly M moves | Set 2
  949. Count number of ways to reach a given score in a Matrix
  950. Find the area of the shaded region formed by the intersection of four semicircles in a square
  951. Find the original matrix when largest element in a row and a column are given
  952. Find the number of different numbers in the array after applying the given operation q times
  953. Length of the longest substring that do not contain any palindrome
  954. XOR of all the elements in the given range [L, R]
  955. Arrange given numbers to form the smallest number
  956. Area of largest Circle inscribe in N-sided Regular polygon
  957. Maximum Subarray Sum after inverting at most two elements
  958. Find the number of integers from 1 to n which contains digits 0's and 1's only
  959. Find the number of jumps to reach X in the number line from zero
  960. Compare two strings considering only alphanumeric characters
  961. Element in a matrix starting from which anti-clockwise traversal ends at the last element
  962. Maximum element in a sorted and rotated array
  963. Count the number of operations required to reduce the given number
  964. Find the longest subsequence of an array having LCM at most K
  965. Sum of two numbers where one number is represented as array of digits
  966. Count number of binary strings of length N having only 0's and 1's
  967. Find original numbers from gcd() every pair
  968. Check if a given number divides the sum of the factorials of its digits
  969. Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
  970. Maximum number of people that can be killed with strength P
  971. Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
  972. Length of the smallest number which is divisible by K and formed by using 1's only
  973. Remove elements to make array sorted
  974. Find the number of binary strings of length N with at least 3 consecutive 1s
  975. Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors
  976. Total number of triangles formed when there are H horizontal and V vertical lines
  977. Minimum number of given operations required to convert a permutation into an identity permutation
  978. Count distinct points visited on the number line
  979. Find the count of sub-strings whose characters can be rearranged to form the given word
  980. Count all prefixes of the given binary array which are divisible by x
  981. Reduce the fraction to its lowest form
  982. Length of the longest increasing subsequence such that no two adjacent elements are coprime
  983. Find n positive integers that satisfy the given equations
  984. Maximize the happiness of the groups on the Trip
  985. Delete odd and even numbers at alternate step such that sum of remaining elements is minimized
  986. Lazy Propagation in Segment Tree | Set 2
  987. Minimum sub-array such that number of 1's in concatenation of binary representation of its elements is at least K
  988. Shell-Metzner Sort
  989. Find the longest sub-string which is prefix, suffix and also present inside the string
  990. Find the minimum number of operations required to make all array elements equal
  991. Find missing element in a sorted array of consecutive numbers
  992. Minimum number of changes such that elements are first Negative and then Positive
  993. Length of the longest substring with no consecutive same letters
  994. Find the number of players who roll the dice when the dice output sequence is given
  995. Predict the winner of the game on the basis of absolute difference of sum by selecting numbers
  996. Divide a number into two parts
  997. Program to calculate product of digits of a number
  998. Print the first and last character of each word in a String
  999. Divide array into increasing and decreasing subsequence without changing the order
  1000. Queries to answer the number of ones and zero to the left of given index
  1001. Program to find the maximum difference between the index of any two different numbers
  1002. Divide array into two parts with equal sum according to the given constraints
  1003. Remove the first and last character of each word in a string
  1004. Capitalize the first and last character of each word in a string
  1005. Check if two strings are same ignoring their cases
  1006. Find the sum of the number of divisors
  1007. Split the array elements into strictly increasing and decreasing sequence
  1008. Find the sum of digits of a number at even and odd places
  1009. Find the value at kth position in the generated array
  1010. Count the number of sub-arrays such that the average of elements present in the sub-array is greater than that not present in the sub-array
  1011. Largest ellipse that can be inscribed within a rectangle which in turn is inscribed within a semicircle
  1012. Find the lexicographically smallest string which satisfies the given condition
  1013. Find the number of sub arrays in the permutation of first N natural numbers such that their median is M
  1014. Find the number of divisors of all numbers in the range [1, n]
  1015. Queries to check if substring[L...R] is palindrome or not
  1016. Count pairs of non-overlapping palindromic sub-strings of the given string
  1017. Check if matrix A can be converted to B by changing parity of corner elements of any submatrix
  1018. Maximum sum of cocktail glass in a 2D matrix
  1019. Number of triangles possible with given lengths of sticks which are powers of 2
  1020. Count of elements whose absolute difference with the sum of all the other elements is greater than k
  1021. Minimum length of the sub-string whose characters can be used to form a palindrome of length K
  1022. Check whether N is a Dihedral Prime Number or not
  1023. Find minimum positive integer x such that a(x^2) + b(x) + c >= k
  1024. Length of the normal from origin on a straight line whose intercepts are given
  1025. Number of subsequences with zero sum
  1026. Count of sub-strings that do not consist of the given character
  1027. Find the maximum possible value of a[i] % a[j] over all pairs of i and j
  1028. Maximize the maximum subarray sum after removing atmost one element
  1029. Count the pairs of vowels in the given string
  1030. 3-digit Osiris number
  1031. Dudeney Numbers
  1032. Insertion and Deletion in Heaps
  1033. Building Heap from Array
  1034. Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum
  1035. Calculate the loss incurred in selling the given items at discounted price
  1036. Given a string and an integer k, find the kth sub-string when all the sub-strings are sorted according to the given condition
  1037. Find the kth element in the series generated by the given N ranges
  1038. Check whether the given string is a valid identifier
  1039. Find the nth term of the given series
  1040. Count of sub-strings of length n possible from the given string
  1041. Maximum absolute difference in an array
  1042. Move all zeros to start and ones to end in an Array of random integers
  1043. Find out the minimum number of coins required to pay total amount
  1044. Longest substring of only 4's from the first N characters of the infinite string
  1045. Equation of straight line passing through a given point which bisects it into two equal line segments
  1046. Count different numbers possible using all the digits their frequency times
  1047. Find the minimum of maximum length of a jump required to reach the last island in exactly k jumps
  1048. Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
  1049. Highest power of a number that divides other number
  1050. Count of sub-strings that contain character X at least once
  1051. Area of triangle formed by the axes of co-ordinates and a given straight line
  1052. Distance between two parallel lines
  1053. Check if given two straight lines are identical or not
  1054. Check if a directed graph is connected or not
  1055. Minimum cost to modify a string
  1056. Highest power of 2 that divides a number represented in binary
  1057. Minimum time required to transport all the boxes from source to the destination under the given constraints
  1058. Find sum of factorials in an array
  1059. Count of quadruplets with given Sum | Set 2
  1060. Find the Diameter or Longest chord of a Circle
  1061. Determine the position of the third person on regular N sided polygon
  1062. Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
  1063. Number of character corrections in the given strings to make them equal
  1064. Reorder the position of the words in alphabetical order
  1065. Given two arrays count all pairs whose sum is an odd number
  1066. Print steps to make a number in form of 2^X - 1
  1067. Length of the direct common tangent between two externally touching circles
  1068. Shortest distance from the centre of a circle to a chord
  1069. Radius of the circle when the width and height of an arc is given
  1070. Length of direct common tangent between the two non-intersecting Circles
  1071. Length of direct common tangent between two intersecting Circles
  1072. Shortest distance between a point and a circle
  1073. Count pairs with average present in the same array
  1074. Minimizing array sum by applying XOR operation on all elements of the array
  1075. Maximize the given number by replacing a segment of digits with the alternate digits given
  1076. Queries to answer the X-th smallest sub-string lexicographically
  1077. Count unique numbers that can be generated from N by adding one and removing trailing zeros
  1078. Find an index such that difference between product of elements before and after it is minimum
  1079. Find element with the maximum set bits in an array
  1080. Minimum number of cubes whose sum equals to given number N
  1081. Maximum non-attacking Knights that can be placed on an N*M Chessboard
  1082. Rat and Poisoned bottle Problem
  1083. Convert given integer X to the form 2^N - 1
  1084. 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
  1085. Calculate score for the given binary string
  1086. Number of positions such that adding K to the element is greater than sum of all other elements
  1087. Count number of 1s in the array after N moves
  1088. Largest even number that can be formed by any number of swaps
  1089. Check if given Preorder, Inorder and Postorder traversals are of same tree | Set 2
  1090. Area of plot remaining at the end
  1091. Find permutation of first N natural numbers that satisfies the given condition
  1092. Minimum increments to convert to an array of consecutive integers
  1093. Make lexicographically smallest palindrome by substituting missing characters
  1094. Minimum deletions required such that any number X will occur exactly X times
  1095. Bellman Ford Algorithm (Simple Implementation)
  1096. Compare sum of first N-1 elements to Nth element of an array
  1097. Program to print an array in Pendulum Arrangement with constant space
  1098. Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
  1099. Maximum number of edges in Bipartite graph
  1100. Minimum integer such that it leaves a remainder 1 on dividing with any element from the range [2, N]
  1101. Generate an Array in which count of even and odd sum sub-arrays are E and O respectively
  1102. Minimum number of given operations required to reduce the array to 0 element
  1103. Program to find the rate percentage from compound interest of consecutive years
  1104. Find prime number K in an array such that (A[i] % K) is maximum
  1105. Check if it is possible to make two martices strictly increasing by swapping corresponding values only
  1106. Count Pairs from two arrays with even sum
  1107. Count the number of primes in the prefix sum array of the given array
  1108. Rearrange the array to maximize the number of primes in prefix sum of the array
  1109. Check whether product of integers from a to b is positive , negative or zero
  1110. Maximum sum such that no two elements are adjacent | Set 2
  1111. Minimum sum obtained from groups of four elements from the given array
  1112. Ratio of the distance between the centers of the circles and the point of intersection of two transverse common tangents to the circles
  1113. Create a sequence whose XOR of elements is y
  1114. Count squares with odd side length in Chessboard
  1115. Check if the number is valid when flipped upside down
  1116. Minimum number of sub-strings of a string such that all are power of 5
  1117. Bitwise AND of sub-array closest to K
  1118. Find letter's position in Alphabet using Bit operation
  1119. Optimal Strategy for a Game | Set 2
  1120. Number of edges in mirror image of Complete binary tree
  1121. Find minimum steps required to reach the end of a matrix | Set 2
  1122. Sum of GCDs of each row of the given matrix
  1123. Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B
  1124. Queries to find the maximum Xor value between X and the nodes of a given level of a perfect binary tree
  1125. Find the index which is the last to be reduced to zero after performing a given operation
  1126. Number of common tangents between two circles if their centers and radius is given
  1127. Check if a circle lies inside another circle or not
  1128. Angle subtended by the chord when the angle subtended by another chord of same length is given
  1129. Queries for bitwise OR in the index range [L, R] of the given array
  1130. Queries for bitwise AND in the index range [L, R] of the given array
  1131. Find the time which is palindromic and comes after the given time
  1132. Find the last non repeating character in string
  1133. Find average of two numbers using bit operation
  1134. Find if nCr is divisible by the given prime
  1135. Queries for bitwise AND in the given matrix
  1136. Queries for bitwise OR in the given matrix
  1137. Generate all unique partitions of an integer | Set 2
  1138. Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
  1139. Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged
  1140. Find the sum of numbers from 1 to n excluding those which are powers of K
  1141. Check if a string contains two non overlapping sub-strings "geek" and "keeg"
  1142. Check if the given matrix is increasing row and column wise
  1143. Check if the given Prufer sequence is valid or not
  1144. Print an N x M matrix such that each row and column has all the vowels in it
  1145. Check whether an array can be made strictly increasing by modifying atmost one element
  1146. Find the Jaccard Index and Jaccard Distance between the two given sets
  1147. Count of all possible values of X such that A % X = B
  1148. Queries to find the last non-repeating character in the sub-string of a given string
  1149. Minimize the sum after choosing elements from the given three arrays
  1150. Count the triplets such that A[i] < B[j] < C[k]
  1151. Factorial of an Array of integers
  1152. Find a triplet in an array whose sum is closest to a given number
  1153. Distance of chord from center when distance between center and another equal length chord is given
  1154. Subset with sum closest to zero
  1155. Number of subsets with zero sum
  1156. Check if each element of the given array is the product of exactly K prime numbers
  1157. Find maximum topics to prepare in order to pass the exam
  1158. Number of ways to divide an array into K equal sum sub-arrays
  1159. Check whether we can sort two arrays by swapping A[i] and B[i]
  1160. Angle subtended by the chord to center of the circle when the angle subtended by the another equal chord of a congruent circle is given
  1161. Print the node with the maximum degree in the prufer sequence
  1162. Print elements of an array according to the order defined by another array | set 2
  1163. Queries for the difference between the count of composite and prime numbers in a given range
  1164. Maximise matrix sum by following the given Path
  1165. Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
  1166. Find the largest possible k-multiple set
  1167. Find the number of Chicks in a Zoo at Nth day
  1168. Find maximum path sum in a 2D matrix when exactly two left moves are allowed
  1169. Check if the two given stacks are same
  1170. Find the smallest positive number missing from an unsorted array : Hashing Implementation
  1171. Find the sum of the ascii values of characters which are present at prime positions
  1172. Count of three non-overlapping sub-strings which on concatenation forms a palindrome
  1173. Maximise array sum after taking non-overlapping sub-arrays of length K
  1174. Sum of XOR of all sub-arrays of length K
  1175. Count the maximum number of elements that can be selected from the array
  1176. Length of the largest substring which have character with frequency greater than or equal to half of the substring
  1177. Sum of all palindrome numbers present in an Array
  1178. Find uncommon characters of the two strings | Set 2
  1179. Minimum count of elements that sums to a given number
  1180. Maximum sum of non-overlapping subarrays of length atmost K
  1181. Queries to check whether all the elements can be made positive by flipping signs exactly K times
  1182. Count pairs of characters in a string whose ASCII value difference is K
  1183. Find a way to fill matrix with 1's and 0's in blank positions
  1184. 0-1 knapsack queries
  1185. Count number of distinct substrings of a given length
  1186. Find row with maximum and minimum number of zeroes in given Matrix
  1187. Number of 0s and 1s at prime positions in the given array
  1188. Maximum water that can be stored between two buildings
  1189. Count pairs of elements such that number of set bits in their AND is B[i]
  1190. Number of ways to split a binary number such that every part is divisible by 2
  1191. Count of adjacent Vowel Consonant Pairs
  1192. Split the given array into K sub-arrays such that maximum sum of all sub arrays is minimum
  1193. Maximum subset sum such that no two elements in set have same digit in them
  1194. Longest prefix in a string with highest frequency
  1195. Number of ways to choose elements from the array such that their average is K
  1196. Length of longest sub-array with maximum arithmetic mean.
  1197. Queries to find the first non-repeating character in the sub-string of a string
  1198. Find the element in the matrix generated by given rules
  1199. Sum of all mersenne numbers present in an array
  1200. Longest sub-sequence that satisfies the given conditions
  1201. Maximum sub-sequence sum such that indices of any two adjacent elements differs at least by 3
  1202. Largest sub-string where all the characters appear at least K times
  1203. Print all the super diagonal elements of the given square matrix
  1204. Find the total number of composite factor for a given number
  1205. Count of substrings which contains a given character K times
  1206. Count Distinct Rectangles in N*N Chessboard
  1207. Number of sub-sequence such that it has one consecutive element with difference less than or equal to 1
  1208. Total number of odd length palindrome sub-sequence around each centre
  1209. Print Lower Hessenberg matrix of order N
  1210. Print Upper Hessenberg matrix of order N
  1211. Count common elements in two arrays containing multiples of N and M
  1212. Number of ways to get a given sum with n number of m-faced dices
  1213. Order of indices which is lexicographically smallest and sum of elements is <= X
  1214. Count pairs of elements such that number of set bits in their OR is B[i]
  1215. Sort the character array based on ASCII % N
  1216. Reverse the Sentence using Stack
  1217. Design a stack which can give maximum frequency element
  1218. Count number of common elements between two arrays by using Bitset and Bitwise operation
  1219. Find the maximum number of elements divisible by 3
  1220. Find maximum value of the last element after reducing the array with given operations
  1221. Seating arrangement of N boys sitting around a round table such that two particular boys sit together
  1222. Kth smallest element in the array using constant space when array can't be modified
  1223. Minimum deletions required to make GCD of the array equal to 1
  1224. Print first N terms of Lower Wythoff sequence
  1225. Check whether it is possible to convert A into B
  1226. Check whether str1 can be converted to str2 with the given operations
  1227. Number of elements from the array which are reachable after performing given operations on D
  1228. Maximum previous and next element product
  1229. Find the minimum number of elements that should be removed to make an array good
  1230. Find XOR of numbers from the range [L, R]
  1231. Reverse individual words with O(1) extra space
  1232. Count of numbers whose 0th and Nth bits are set
  1233. Find a number containing N - 1 set bits at even positions from the right
  1234. Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
  1235. Sentence Case of a given Camel cased string
  1236. Minimum number of adjacent swaps to convert a string into its given anagram
  1237. Number of triplets such that each value is less than N and each pair sum is a multiple of K
  1238. Probability of getting more heads than tails when N biased coins are tossed
  1239. Rearrange the given string such that all prime multiple indexes have same character
  1240. Smallest perfect cube in an array
  1241. Cartesian tree from inorder traversal | Segment Tree
  1242. Maximum element in an array such that its previous and next element product is maximum
  1243. Count substrings that contain all vowels | SET 2
  1244. Number of ways of distributing N identical objects in R distinct groups
  1245. Number of ways of distributing N identical objects in R distinct groups with no groups empty
  1246. Total ways of choosing X men and Y women from a total of M men and W women
  1247. Find the number of paths of length K in a directed graph
  1248. Partition the string in two parts such that both parts have at least k different characters
  1249. Find the position of the given row in a 2-D array
  1250. Maximum number formed from array with K number of adjacent swaps allowed
  1251. Unbounded Fractional Knapsack
  1252. Minimum number of steps to convert a given matrix into Diagonally Dominant Matrix
  1253. Longest sub-array with equal number of alphabets and numeric characters
  1254. Find distinct characters in distinct substrings of a string
  1255. Count of non-overlapping sub-strings "101" and "010" in the given binary string
  1256. Remove an element to maximize the GCD of the given array
  1257. Count of pairs between two arrays such that the sums are distinct
  1258. Number of Quadruples with GCD equal to K
  1259. Longest Subarray having strictly positive XOR
  1260. Decimal to Binary using recursion and without using power operator
  1261. Minimum and maximum possible length of the third side of a triangle
  1262. Find the volume of rectangular right wedge
  1263. Cost Based Tower of Hanoi
  1264. Count total set bits in all numbers from 1 to n | Set 2
  1265. Check if a string can be obtained by rotating another string d places
  1266. Maximum length palindromic substring such that it starts and ends with given char
  1267. Case-specific sorting of Strings in O(n) time and O(1) space
  1268. Longest subsequence such that every element in the subsequence is formed by multiplying previous element with a prime
  1269. Probability of distributing M items among X bags such that first bag contains N items
  1270. Minimum Bitwise OR operations to make any two array elements equal
  1271. Count pairs in an array such that the absolute difference between them is ≥ K
  1272. Minimum Bitwise XOR operations to make any two array elements equal
  1273. Minimum operations required to convert X to Y by multiplying X with the given co-primes
  1274. Partition the array in K segments such that bitwise AND of individual segment sum is maximized
  1275. Count ways to divide circle using N non-intersecting chord | Set-2
  1276. Count equal pairs from given string arrays
  1277. Check if a number is Fermat Pseudoprime
  1278. Maximum length sub-array which satisfies the given conditions
  1279. Find array such that no subarray has xor zero or Y
  1280. Find the difference of count of equal elements on the right and the left for each element
  1281. Find smallest positive number Y such that Bitwise AND of X and Y is Zero
  1282. Merge K sorted Doubly Linked List in Sorted Order
  1283. Calculate the IST : Indian Standard Time
  1284. Print the season name of the year based on the month number
  1285. Sum of all natural numbers from L to R ( for large values of L and R )
  1286. Number of Subsequences with Even and Odd Sum | Set 2
  1287. Check if string can be rearranged so that every Odd length Substring is Palindrome
  1288. Find all numbers between range L to R such that sum of digit and sum of square of digit is prime
  1289. Minimum given operations required to convert a given binary string to all 1's
  1290. Reverse every word of the string except the first and the last character
  1291. First N terms whose sum of digits is a multiple of 10
  1292. Nth XOR Fibonacci number
  1293. Sand Timer Flip Counting Problem
  1294. Count of triplets that satisfy the given equation
  1295. Check if a number is Flavius Number
  1296. Swap Alternate Boundary Pairs
  1297. Check if expression contains redundant bracket or not | Set 2
  1298. Probability such that two subset contains same number of elements
  1299. Program to find the next prime number
  1300. Minimize the sum of the array according the given condition
  1301. Count the number of elements which are greater than any of element on right side of an array
  1302. Position of Elements which are equal to sum of all Preceding elements
  1303. Check if an array is increasing or decreasing
  1304. Queries for rotation and Kth character of the given string in constant time
  1305. Number of substrings that start with "geeks" and end with "for"
  1306. Maximum XOR of Two Numbers in an Array
  1307. Find Kth element in an array containing odd elements first and then even elements
  1308. Area of the largest square that can be formed from the given length sticks using Hashing
  1309. Generate N integers satisfying the given conditions
  1310. Find the first N integers such that the sum of their digits is equal to 10
  1311. Maximum subsequence sum such that all elements are K distance apart
  1312. Sum of last digit of all integers from 1 to N divisible by M
  1313. Comparing X^Y and Y^X for very large values of X and Y
  1314. Count the values greater than X in the modified array
  1315. Find a Square Matrix such that sum of elements in every row and column is K
  1316. Sum of absolute differences of pairs from the given array that satisfy the given condition
  1317. Find the minimum value from an array associated with another array
  1318. Lexicographically smallest string of length N and sum K
  1319. Find permutation with maximum remainder Sum
  1320. Count of distinct graphs that can be formed with N vertices
  1321. Reverse the given string in the range [L, R]
  1322. Find the Nth element of the modified Fibonacci series
  1323. Divide first N natural numbers into 3 equal sum subsets
  1324. Find two co-prime integers such that the first divides A and the second divides B
  1325. Maximum OR value of a pair in an array
  1326. Find number of candidates in the Exam
  1327. Queries for the smallest and the largest prime number of given digit
  1328. Program for Mobius Function | Set 2
  1329. Count of numbers below N whose sum of prime divisors is K
  1330. Find the count of subsequences where each element is divisible by K
  1331. Count number of substrings of a string consisting of same characters
  1332. Count occurrences of a prime number in the prime factorization of every element from the given range
  1333. Find the winner of the game
  1334. Maximum items that can be bought with the given type of coins
  1335. Check whether bitwise AND of N numbers is Even or Odd
  1336. Make the list non-decreasing by changing only one digit of the elements
  1337. Check if the sum of digits of number is divisible by all of its digits
  1338. Repeated sum of first N natural numbers
  1339. Number of sub arrays with negative product
  1340. Find the XOR of first N Prime Numbers
  1341. Replace elements with absolute difference of smallest element on left and largest element on right
  1342. Count total set bits in all numbers from 1 to N | Set 3
  1343. Number of Subarrays with positive product
  1344. Count total unset bits in all the numbers from 1 to N
  1345. Summation of floor of harmonic progression
  1346. Find the sum of all possible pairs in an array of N elements
  1347. Find subarray with given sum with negatives allowed in constant space
  1348. Find out the prime numbers in the form of A+nB or B+nA
  1349. Find the character made by adding all the characters of the given string
  1350. Count of distinct remainders when N is divided by all the numbers from the range [1, N]
  1351. Contiguous unique substrings with the given length L
  1352. Count of subsets not containing adjacent elements
  1353. Sum of the digits of square of the given number which has only 1's as its digits
  1354. Check if a right-angled triangle can be formed by moving any one of the coordinates
  1355. XOR of elements in an array having prime frequency
  1356. Bitwise AND of the sum of prime numbers and the sum of composite numbers in an array
  1357. Number of triplets in array having subarray xor equal
  1358. Sum of squares of all Subsets of given Array
  1359. Array containing power of 2 whose XOR and Sum of elements equals X
  1360. Count of Multiples of A ,B or C less than or equal to N
  1361. Total ways of selecting a group of X men from N men with or without including a particular man
  1362. Find the number of strings formed using distinct characters of a given string
  1363. Minimum characters that are to be inserted such that no three consecutive characters are same
  1364. Find the maximum possible Binary Number from given string
  1365. Check if the Matrix satisfies the given conditions
  1366. Count all substrings having character K
  1367. Count of operations required to update the array such that it satisfies the given conditions
  1368. GCD of elements which occur prime number of times
  1369. Check if the number formed by the last digits of N numbers is divisible by 10 or not
  1370. Find all even length binary sequences with same sum of first and second half bits | Iterative
  1371. Find the permutation of first N natural numbers such that sum of i % Pi is maximum possible
  1372. Check if all elements of binary array can be made 1
  1373. Find numbers which are multiples of first array and factors of second array
  1374. Find the sum of prime numbers in the Kth array
  1375. Count number of binary strings such that there is no substring of length greater than or equal to 3 with all 1's
  1376. Reduce N to 1 with minimum number of given operations
  1377. Maximum count of common divisors of A and B such that all are co-primes to one another
  1378. Find the possible permutation of the bits of N
  1379. Minimum cost to convert str1 to str2 with the given operations
  1380. Count of N-digit numbers in base K with no two consecutive zeroes
  1381. Color all boxes in line such that every M consecutive boxes are unique
  1382. Index of the elements which are equal to the sum of all succeeding elements
  1383. Check whether N is a Factorion or not
  1384. Count of elements which are not at the correct position
  1385. Bitwise XOR of elements having odd frequency
  1386. Count equal element pairs in the given array
  1387. Check duplicates in a stream of strings
  1388. Sentinel Linear Search
  1389. Modulo of a large Binary String
  1390. Count the pairs in an array such that the difference between them and their indices is equal
  1391. Choose X elements from A[] and Y elements from B[] which satisfy the given condition
  1392. Count number of Special Set
  1393. Maximum length sub-array which satisfies the given conditions
  1394. Count total number of even sum sequences
  1395. Print nodes having maximum and minimum degrees
  1396. Program to calculate area of a rhombus whose one side and diagonal are given
  1397. Program to print the Ladder Pattern
  1398. Check if two given Circles are Orthogonal or not
  1399. QuickSelect (A Simple Iterative Implementation)
  1400. Find the ratio of number of elements in two Arrays from their individual and combined average
  1401. Check whether two strings can be made equal by copying their characters with the adjacent ones
  1402. Maximize the Expression | Bit Manipulation
  1403. Minimum value to be assigned to the elements so that sum becomes greater than initial sum
  1404. Find Partition Line such that sum of values on left and right is equal
  1405. Minimum possible number with the given operation
  1406. Check if it is possible to move from (0, 0) to (X, Y) in exactly K steps
  1407. Significant Inversions in an Array
  1408. Maximum possible number with the given operation
  1409. Minimum absolute difference between N and any power of 2
  1410. Number of ways in which N can be represented as the sum of two positive integers
  1411. Permutations of n things taken all at a time with m things never come together
  1412. Sum of Digits of the Good Strings
  1413. Number of ways to erase exactly one element in the Binary Array to make XOR zero
  1414. Maximum distance between two 1's in Binary representation of N
  1415. Minimum steps required to reduce all the elements of the array to zero
  1416. Sum of values of all possible non-empty subsets of the given array
  1417. Minimum halls required for class scheduling
  1418. Printing the Triangle Pattern using last term N
  1419. Find the count of natural Hexadecimal numbers of size N
  1420. Find a pair (n,r) in an integer array such that value of nPr is maximum
  1421. Find a pair (n,r) in an integer array such that value of nCr is maximum
  1422. Maximize the expression (A AND X) * (B AND X) | Bit Manipulation
  1423. Minimum number of substrings the given string can be splitted into that satisfy the given conditions
  1424. Sum of numbers in a range [L, R] whose count of divisors is prime
  1425. Minimum length String with Sum of the alphabetical values of the characters equal to N
  1426. Minimum number of additons to make the string balanced
  1427. Maximum number of line intersections formed through intersection of N planes
  1428. Program to find Nth odd Fibonacci Number
  1429. Sum of all the numbers present at given level in Pascal's triangle
  1430. Product of values of all possible non-empty subsets of given Array
  1431. Sum of the count of number of adjacent squares in an M X N grid
  1432. Count of N-bit binary numbers without leading zeros
  1433. Skewed Binary Tree
  1434. Find the next fibonacci number
  1435. Queries to count integers in a range [L, R] such that their digit sum is prime and divisible by K
  1436. Find missing elements from an Array
  1437. Divide the array into minimum number of sub-arrays having unique elements
  1438. Number of words that can be made using exactly P consonants and Q vowels from the given string
  1439. Largest Even and Odd N-digit numbers in Octal Number System
  1440. Number of coloured 0's in an N-level hexagon
  1441. Represent the given number as the sum of two composite numbers
  1442. Maximum number of distinct positive integers that can be used to represent N
  1443. Extended Binary Tree
  1444. Queries to find the count of characters preceding the given location
  1445. Find the quadratic equation from the given roots
  1446. Kth number from the set of multiples of numbers A, B and C
  1447. Count of 0s in an N-level hexagon
  1448. Sort the numbers according to their product of digits
  1449. Number of ways N can be divided into four parts to construct a rectangle
  1450. Length of the longest subsegment which is UpDown after inserting atmost one integer
  1451. Count of N-digit numbers with all distinct digits
  1452. Find the deleted value from the array when average of original elements is given
  1453. Probability that a random pair chosen from an array (a[i], a[j]) has the maximum sum
  1454. Count of matchsticks required to represent the given number
  1455. Check whether the given integers a, b, c and d are in proportion
  1456. Number of K length subsequences with minimum sum
  1457. Number of ways to insert two pairs of parentheses into a string of N characters
  1458. Maximum number of times str1 appears as a non-overlapping substring in str2
  1459. Convert Decimal To Hexa-Decimal including negative numbers
  1460. Find X and Y intercepts of a line passing through the given points
  1461. Cake Distribution Problem
  1462. Choose two elements from the given array such that their sum is not present in any of the arrays
  1463. Number of subsets whose mean is maximum
  1464. Count number of rotated strings which have more number of vowels in the first half than second half
  1465. Number of edges in a perfect binary tree with N levels
  1466. Sum of all the numbers in the Nth parenthesis
  1467. Check if it is possible to make array increasing or decreasing by rotating the array
  1468. Maximum LCM among all pairs (i, j) of first N natural numbers
  1469. Find the Kth position element of the given sequence
  1470. Minimum numbers with one's place as 9 to be added to get N
  1471. Number of cells in the Nth order figure
  1472. Count of N-digit Palindrome numbers
  1473. Sum of all the numbers in the Nth row of the given triangle
  1474. Maximum height of the binary search tree created from the given array
  1475. Check if a given number is factorial of any number
  1476. Modify the string such that every character gets replaced with the next character in the keyboard
  1477. Make the array non-decreasing with the given operation
  1478. Count of pairs in an array such that the highest power of 2 that divides their product is 1
  1479. Find the number of positive integers less than or equal to N that have an odd number of digits
  1480. Number of index pairs such that s[i] and s[j] are anagrams
  1481. Increasing permutation of first N natural numbers
  1482. Find K such that |A - K| = |B - K|
  1483. Find Range Value of the Expression
  1484. Represent (2 / N) as the sum of three distinct positive integers of the form (1 / m)
  1485. Program to find the last digit of X in base Y
  1486. Coxeter method to construct the magic square
  1487. Minimize sum by dividing all elements of a subarray by K
  1488. Count of integers obtained by replacing ? in the given string that give remainder 5 when divided by 13
  1489. Maximum sum of minimums of pairs in an array
  1490. Program to clear K-th bit of a number N
  1491. Program to toggle K-th bit of a number N
  1492. Find the maximum element in the array other than Ai
  1493. Minimum possible value of (i * j) % 2019
  1494. Check whether the given floating point number is a palindrome
  1495. Find the player who will win the Coin game
  1496. Minimum number of moves to reach N starting from (1, 1)
  1497. Find the number of squares inside the given square grid
  1498. Maximum circular subarray sum of size K
  1499. Program to print first N Prime numbers
  1500. Longest sub-sequence with maximum GCD
  1501. Longest sub-sequence with non-negative sum
  1502. Count of subsets with sum equal to X
  1503. Sum of all the numbers present at given level in Modified Pascal’s triangle
  1504. Integer part of the geometric mean of the divisors of N
  1505. Count of squares that can be drawn without lifting the pencil
  1506. Number of non-decreasing sub-arrays of length K
  1507. Number of subsets with a given AND value
  1508. Longest sub-sequence with minimum LCM
  1509. Number of subsets with a given OR value
  1510. Count integers in the range [A, B] that are not divisible by C and D
  1511. Sum of subsets of all the subsets of an array | O(N)
  1512. Longest subsequence whose sum is divisible by a given number
  1513. Longest subsequence with a given AND value
  1514. Number of K's such that the given array can be divided into two sets satisfying the given conditions
  1515. Count of elements which are second smallest among three consecutive elements
  1516. Find all palindrome numbers of given digits
  1517. Number of non-decreasing sub-arrays of length greater than or equal to K
  1518. Number of non-decreasing sub-arrays of length less than or equal to K
  1519. Longest sub-sequence with a given OR value : O(N) Approach
  1520. Maximum number of splits of a binary number
  1521. Longest subsequence with a given AND value | O(N)
  1522. Check the divisibility of Hexadecimal numbers
  1523. Number of subarrays with GCD equal to 1
  1524. Permute the elements of an array following given order
  1525. Form N by adding 1 or 2 in minimum number of operations X where X is divisible by M
  1526. Minimum difference between any two primes from the given range
  1527. Maximum prime moves to convert X to Y
  1528. Minimum number to be added to all digits of X to make X > Y
  1529. Reduce the string to minimum length with the given operation
  1530. Check if a number is Euler Pseudoprime
  1531. Longest subsequence with a given OR value : Dynamic Programming Approach
  1532. Program for nth Fuss–Catalan Number
  1533. Rearrange array elements such that Bitwise AND of first N - 1 elements is equal to last element
  1534. Find ways to arrange K green balls among N balls such that exactly i moves is needed to collect all K green balls
  1535. Number of ways to divide string in sub-strings such to make them in lexicographically increasing sequence
  1536. Number of subarrays with GCD = 1 | Segment tree
  1537. Number of ways to distribute N Paper Set among M students
  1538. Check whether a node is leaf node or not for multiple queries
  1539. Calculate the number of set bits for every number from 0 to N
  1540. Largest area square in an array when elements can be shuffled
  1541. Remove an element to minimize the LCM of the given array
  1542. Minimum number of coins that can generate all the values in the given range
  1543. Check whether the given decoded string is divisible by 6
  1544. Queries to find the count of vowels in the substrings of the given string
  1545. Find closest integer with the same weight
  1546. Maximum count of elements divisible on the left for any element
  1547. Construct an array from its pair-product
  1548. Find the minimum possible health of the winning player
  1549. Index of character depending on frequency count in string
  1550. Sum of the updated array after performing the given operation
  1551. Maximize sum by choosing elements from different section of a matrix
  1552. Maximum frequency of a remainder modulo 2i
  1553. Maximum number of consecutive 1's in binary representation of all the array elements
  1554. Reduce every element of the array to it's half retaining the sum zero
  1555. Find if a crest is present in the index range [L, R] of the given array
  1556. Number of ways to reach (X, Y) in a matrix starting from the origin
  1557. Minimum operations required to make the string satisfy the given condition
  1558. Check if there exists a connected graph that satisfies the given conditions
  1559. Maximum possible remainder when an element is divided by other element in the array
  1560. Find permutation array from the cumulative sum array
  1561. Program to show Belady's Anomaly
  1562. Find the Nth digit in the proper fraction of two numbers
  1563. Count set bits in the Kth number after segregating even and odd from N natural numbers
  1564. Sum of all the prime numbers with the count of digits ≤ D
  1565. Find the number of ways to reach Kth step in stair case
  1566. Minimize the number by changing at most K digits
  1567. Find the equal pairs of subsequence of S and subsequence of T
  1568. Check whether the exchange is possible or not
  1569. Find the coordinates of a triangle whose Area = (S / 2)
  1570. Count of subarrays with sum at least K
  1571. Lehmann's Primality Test
  1572. Check if B can be formed by permuting the binary digits of A
  1573. Find the subsequence with given sum in a superincreasing sequence
  1574. Maximum possible GCD after replacing at most one element in the given array
  1575. Maximum possible sum after M operations on N cards
  1576. Find the centroid of a non-self-intersecting closed Polygon
  1577. Restore a permutation from the given helper array
  1578. Minimum cost to partition the given binary string
  1579. Minimize the sum of digits of A and B such that A + B = N
  1580. Find the sum of the costs of all possible arrangements of the cells
  1581. Kth ancestor of a node in an N-ary tree using Binary Lifting Technique
  1582. Inorder traversal of an N-ary Tree
  1583. Maximum sum combination from the given array