vt_m
vt_m
  1. Average of odd numbers till a given odd number
  2. Count of triangles with total n points with m collinear
  3. Average of even numbers till a given even number
  4. Count of different straight lines with total n points with m collinear
  5. Number of Reflexive Relations on a Set
  6. Cartesian Product of Two Sets
  7. Number of Symmetric Relations on a Set
  8. Combination and Permutation Practice Questions | Set 1
  9. Program to calculate GST from original and net prices
  10. Average of Squares of Natural Numbers
  11. Problem on permutations and combinations | Set 2
  12. Print Patterns in PL/SQL
  13. Program for Fibonacci numbers in PL/SQL
  14. Check Armstrong Number in PL/SQL
  15. Swap two numbers in PL/SQL
  16. Swap two numbers in PL/SQL without using temp
  17. Prime number in PL/SQL
  18. Check if a number is Palindrome in PL/SQL
  19. PHP | vprintf() function
  20. Print pyramid of GeeksforGeeks in PL/SQL
  21. Print all even numbers from 1 to n in PL/SQL
  22. Check whether a given number is even or odd in PL/SQL
  23. Print all odd numbers and their sum from 1 to n in PL/SQL
  24. Check if a given year is leap year in PL/SQL
  25. Centered triangular number in PL/SQL
  26. Finding sum of first n natural numbers in PL/SQL
  27. HTML | script Tag
  28. HTML | small Tag
  29. HTML | strong Tag
  30. HTML | title Tag
  31. CSS | animation-fill-mode Property
  32. CSS | animation-direction Property
  33. CSS | animation-play-state Property
  34. CSS | animation-name Property
  35. CSS | animation-iteration-count Property
  36. CSS | animation-timing-function Property
  37. CSS | animation-delay Property
  38. CSS | animation-duration Property
  39. CSS | column-count Property
  40. CSS | column-fill Property
  41. CSS | column-rule Property
  42. CSS | column-gap Property
  43. CSS | optional Selector
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. How will you print numbers from 1 to 100 without using loop?
  2. Efficient way to multiply with 7
  3. Lucky Numbers
  4. Write an Efficient Method to Check if a Number is Multiple of 3
  5. Program to find parity
  6. Smallest power of 2 greater than or equal to n
  7. Largest Sum Contiguous Subarray
  8. Power Set
  9. Search an element in a sorted and rotated array
  10. Divide a string in N equal parts
  11. Compute the minimum or maximum of two integers without branching
  12. Compute modulus division by a power-of-2-number
  13. Babylonian method for square root
  14. Find minimum number to be divided to make a number a perfect square
  15. Union and Intersection of two sorted arrays
  16. A Product Array Puzzle
  17. Write you own Power without using multiplication(*) and division(/) operators
  18. Cutting a Rod | DP-13
  19. Turn off the rightmost set bit
  20. Add 1 to a given number
  21. Multiply a given Integer with 3.5
  22. Program for Fibonacci numbers
  23. Sliding Window Maximum (Maximum of all subarrays of size k)
  24. Check if array elements are consecutive | Added Method 3
  25. Find the repeating and the missing | Added 3 new methods
  26. Find whether an array is subset of another array | Added Method 3
  27. Find the minimum distance between two numbers
  28. Find a Fixed Point (Value equal to index) in a given array
  29. Find the maximum element in an array which is first increasing and then decreasing
  30. Josephus problem | Set 1 (A O(n) Solution)
  31. Binomial Coefficient | DP-9
  32. Add two numbers without using arithmetic operators
  33. Sum of subset differences
  34. Swap bits in a given number
  35. Find subarray with given sum | Set 1 (Nonnegative Numbers)
  36. The Celebrity Problem
  37. Check whether a given point lies inside a triangle or not
  38. XOR of all subarray XORs | Set 2
  39. Detect if two integers have opposite signs
  40. Find four elements that sum to a given value | Set 1 (n^3 solution)
  41. Check divisibility by 7
  42. Count the number of possible triangles
  43. Iterative Quick Sort
  44. Prim’s Minimum Spanning Tree (MST) | Greedy Algo-5
  45. Subset Sum Problem | DP-25
  46. Assembly Line Scheduling | DP-34
  47. Count all distinct pairs with difference equal to k
  48. Program for nth Catalan Number
  49. Count trailing zeroes in factorial of a number
  50. Find k closest elements to a given value
  51. Count Possible Decodings of a given Digit Sequence
  52. Maximum Sum Path in Two Arrays
  53. Count all possible walks from a source to a destination with exactly k edges
  54. Count ways to reach the n'th stair
  55. Find the smallest positive integer value that cannot be represented as sum of any subset of a given array
  56. Find common elements in three sorted arrays
  57. Given an n x n square matrix, find sum of all sub-squares of size k x k
  58. Given two strings, find if first string is a subsequence of second
  59. Count Distinct Non-Negative Integer Pairs (x, y) that Satisfy the Inequality x*x + y*y < n
  60. Find the closest pair from two sorted arrays
  61. Minimum Number of Platforms Required for a Railway/Bus Station
  62. K'th Smallest/Largest Element in Unsorted Array | Set 1
  63. Why is Binary Search preferred over Ternary Search?
  64. Find the missing number in Arithmetic Progression
  65. Find the element that appears once in an array where every other element appears twice
  66. Find position of an element in a sorted array of infinite numbers
  67. Rearrange an array such that 'arr[j]' becomes 'i' if 'arr[i]' is 'j' | Set 1
  68. Subtract two numbers without using arithmetic operators
  69. Pythagorean Triplet in an array
  70. Count possible ways to construct buildings
  71. Compute n! under modulo p
  72. Find the largest pair sum in an unsorted array
  73. Calculate 7n/8 without using division and multiplication operators
  74. Find the point where maximum intervals overlap
  75. Sort an almost sorted array where only two elements are swapped
  76. Find the nearest smaller numbers on left side in an array
  77. Modular multiplicative inverse
  78. Find a pair with maximum product in array of Integers
  79. Find the odd appearing element in O(Log n) time
  80. Trapping Rain Water
  81. Find maximum average subarray of k length
  82. Print a pattern without using any loop
  83. Print all non-increasing sequences of sum equal to a given number x
  84. Count number of ways to cover a distance
  85. Count number of ways to partition a set into k subsets
  86. Find three closest elements from given three sorted arrays
  87. Generate Pythagorean Triplets
  88. Number of paths with exactly k coins
  89. Maximum number of 2x2 squares that can be fit inside a right isosceles triangle
  90. Find the maximum subarray XOR in a given array
  91. Compute nCr % p | Set 1 (Introduction and Dynamic Programming Solution)
  92. Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
  93. Count Inversions of size three in a given array
  94. Given a set, find XOR of the XOR's of all subsets.
  95. Number of Triangles in an Undirected Graph
  96. Number of Triangles in Directed and Undirected Graphs
  97. Runge-Kutta 4th Order Method to Solve Differential Equation
  98. Find all divisors of a natural number | Set 1
  99. Permutation Coefficient
  100. Count Strictly Increasing Subarrays
  101. Convert from any base to decimal and vice versa
  102. Dyck path
  103. Count positive integers with 0 as a digit and maximum 'd' digits
  104. Count Negative Numbers in a Column-Wise and Row-Wise Sorted Matrix
  105. Find minimum difference between any two elements
  106. Find lost element from a duplicated array
  107. Linear Diophantine Equations
  108. Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
  109. Check if a number is Bleak
  110. Find Surpasser Count of each element in array
  111. Maximum product of a triplet (subsequnece of size 3) in array
  112. Sum of Fibonacci Numbers
  113. Number of non-negative integral solutions of a + b + c = n
  114. Find Cube Pairs | Set 2 (A n^(1/3) Solution)
  115. Find minimum adjustment cost of an array
  116. Largest product of a subarray of size k
  117. Find if array can be divided into two subarrays of equal sum
  118. Find profession in a special family
  119. Maximum Product Subarray | Set 2 (Using Two Traversals)
  120. Find the compatibility difference between two arrays
  121. Find number of times a string occurs as a subsequence in given string
  122. Find Two Missing Numbers | Set 2 (XOR based solution)
  123. Active and Inactive cells after k Days
  124. Count digit groupings of a number with given constraints
  125. Maximize value of (arr[i] - i) - (arr[j] - j) in an array
  126. Non Fibonacci Numbers
  127. Sorted subsequence of size 3 in linear time using constant space
  128. Sort an array according to count of set bits
  129. Find the minimum value of m that satisfies ax + by = m and all values after m also satisfy
  130. Count distinct occurrences as a subsequence
  131. Finding sum of digits of a number until sum becomes single digit
  132. Smallest subarray whose sum is multiple of array size
  133. Check whether a given number is even or odd
  134. Print sums of all subsets of a given set
  135. Interpolation Search
  136. Happy Number
  137. Perfect reversible string
  138. Equal Sum and XOR
  139. Josephus problem | Set 2 (A Simple Solution when k = 2)
  140. Check if bits of a number has count of consecutive set bits in increasing order
  141. Maximum occurred integer in n ranges
  142. Count all sorted rows in a matrix
  143. Latin Square
  144. Saddle point in a matrix
  145. GCD, LCM and Distributive Property
  146. Maximum height when coins are arranged in a triangle
  147. Multiples of 4 (An Interesting Method)
  148. Recursively break a number in 3 parts to get maximum sum
  149. Smallest number by rearranging digits of a given number
  150. Number of flips to make binary string alternate | Set 1
  151. Maximum XOR value in matrix
  152. Maximum sum of pairs with specific difference
  153. Find element using minimum segments in Seven Segment Display
  154. Find Equal (or Middle) Point in a sorted array with duplicates
  155. Find Maximum XOR value of a sub-array of size k
  156. Find elements larger than half of the elements in an array
  157. Maximum subsequence sum such that no three are consecutive
  158. Minimum XOR Value Pair
  159. Count pairs in an array that hold i*arr[i] > j*arr[j]
  160. Count pairs whose products exist in array
  161. Count minimum number of "move-to-front" moves to sort an array
  162. Find the maximum number of handshakes
  163. Count minimum number of subsets (or subsequences) with consecutive numbers
  164. Program to find the number of persons wearing white hat
  165. Circular primes less than n
  166. Print cells with same rectangular sums in a matrix
  167. Position of an element after stable sort
  168. The painter's partition problem
  169. Steps to return to {1, 2, ..n} with specified movements
  170. Maximum sum subarray removing at most one element
  171. Minimum flips in two binary arrays so that their XOR is equal to another array
  172. Find sum of modulo K of first N natural number
  173. Maximum 0's between two immediate 1's in binary representation
  174. Replace every matrix element with maximum of GCD of row or column
  175. Minimum sum subsequence such that at least one of every four consecutive elements is picked
  176. Total coverage of all zeros in a binary matrix
  177. Count number of ways to reach destination in a Maze
  178. Program for Chocolate and Wrapper Puzzle
  179. Maximum path sum for each position with jumps under divisibility condition
  180. Maximum sum Bi-tonic Sub-sequence
  181. Queries on count of points lie inside a circle
  182. Find two prime numbers with given sum
  183. Queries for greater than and not less than
  184. Efficient search in an array where difference between adjacent is 1
  185. Count of character pairs at same distance as in English alphabets
  186. Permute two arrays such that sum of every pair is greater or equal to K
  187. Minimum number of characters to be removed to make a binary string alternate
  188. Count of subarrays whose maximum element is greater than k
  189. Check if two strings are k-anagrams or not
  190. Calculate depth of a full Binary tree from Preorder
  191. Sum of both diagonals of a spiral odd-order square matrix
  192. Check length of a string is equal to the number appended at its last
  193. Count all sub-arrays having sum divisible by k
  194. Unbounded Knapsack (Repetition of items allowed)
  195. Choose k array elements such that difference of maximum and minimum is minimized
  196. Sort an array when two halves are sorted
  197. Queries for characters in a repeated string
  198. Minimum number of power terms with sum equal to n
  199. Check whether Strings are k distance apart or not
  200. Queries on subsequence of string
  201. Print all possible sums of consecutive numbers with sum N
  202. Find pair with greatest product in array
  203. Minimum number of page turns to get to a desired page
  204. Count pairs of natural numbers with GCD equal to given number
  205. Find a partition point in array
  206. Find pairs in array whose sums already exist in array
  207. Longest prefix that contains same number of X and Y in an array
  208. Double factorial
  209. Find all elements in array which have at-least two greater elements
  210. Divide array into two sub-arrays such that their averages are equal
  211. Find elements which are present in first array and not in second
  212. Maximum determinant of a matrix with every values either 0 or n
  213. Find three element from different three arrays such that that a + b + c = sum
  214. Check whether Arithmetic Progression can be formed from the given array
  215. Weighted Prefix Search
  216. Find maximum array sum after making all elements same with repeated subtraction
  217. Pairs of Amicable Numbers
  218. Check horizontal and vertical symmetry in binary matrix
  219. Sum of product of x and y such that floor(n/x) = y
  220. Minimum number of equal amount bags to collect at least M money
  221. Sum of matrix in which each element is absolute difference of its row and column numbers
  222. Hoare's vs Lomuto partition scheme in QuickSort
  223. Count of AP (Arithmetic Progression) Subsequences in an array
  224. N-th multiple in sorted list of multiples of two numbers
  225. Count of index pairs with equal elements in an array
  226. Multiplication of two numbers with shift operator
  227. Possible to form a triangle from array values
  228. Make two sets disjoint by removing minimum elements
  229. Maximum number of groups of size 3 containing two type of items
  230. Minimum time required to produce m items
  231. Find a local minima in an array
  232. Form coils in a matrix
  233. Exponential Search
  234. Sum of matrix element where each elements is integer division of row and column
  235. Count smaller numbers whose XOR with n produces greater value
  236. Distance of nearest cell having 1 in a binary matrix
  237. Maximum sum of smallest and second smallest in an array
  238. Allocate minimum number of pages
  239. Find first and last positions of an element in a sorted array
  240. Count all Quadruples from four arrays such that their XOR equals to 'x'
  241. Program to find Normal and Trace of a matrix
  242. C Program To Check whether Matrix is Skew Symmetric or not
  243. Type of array and its maximum element
  244. Conditionally assign a value without using conditional and arithmetic operators
  245. Sort array after converting elements to their squares
  246. Maximum and Minimum in a square matrix.
  247. Count all pairs of an array which differ in K bits
  248. Check if two arrays are equal or not
  249. Maximum value in an array after m range increment operations
  250. Make n using 1s and 2s with minimum number of terms multiple of k
  251. Maximum sum of hour glass in matrix
  252. K difference permutation
  253. Modify array to maximize sum of adjacent differences
  254. Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
  255. Count smaller values whose XOR with x is greater than x
  256. XOR of all subarray XORs | Set 1
  257. Search, insert and delete in an unsorted array
  258. Split an array into two equal Sum subarrays
  259. Check if frequency of each digit is less than the digit
  260. Count Divisors of n in O(n^1/3)
  261. Check if right triangle possible from given area and hypotenuse
  262. Find original array from encrypted array (An array of sums of other elements)
  263. Noble integers in an array (count of greater elements is equal to value)
  264. Window Sliding Technique
  265. Largest sum Zigzag sequence in a matrix
  266. Count the number of subarrays having a given XOR
  267. Find maximum height pyramid from the given array of objects
  268. Subsequence with maximum odd sum
  269. Program to print the diamond shape
  270. Minimum cost for acquiring all coins with k extra coins allowed with every coin
  271. Program for average of an array (Iterative and Recursive)
  272. Compute nCr % p | Set 3 (Using Fermat Little Theorem)
  273. Binary Search
  274. Delete an element from array (Using two traversals and one traversal)
  275. Program to find largest element in an array
  276. Program to multiply two matrices
  277. Program to find GCD or HCF of two numbers
  278. Program to find LCM of two numbers
  279. Program for factorial of a number
  280. Program to find transpose of a matrix
  281. Recursive program to linearly search an element in a given array
  282. Program to check if two given matrices are identical
  283. Program to find area of a triangle
  284. Program to find area of a circle
  285. Program to find sum of series 1 + 1/2 + 1/3 + 1/4 + .. + 1/n
  286. Given a number as a string, find the number of contiguous subsequences which recursively add up to 9
  287. Efficient Program to Compute Sum of Series 1/1! + 1/2! + 1/3! + 1/4! + .. + 1/n!
  288. Print All Distinct Elements of a given integer array
  289. Count 1's in a sorted binary array
  290. Given a sorted array and a number x, find the pair in array whose sum is closest to x
  291. Given a number n, count all multiples of 3 and/or 5 in set {1, 2, 3, ... n}
  292. Remove repeated digits in a given number
  293. Find the largest three elements in an array
  294. Check whether an array can be fit into another array rearranging the elements in the array
  295. Find missing number in another array which is shuffled copy
  296. Minimum steps to minimize n as per given condition
  297. Longest alternating subsequence
  298. Count numbers whose sum with x is equal to XOR with x
  299. Program for multiplication of array elements
  300. Count the number of ways to divide an array into three contiguous parts having equal sum
  301. Find Index of given fibonacci number in constant time
  302. First digit in product of an array of numbers
  303. Check if a number can be written as sum of three consecutive integers
  304. Save from Bishop in chessboard
  305. Find a time for which angle between hour and minute hands is given theta
  306. Sequences of given length where every element is more than or equal to twice of previous
  307. Closest (or Next) smaller and greater numbers with same number of set bits
  308. Minimum positive integer to divide a number such that the result is an odd
  309. Fibonacci modulo p
  310. Program to print all substrings of a given string
  311. Number of integral solutions of the equation x1 + x2 +.... + xN = k
  312. Check if a number can be written as a sum of 'k' prime numbers
  313. Given GCD G and LCM L, find number of possible pairs (a, b)
  314. Minimum steps to come back to starting point in a circular tour
  315. Find a range of composite numbers of given length
  316. Count pairs from two sorted arrays whose sum is equal to a given value x
  317. Number of cells a queen can move with obstacles on the chessborad
  318. Elements of an array that are not divisible by any element of another array
  319. Remove one bit from a binary number to get maximum value
  320. Break the number into three parts
  321. Number of Groups of Sizes Two Or Three Divisible By 3
  322. Lexicographically smallest rotated sequence | Set 2
  323. Count of Palindromic substrings in an Index range
  324. Maximize matrix as per given condition
  325. Count pairs with Odd XOR
  326. Efficiently check whether n is a multiple of 4 or not
  327. Queries for decimal values of subarrays of a binary array
  328. Round-off a number to a given number of significant digits
  329. Paper Cut into Minimum Number of Squares | Set 2
  330. Maximum product of subsequence of size k
  331. Add minimum number to an array so that the sum becomes even
  332. Toggle bits in the given range
  333. Non-decreasing subsequence of size k with minimum sum
  334. Find the largest number with n set and m unset bits
  335. Calculating Factorials using Stirling Approximation
  336. Minimum insertions to form a palindrome with permutations allowed
  337. Program to Interchange Diagonals of Matrix
  338. Number of substrings divisible by 4 in a string of integers
  339. Count total number of digits from 1 to n
  340. Nth Even length Palindrome
  341. Program for octal to decimal conversion
  342. Print the string after the specified character has occurred given no. of times
  343. Quick way to check if all the characters of a string are same
  344. Finding power of prime number p in n!
  345. Adam Number
  346. Program to check if input is an integer or a string
  347. Count number of pairs (A <= N, B <= N) such that gcd (A , B) is B
  348. Program to find root of an equations using secant method
  349. Queries for counts of array elements with values in given range
  350. Josephus Problem Using Bit Magic
  351. Get the position of rightmost unset bit
  352. Find the index of first 1 in a sorted array of 0's and 1's
  353. Climb n-th stair with all jumps from 1 to n allowed (Three Different Approaches)
  354. Check if array elements are consecutive in O(n) time and O(1) space (Handles Both Positive and negative numbers)
  355. Check if an array contains all elements of a given range
  356. Equable Shapes
  357. Find numbers of balancing positions in string
  358. Evil Number
  359. Find repeated character present first in a string
  360. Ways to remove one element from a binary string so that XOR becomes zero
  361. Print triplets with sum less than or equal to k
  362. Sum of numbers with exactly 2 bits set
  363. Find pair with maximum GCD in an array
  364. Minimum sum of differences with an element in an array
  365. Coloring a Cycle Graph
  366. Sum of cubes of first n even numbers
  367. Sum of cubes of first n odd natural numbers
  368. Maximum length subsequence with difference between adjacent elements as either 0 or 1
  369. Program to print the sum of the given nth term
  370. Print 'K'th least significant bit of a number
  371. Subarray with XOR less than k
  372. Number of positions with Same address in row major and column major order
  373. Centered Dodecagonal Number
  374. Maximum sum of lengths of non-overlapping subarrays with k as the max element.
  375. Mutual Recursion with example of Hofstadter Female and Male sequences
  376. Convert to Strictly increasing integer array with minimum changes
  377. Change all even bits in a number to 0
  378. Efficiently find first repeated character in a string without using any additional data structure in one traversal
  379. Print a matrix in a spiral form starting from a point
  380. Equalize an array using array elements only
  381. Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
  382. Given two strings check which string makes a palindrome first
  383. Maximum sum of difference of adjacent elements
  384. Least number of manipulations needed to ensure two strings have identical characters
  385. Smallest element in an array that is repeated exactly 'k' times.
  386. Distributing M items in a circle of size N starting from K-th position
  387. Repeatedly search an element by doubling it after every successful search
  388. Find a triplet such that sum of two equals to third element
  389. Find smallest permutation of given number
  390. Efficiently compute sums of diagonals of a matrix
  391. Coin game winner where every player has three choices
  392. Maximise the size of consecutive element subsets in an array
  393. Count ways to express a number as sum of powers
  394. Difference between sums of odd and even digits
  395. Recursive solution to count substrings with same first and last characters
  396. Find multiple of x closest to or a ^ b (a raised to power b)
  397. Maximum Weight Difference
  398. Sort first half in ascending and second half in descending order | 1
  399. Find element in a sorted array whose frequency is greater than or equal to n/2.
  400. Height of n-ary tree if parent array is given
  401. Count of obtuse angles in a circle with 'k' equidistant points between 2 given points
  402. Find the n-th number whose binary representation is a palindrome
  403. Check if any anagram of a string is palindrome or not
  404. Check whether a given point lies inside a rectangle or not
  405. Collect maximum points in an array with k moves
  406. Minimum absolute difference of XOR values of two subarrays
  407. Number of jumps for a thief to cross walls
  408. Number of bitonic arrays of length n and consisting of elements from 1 to n
  409. Count even and odd digits in an Integer
  410. Find an element in array such that sum of left array is equal to sum of right array
  411. Position of rightmost common bit in two numbers
  412. Find row number of a binary matrix having maximum number of 1s
  413. Find smallest number n such that n XOR n+1 equals to given k.
  414. Check if two given circles touch or intersect each other
  415. Check whether given circle resides in boundary maintained by two other circles
  416. Find the sum of maximum difference possible from all subset of a given array.
  417. Find the index of first 1 in an infinite sorted array of 0s and 1s
  418. Find m-th summation of first n natural numbers.
  419. Counting pairs when a person can form pair with at most one
  420. Betrothed numbers
  421. Program to find if a character is vowel or Consonant
  422. Sylvester's sequence
  423. Minimum operations to make XOR of array zero
  424. Golomb sequence
  425. Maximum area rectangle by picking four sides from array
  426. Maximum number of squares that can fit in a right angle isosceles triangle
  427. Minimum flips required to maximize a number with k set bits
  428. Sort a binary array using one traversal
  429. Geometric mean (Two Methods)
  430. Program to Print Matrix in Z form
  431. Find element at given index after given range reversals
  432. Efficient program to print the number of factors of n numbers
  433. Distributing all balls without repetition
  434. Program to find the area of a Square
  435. Luhn algorithm
  436. Largest K digit number divisible by X
  437. Smallest K digit number divisible by X
  438. Minimum product pair an array of positive Integers
  439. Difference between highest and least frequencies in an array
  440. Find minimum radius such that atleast k point lie inside the circle
  441. Maximum difference between group of k-elements and rest of the array.
  442. Minimum cells required to reach destination with jumps equal to cell values
  443. Row-wise common elements in two diagonals of a square matrix
  444. Program to count digits in an integer (4 Different Methods)
  445. Product of factors of number
  446. Find Unique pair in an array with pairs of numbers
  447. Make a string from another by deletion and rearrangement of characters
  448. Print all subsets of given size of a set
  449. Stable Selection Sort
  450. Count entries equal to x in a special matrix
  451. Number of subarrays having product less than K
  452. Maximum value of |arr[i] - arr[j]| + |i - j|
  453. Program for cube sum of first n natural numbers
  454. Steps to make array empty by removing maximum and its right side
  455. Find the dimensions of Right angled triangle
  456. Array element moved by k using single moves
  457. Minimum Possible value of |ai + aj - k| for given array and k.
  458. Find maximum sum of triplets in an array such than i < j < k and a[i] < a[j] < a[k]
  459. Minimum element whose n-th power is greater than product of an array of size n
  460. Number of triangles after N moves
  461. Sum of all subsets of a set formed by first n natural numbers
  462. Cyclic Number
  463. Count of substrings of a binary string containing K ones
  464. Find the last digit when factorial of A divides factorial of B
  465. Check if a given matrix is sparse or not
  466. Rearrange array such that even index elements are smaller and odd index elements are greater
  467. Minimum rotations to unlock a circular lock
  468. Longest alternating sub-array starting from every index in a Binary Array
  469. Count ways of choosing a pair with maximum difference
  470. Check whether a number has exactly three distinct factors or not
  471. Minimal operations to make a number magical
  472. Rearrange a binary string as alternate x and y occurrences
  473. Find all factorial numbers less than or equal to n
  474. Ways to color a 3*N board using 4 colors
  475. Check if a number is power of k using base changing method
  476. Queries on probability of even or odd number in given ranges
  477. Minimum cost to connect weighted nodes represented as array
  478. Minimum tiles of sizes in powers of two to cover whole area
  479. Possibility of a word from a given set of characters
  480. Pairs with Difference less than K
  481. Number of Binary Trees for given Preorder Sequence length
  482. Maximize the sum of arr[i]*i
  483. k size subsets with maximum difference d between max and min
  484. Count number of elements between two given elements in array
  485. Shuffle array {a1, a2, .. an, b1, b2, .. bn} as {a1, b1, a2, b2, a3, b3, ……, an, bn} without using extra space
  486. Check if one of the numbers is one's complement of the other
  487. 9's complement of a decimal number
  488. Check if a number is divisible by all prime divisors of another number
  489. Mean and Median of a matrix
  490. Find a number x such that sum of x and its digits is equal to given n.
  491. Segment tree | Efficient implementation
  492. Alexander Bogomolny’s UnOrdered Permutation Algorithm
  493. Length of Longest Balanced Subsequence
  494. Split n into maximum composite numbers
  495. Divide an array into k segments to maximize maximum of segment minimums
  496. Woodall Number
  497. Interquartile Range (IQR)
  498. Minimum reduce operations to covert a given string into a palindrome
  499. Find single in an array of 2n+1 integer elements
  500. Program for Variance and Standard Deviation of an array
  501. Check if a given array is pairwise sorted or not
  502. Maximum even sum subsequence
  503. Given an array and three numbers, maximize (x * a[i]) + (y * a[j]) + (z * a[k])
  504. Program for product of array
  505. Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
  506. Program for Area And Perimeter Of Rectangle
  507. First collision point of two series
  508. Possibility of moving out of maze
  509. Sgn value of a polynomial
  510. String with k distinct characters and no same characters adjacent
  511. Minimum sum by choosing minimum of pairs from array
  512. Minimum number of bombs
  513. Program to find Circumference of a Circle
  514. Counting sets of 1s and 0s in a binary matrix
  515. Find the frequency of a number in an array
  516. Number of steps to convert to prime factors
  517. Check if an encoding represents a unique binary string
  518. Minimum absolute difference of adjacent elements in a circular array
  519. Maximum number of characters between any two same character in a string
  520. Program to find GCD of floating point numbers
  521. Program for Volume and Surface Area of Cube
  522. Program for weighted mean of natural numbers.
  523. Count ways to form minimum product triplets
  524. Sum of array elements after every element x is XORed itself x times
  525. Area of a Circular Sector
  526. Number of co-prime pairs in an array
  527. Find n-th term in sequence 1, 1, 2, 1, 2, 3, 1, 2, 3, 4, ....
  528. Recursive sum of digits of a number is prime or not
  529. Subsequences of size three in an array whose sum is divisible by m
  530. Longest subsequence with no 0 after 1
  531. Expectation or expected value of an array
  532. Powers of two and subsequences
  533. Ways to paint stairs with two colors such that two adjacent are not yellow
  534. Count ways to express 'n' as sum of odd integers
  535. Minimum number of elements to add to make median equals x
  536. Divisibility by 64 with removal of bits allowed
  537. Counting cross lines in an array
  538. Count ways to express even number ‘n’ as sum of even integers
  539. Program to find slope of a line
  540. Replace a character c1 with c2 and c2 with c1 in a string S
  541. Longest alternating (positive and negative) subarray starting at every index
  542. Minimum cost to make array size 1 by removing larger of pairs
  543. Game of N stones where each player can remove 1, 3 or 4
  544. Number of n digit numbers that do not contain 9
  545. Number of ways to get even sum by choosing three numbers from 1 to N
  546. Sum of digits of a given number to a given power
  547. Program for dot product and cross product of two vectors
  548. Divide every element of one array by other array elements
  549. Delannoy Number
  550. Minimum sum of product of two arrays
  551. Elements to be added so that all elements of a range are present in array
  552. Maximum area of quadrilateral
  553. Program to check for Peterson number
  554. Minimum 1s to lend power to make whole array powerful
  555. Calculate the Discriminant Value
  556. Find array with k number of merge sort calls
  557. Program to find remainder when large number is divided by 11
  558. Program to check for ISBN
  559. Longest subsequence having equal numbers of 0 and 1
  560. Ways to color a skewed tree such that parent and child have different colors
  561. Print Number series without using any loop
  562. Encoding a word into Pig Latin
  563. Find if given number is sum of first n natural numbers
  564. Distributing items when a person cannot take more than two items of same type
  565. GCD of elements in a given range
  566. Minimum cost to convert string into palindrome
  567. Minimum replacements to make elements of a ternary array same
  568. Find all possible coordinates of parallelogram
  569. Given N and Standard Deviation, find N elements
  570. Minimum operations to make the MEX of the given set equal to x
  571. Products of ranges in an array
  572. Given a large number, check if a subsequence of digits is divisible by 8
  573. Number of subsequences as "ab" in a string repeated K times
  574. Pair formation such that maximum pair sum is minimized
  575. Sum of the Series 1/(1*2) + 1/(2*3) + 1/(3*4) + 1/(4*5) + . . . . .
  576. k-th number in the Odd-Even sequence
  577. Check input character is alphabet, digit or special character
  578. Check whether a number can be represented by sum of two squares
  579. Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
  580. Program to find last two digits of Nth Fibonacci number
  581. GCD of array is greater than one
  582. Calculate Volume and Surface area Of Sphere
  583. Number of stopping station problem
  584. Count different numbers that can be generated such that there digits sum is equal to 'n'
  585. Minimum gcd operations to make all array elements one
  586. Mirror of matrix across diagonal
  587. Prime factors of a big number
  588. Minimum flips to make all 1s in left and 0s in right | Set 2
  589. Find minimum in an array without using Relational Operators
  590. Number of subarrays with maximum values in given range
  591. Convert to number with digits as 3 and 8 only
  592. Construct a distinct elements array with given size, sum and element upper bound
  593. Find maximum in an array without using Relational Operators
  594. One line function for factorial of a number
  595. Given two numbers a and b find all x such that a % x = b
  596. Maximum array sum with prefix and suffix multiplications with -1 allowed
  597. Ways of filling matrix such that product of all rows and all columns are equal to unity
  598. Middle term in the binomial expansion series
  599. Find element in array that divides all array elements
  600. Minimizing array sum by subtracting larger elements from smaller ones
  601. Count number of even and odd elements in an array
  602. Maximizing array sum with given operation
  603. Program to swap upper diagonal elements with lower diagonal elements of matrix.
  604. Number of pairs with maximum sum
  605. Find closest number in array
  606. Find smallest subarray that contains all elements in same order
  607. Find combined mean and variance of two series
  608. Maximum AND value of a pair in an array
  609. Largest number with binary representation is m 1's and m-1 0's
  610. Largest number by which given 3 numbers should be divided such that they leaves same remainder
  611. Program to print hollow rectangle or square star patterns
  612. Program for EMI Calculator
  613. Number of elements greater than modified mean in matrix
  614. Minimum jumps to reach last building in a matrix
  615. Program to find the minimum (or maximum) element of an array
  616. Program for Identity Matrix
  617. Find the sum of the series 1+11+111+1111+..... upto n terms
  618. Program to find area of a Trapezoid
  619. Maximum sum path in a matrix from top to bottom
  620. Find mean of subarray means in a given array
  621. Find x, y, z that satisfy 2/n = 1/x + 1/y + 1/z
  622. Product of maximum in first array and minimum in second
  623. Fermat's little theorem
  624. Calculate volume and surface area of a cone
  625. Minimum height of a triangle with given base and area
  626. Narayana number
  627. Largest divisible pairs subset
  628. Program to Convert Km/hr to miles/hr and vice versa
  629. Sum of first n odd numbers in O(1) Complexity
  630. Program for volume of Pyramid
  631. Nicomachus’s Theorem (Sum of k-th group of odd positive numbers)
  632. Schröder–Hipparchus number
  633. Check if the last element of array is even or odd after performing a operation p times
  634. Check if the game is valid or not
  635. Count of arrays having consecutive element with different values
  636. Middle of three using minimum comparisons
  637. Length of longest balanced parentheses prefix
  638. Program to calculate volume of Ellipsoid
  639. AKS Primality Test
  640. Program to check if matrix is upper triangular
  641. Program to calculate age
  642. Sum of squares of first n natural numbers
  643. Maximize volume of cuboid with given sum of sides
  644. Lobb Number
  645. Eulerian Number
  646. Count of possible hexagonal walks
  647. Ways to split array into two groups of same XOR value
  648. Program to calculate area and perimeter of Trapezium
  649. Program to find Perimeter / Circumference of Square and Rectangle
  650. Longest subsegment of '1's formed by changing at most k '0's
  651. Partition into two subarrays of lengths k and (N - k) such that the difference of sums is maximum
  652. Find a rotation with maximum hamming distance
  653. Entringer Number
  654. Maximum product of 4 adjacent elements in matrix
  655. Sum of all divisors from 1 to n
  656. Maximum triplet sum in array
  657. Telephone Number
  658. Sum of Manhattan distances between all pairs of points
  659. Game of Nim with removal of one stone allowed
  660. Find x and y satisfying ax + by = n
  661. Hosoya's Triangle
  662. Add given n time durations
  663. Program for Circumference of a Parallelogram
  664. Program to calculate Volume and Surface area of Hemisphere
  665. Minimum number of subtract operation to make an array decreasing
  666. First occurrence of a digit in a given fraction
  667. Minimize the absolute difference of sum of two subsets
  668. k smallest elements in same order using O(1) extra space
  669. Find larger of x^y and y^x
  670. Find largest sum of digits in all divisors of n
  671. Divide cuboid into cubes such that sum of volumes is maximum
  672. Minimum Cost to make two Numeric Strings Identical
  673. Octagonal number
  674. Difference between sum of the squares of first n natural numbers and square of sum
  675. Find n-th term of series 2, 10, 30, 68, 130 ...
  676. Program to find sum of series 1*2*3 + 2*3*4+ 3*4*5 + . . . + n*(n+1)*(n+2)
  677. Find Perimeter of a triangle
  678. Program to find the sum of a Series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n
  679. Program for Fahrenheit to Kelvin conversion
  680. Find sum of even index binomial coefficients
  681. Modulus of two float or double numbers
  682. Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + . . . + n
  683. Sum of all the factors of a number
  684. Check whether a number is semiprime or not
  685. Modular multiplicative inverse from 1 to n
  686. Maximum sum of elements from each row in the matrix
  687. Program for Mobius Function
  688. Program for Volume and Surface area of Frustum of Cone
  689. Program to find area of a Circular Segment
  690. Add two numbers represented by two arrays
  691. Maximum in array which is at-least twice of other elements
  692. Program to calculate value of nCr
  693. Find the perimeter of a cylinder
  694. Program for Stair Case Patterns
  695. Maximum absolute difference of value and index sums
  696. Program to print diagonal star patterns
  697. Number of local extrema in an array
  698. C Program for Find the perimeter of a cylinder
  699. Program to calculate area of a Tetrahedron
  700. K maximum sums of non-overlapping contiguous sub-arrays
  701. Given 1's, 2's, 3's ......k's print them in zig zag way.
  702. Program to convert speed in km/hr to m/sec and vice versa
  703. Check if a given string is made up of two alternating characters
  704. Program to calculate area and perimeter of equilateral triangle
  705. Program to calculate Area Of Octagon
  706. Count frequency of k in a matrix of size n where matrix(i, j) = i+j
  707. Program to convert temperature from degree Celsius to Kelvin
  708. Program to check if N is a Pentagonal Number
  709. Program to find century for a year
  710. Pythagorean Quadruple
  711. K-th digit in 'a' raised to power 'b'
  712. Number of horizontal or vertical line segments to connect 3 points
  713. Sum of square of first n even numbers
  714. Sum of square of first n odd numbers
  715. Check for possible path in 2D matrix
  716. Average of odd numbers till a given odd number
  717. Average of even numbers till a given even number
  718. Find minimum moves to reach target on an infinite line
  719. Find number of pairs in an array such that their XOR is 0
  720. Count of different straight lines with total n points with m collinear
  721. Count square and non-square numbers before n
  722. Maximum subarray sum in O(n) using prefix sum
  723. Making elements distinct in a sorted array by minimum increments
  724. Program for Coefficient of variation
  725. Skewness of statistical data
  726. Centered hexagonal number
  727. Find if neat arrangement of cups and shelves can be made
  728. Find the minimum time after which one can exchange notes
  729. Counting even decimal value substrings in a binary string
  730. Check for Amicable Pair
  731. First uppercase letter in a string (Iterative and Recursive)
  732. Check if the given number K is enough to reach the end of an array
  733. Consecutive steps to roof top
  734. Power of a lens
  735. Program for centered nonagonal number
  736. Program to find covariance
  737. Time required to meet in equilateral triangle
  738. Program for class interval arithmetic mean
  739. Number of unmarked integers in a special sieve
  740. Print intermediate values in an array
  741. Number of Symmetric Relations on a Set
  742. Largest number that is not a perfect square
  743. Sum of XOR of all pairs in an array
  744. Sum of the alphabetical values of the characters of a string
  745. Minimum moves to reach target on a infinite line | Set 2
  746. Program to calculate GST from original and net prices
  747. Program to calculate volume of Octahedron
  748. Program for focal length of a lens
  749. Find speed of man from speed of stream and ratio of time with up and down streams
  750. Minimum array size after repeated replacement of even sum pair with sum
  751. Program for Surface Area of Octahedron
  752. Area of a square from diagonal length
  753. Average of Squares of Natural Numbers
  754. Minimum sum of multiplications of n numbers
  755. Program to implement standard deviation of grouped data
  756. Nonagonal number
  757. Minimum number of mails required to distribute all the questions
  758. Sum of all subsequences of a number
  759. Find an array element such that all elements are divisible by it
  760. Area of a Hexagon
  761. Frequencies of even and odd numbers in a matrix
  762. Last duplicate element in a sorted array
  763. Area of a Circumscribed Circle of a Square
  764. Calculate Volume of Dodecahedron
  765. Sorting array with conditional swapping
  766. Sum of largest divisible powers of p (a prime number) in a range
  767. Find final value if we double after every successful search in array
  768. C Program for Decimal to Binary Conversion
  769. Program to calculate area of Enneagon
  770. Completion time of a given process in round robin
  771. Pairs such that one is a power multiple of other
  772. Minimum Swaps required to group all 1's together
  773. Sum of middle row and column in Matrix
  774. Find all possible triangles with XOR of sides zero
  775. Program for Surface area of Dodecahedron
  776. Area of square Circumscribed by Circle
  777. Check whether a given matrix is orthogonal or not
  778. Check if it is possible to survive on Island
  779. Program to find the Area of Pentagon
  780. Check if the given two numbers are friendly pair or not
  781. Numbers having difference with digit sum more than s
  782. Squares of Matrix Diagonal Elements
  783. Largest number in [2, 3, .. n] which is co-prime with numbers in [2, 3, .. m]
  784. Finding the vertex, focus and directrix of a parabola
  785. Print uncommon elements from two sorted arrays
  786. Find N Geometric Means between A and B
  787. Sum of series with alternate signed squares of AP
  788. Sum of the series 1.2.3 + 2.3.4 + ... + n(n+1)(n+2)
  789. Most frequent element in an array
  790. Count n digit numbers divisible by given number
  791. Print a given matrix in counter-clock wise spiral form
  792. Sum of n digit numbers divisible by a given number
  793. Recursive sum of digits of a number formed by repeated appends
  794. Find value of (n^1 + n^2 + n^3 + n^4) mod 5 for given n
  795. Program to print binomial expansion series
  796. Find N Arithmetic Means between A and B
  797. Number of jump required of given length to reach a point of form (d, 0) from origin in 2D plane
  798. Number of subarrays with given product
  799. Find n-th Fortunate Number
  800. Invert actual bits of a number
  801. Coordinates of rectangle with given points lie inside
  802. Pythagorean Triplet with given sum
  803. Find the winner in nim-game
  804. Minimum adjacent swaps required to Sort Binary array
  805. Number of indexes with equal elements in given range
  806. Smallest even digits number not less than N
  807. Largest even digit number not greater than N
  808. Reverse Diagonal elements of matrix
  809. Find sum of all nodes of the given perfect binary tree
  810. Nicomachu's Theorem
  811. Stella Octangula Number
  812. Number of subarrays with m odd numbers
  813. Sum of product of each element with each element after it
  814. Maximum Perimeter Triangle from array
  815. Size of The Subarray With Maximum Sum
  816. Decimal Equivalent of Gray Code and its Inverse
  817. Smallest greater elements in whole array
  818. Finding a Non Transitive Coprime Triplet in a Range
  819. Number of loops of size k starting from a specific node
  820. Find largest d in array such that a + b + c = d
  821. Leftover element after performing alternate Bitwise OR and Bitwise XOR operations on adjacent pairs
  822. Split array in three equal sum subarrays
  823. Generate a list of n consecutive composite numbers (An interesting method)
  824. Check whether a very large number of the given form is a multiple of 3.
  825. Maximum possible difference of two subsets of an array
  826. Check whether a number is Emirpimes or not
  827. Odd numbers in N-th row of Pascal's Triangle
  828. Number of substrings of a string
  829. Moser-de Bruijn Sequence
  830. Hardy-Ramanujan Theorem
  831. Ways to multiply n elements with an associative operation
  832. Find array elements that are greater than average
  833. Combinatorics on ordered trees
  834. Count elements which divide all numbers in range L-R
  835. Find ceil of a/b without using ceil() function
  836. Maximum equlibrium sum in an array
  837. Maximum height of triangular arrangement of array values
  838. Program to check if the points are parallel to X axis or Y axis
  839. Slope of perpendicular to line
  840. Trick for modular division ( (x1 * x2 .... xn) / b ) mod (m)
  841. Maximize a value for a semicircle of given radius
  842. Program to print the hollow numerical parallelogram
  843. Find n-variables from n sum equations with one missing
  844. Segregate even and odd numbers | Set 3
  845. Counting values greater than equal to x after increments
  846. Sum of Areas of Rectangles possible for an array
  847. Count of divisors having more set bits than quotient on dividing N
  848. Bisymmetric matrix
  849. Sum of bitwise AND of all possible subsets of given set
  850. Cake number
  851. Dodecagonal number
  852. Max sum of M non-overlapping subarrays of size K
  853. Generate n-bit Gray Codes | Set 2
  854. Centrosymmetric Matrix
  855. Number of ways to merge two arrays such retaining order
  856. Maximum profit from sale of wines
  857. Prefixes with more a than b
  858. Find maximum and minimum distance between magnets
  859. Dodecahedral number
  860. Centered tetrahedral number
  861. Centered heptagonal number
  862. Check if a given matrix is Hankel or not
  863. Program for Centered Icosahedral Number
  864. Centered Square Number
  865. Sum of square-sums of first n natural numbers
  866. Reflection of a point at 180 degree rotation of another point
  867. Centered pentagonal number
  868. Sum of series 1*1*2! + 2*2*3! + ……..+ n*n*(n+1)!
  869. Tiling with Dominoes
  870. Print Fibonacci sequence using 2 variables
  871. Number of ways to form an array with distinct adjacent elements
  872. Program to print pattern
  873. Find value of k-th bit in binary representation
  874. Forming smallest array with given constraints
  875. Hexadecagonal number
  876. Find the other-end coordinates of diameter in a circle
  877. Range query for count of set bits
  878. Heptadecagonal number
  879. Triplets in array with absolute difference less than k
  880. Pentatope number
  881. Sum of series 1*1! + 2*2! + ……..+ n*n!
  882. N/3 repeated number in an array with O(1) space
  883. Construct an array from GCDs of consecutive elements in given array
  884. Centered Octagonal Number
  885. Optimal Storage on Tapes
  886. Lexicographically Kth smallest way to reach given coordinate from origin
  887. Construct array having X subsequences with maximum difference smaller than d
  888. Number whose XOR sum with given array is a given number k
  889. n-th term of series 1, 17, 98, 354......
  890. Number of arrays of size N whose elements are positive integers and sum is K
  891. Number of Transpositions in a Permutation
  892. Ways to choose three points with distance between the most distant points <= L
  893. Program to convert centimeter into meter and kilometer
  894. Find n terms of Fibonacci type series with given first two terms
  895. Finding Quadrant of a Coordinate with respect to a Circle
  896. Centered tridecagonal number
  897. Number expressed as sum of five consecutive integers
  898. Sum of product of r and rth Binomial Coefficient (r * nCr)
  899. Number of digits in N factorial to the power N
  900. Minimum value of "max + min" in a subarray
  901. Word Wrap problem ( Space optimized solution )
  902. Check if three straight lines are concurrent or not
  903. Program to print numeric pattern
  904. Check if strings are rotations of each other or not | Set 2
  905. Convert the array such that the GCD of the array becomes 1
  906. Find the mean vector of a Matrix
  907. Queries on number of Binary sub-matrices of Given size
  908. Closest product pair in an array
  909. Maximum product quadruple (sub-sequence of size 4) in array
  910. Subtract 1 without arithmetic operators
  911. XOR of Sum of every possible pair of an array
  912. Pentagonal Pyramidal Number
  913. Subsequence of size k with maximum possible GCD
  914. Find the GCD that lies in given range
  915. Largest gap in an array
  916. Hilbert Matrix
  917. Check whether a point lies inside a sphere or not
  918. Check if mirror image of a number is same if displayed in seven segment display
  919. Print concentric rectangular pattern in a 2d matrix
  920. Maximum value in a matrix which contain intersecting concentric submatrix
  921. Program to compare m^n and n^m
  922. Sum of product of consecutive Binomial Coefficients
  923. Number of distinct prime factors of first n natural numbers
  924. Heptagonal number
  925. Maximise the number of toys that can be purchased with amount K
  926. Make array elements equal in Minimum Steps
  927. Longest Decreasing Subsequence
  928. Check if a string has m consecutive 1's or 0's
  929. Number with set bits only between L-th and R-th index
  930. Program to find LCM of 2 numbers without using GCD
  931. Number of refills to complete the journey of N km
  932. Minimum adjacent swaps to move maximum and minimum to corners
  933. Number which has the maximum number of distinct prime factors in the range M to N
  934. Find the smallest positive number missing from an unsorted array | Set 2
  935. Duplicates in an array in O(n) time and by using O(1) extra space | Set-3
  936. Check if X can give change to every person in the Queue
  937. Number of squares of maximum area in a rectangle
  938. Maximum Product Subarray | Set 3
  939. Recursive program to check if number is palindrome or not
  940. Program to print the berth of given railway seat number
  941. Different ways to represent N as sum of K non-zero integers
  942. Program to find the Area of an Ellipse
  943. Sum of the series 3, 20, 63, 144, ......
  944. Maximize the number of segments of length p, q and r
  945. Degree of a Cycle Graph
  946. Number of sequences which has HEAD at alternate positions to the right of the first HEAD
  947. Surface Area and Volume of Hexagonal Prism
  948. Number of rectangles in a circle of radius R
  949. Bitwise OR (or | ) of a range
  950. Minimum positive integer required to split the array equally
  951. Minimum product in a grid of adjacent elements
  952. Number of triangles in a plane if no more than two points are collinear
  953. Check if a M-th fibonacci number divides N-th fibonacci number
  954. Find i’th index character in a binary string obtained after n iterations | Set 2
  955. Find (a^b)%m where 'b' is very large
  956. Number of odd and even results for every value of x in range [min, max] after performing N steps
  957. Program to calculate area of an Circle inscribed in a Square
  958. Nth non-Square number
  959. Sum of array elements excluding the elements which lie between a and b
  960. Find three integers less than or equal to N such that their LCM is maximum
  961. Print all prime numbers less than or equal to N
  962. Sort an array where a subarray of a sorted array is in reverse order
  963. Length of longest consecutive zeroes in the binary representation of a number.
  964. Program to find the nth Kynea number
  965. Area of circle inscribed within rhombus
  966. C Program to Compute Quotient and Remainder
  967. Minimum changes required to make two arrays identical
  968. Product of 2 numbers using recursion | Set 2
  969. Largest square that can be inscribed in a semicircle
  970. Matrix Chain Multiplication (A O(N^2) Solution)
  971. Ratio of mth and nth terms of an A. P. with given ratio of sums
  972. Find the Nth term of the series 2 + 6 + 13 + 23 + . . .
  973. Program to find Nth term of the series 3 , 5 , 21 , 51 , 95 , ...
  974. Program to find the sum of the series 23+ 45+ 75+..... upto N terms
  975. Check if any square (with one colored cell) can be divided into two equal parts
  976. Sum of the first N terms of the series 5,12, 23, 38....
  977. Sum of the first N terms of the series 2,10, 30, 68,....
  978. Number of unique permutations starting with 1 of a Binary String
  979. Find the altitude and area of an isosceles triangle
  980. Program to find the surface area of the square pyramid
  981. Program to find Nth term of series 0, 7, 18, 33, 51, 75, 102, 133, .....
  982. Program to find Nth term of series 0, 11, 28, 51, 79, 115, 156, 203, ....
  983. Number of different positions where a person can stand
  984. Sum of all Primes in a given range using Sieve of Eratosthenes
  985. Program for n-th even number
  986. Circumradius of the rectangle
  987. Program to find minimum number of lectures to attend to maintain 75%
  988. Program to find volume and surface area of pentagonal prism
  989. Number of solutions of n = x + n ⊕ x
  990. Divide an isosceles triangle in two parts with ratio of areas as n:m
  991. Check if a number is Quartan Prime or not
  992. Next greater number than N with exactly one bit different in binary representation of N
  993. Sum of first N natural numbers by taking powers of 2 as negative number
  994. Check if it is possible to move from (a, 0) to (b, 0) with given jumps
  995. Product of all primes in the range from L to R
  996. Area of circle which is inscribed in equilateral triangle
  997. Program to find the Nth term of series 5, 12, 21, 32, 45......
  998. Check if it is possible to sort the array after rotating it
  999. Find N digits number which is divisible by D
  1000. Minimum value possible of a given function from the given set
  1001. Find the value of max(f(x)) - min(f(x)) for a given F(x)
  1002. Program to find the Circumcircle of any regular polygon
  1003. Program to find the angles of a quadrilateral
  1004. Number of solutions for the equation x + y + z <= n
  1005. Sum of all the elements in an array divisible by a given number K
  1006. Generate a number such that the frequency of each digit is digit times the frequency in given number
  1007. Sum of lengths of all 12 edges of any rectangular parallelepiped
  1008. Maximize number of nodes which are not part of any edge in a Graph
  1009. Value of the series (1^3 + 2^3 + 3^3 + ... + n^3) mod 4 for a given n
  1010. Number of mismatching bits in the binary representation of two integers
  1011. Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ..... upto n terms
  1012. Program to find the Area of a Parallelogram
  1013. Product of all pairwise consecutive elements in an Array
  1014. Seating arrangement of n boys and girls alternatively around a round table
  1015. Program to Calculate the Perimeter of a Decagon
  1016. Find length of Diagonal of Hexagon
  1017. Sum and Product of minimum and maximum element of an Array
  1018. Calculate Stirling numbers which represents the number of ways to arrange r objects around n different circles
  1019. Number of permutations of a string in which all the occurrences of a given character occurs together
  1020. Problems not solved at the end of Nth day
  1021. Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
  1022. Check whether the vowels in a string are in alphabetical order or not
  1023. Program to find the Area and Perimeter of a Semicircle
  1024. Number of segments where all elements are greater than X
  1025. Count subarrays with all elements greater than K
  1026. Number of triangles formed from a set of points on three lines
  1027. Program to calculate area and perimeter of a rhombus whose diagonals are given
  1028. Smallest number greater than or equal to N divisible by K
  1029. Largest number not greater than N all the digits of which are odd
  1030. Partition an array such into maximum increasing segments
  1031. Find if array has an element whose value is half of array sum
  1032. GCD of a number raised to some power and another number
  1033. Farthest distance of a 0 from the center of a 2-D matrix
  1034. Minimum cuts required to divide the Circle into equal parts
  1035. Find the count of Strictly decreasing Subarrays
  1036. Smallest subarray such that all elements are greater than K
  1037. Count pieces of circle after N cuts
  1038. Check whether product of digits at even places is divisible by sum of digits at odd place of a number
  1039. Fibonacci problem (Value of Fib(N)*Fib(N) - Fib(N-1) * Fib(N+1))
  1040. Find the number of primitive roots modulo prime
  1041. Find the index of the left pointer after possible moves in the array
  1042. Count pairs of numbers from 1 to N with Product divisible by their Sum
  1043. Check if a number is formed by Concatenation of 1, 14 or 144 only
  1044. Program to convert given Matrix to a Diagonal Matrix
  1045. Partiton N into M parts such that difference between Max and Min part is smallest
  1046. Longest rod that can be inserted within a right circular cylinder
  1047. Sum of the digits of a number N written in all bases from 2 to N/2
  1048. Radii of the three tangent circles of equal radius which are inscribed within a circle of given radius
  1049. Minimum sum of the elements of an array after subtracting smaller elements from larger
  1050. Find a point that lies inside exactly K given squares
  1051. Find sum of a number and its maximum prime factor
  1052. Add N digits to A such that it is divisible by B after each addition
  1053. Number of moves required to guess a permutation.
  1054. Find a range that covers all the elements of given N ranges
  1055. Fill missing entries of a magic square
  1056. Find the intersection of two Matrices
  1057. Maximum number with same digit factorial product
  1058. Find Bit whose minimum sequence flips makes all bits same
  1059. Largest right circular cylinder within a frustum
  1060. Largest right circular cylinder within a cube
  1061. Find the element whose multiplication with -1 makes array sum 0
  1062. Sum of the multiples of two numbers below N
  1063. Sort the array in a given index range
  1064. Minimum absolute difference of a number and its closest prime
  1065. Summing the sum series
  1066. Closest perfect square and its distance
  1067. Average of remaining elements after removing K largest and K smallest elements from array
  1068. Smallest subarray containing minimum and maximum values
  1069. Largest Square that can be inscribed within a hexagon
  1070. Generate elements of the array following given conditions
  1071. Sum of kth powers of first n natural numbers
  1072. Find elements of array using XOR of consecutive elements
  1073. Find an integer X which is divisor of all except exactly one element in an array
  1074. Find probability that a player wins when probabilities of hitting the target are given
  1075. Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle
  1076. Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
  1077. Largest right circular cone that can be inscribed within a sphere which is inscribed within a cube
  1078. Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
  1079. Program to check if a number is divisible by sum of its digits
  1080. Check if possible to shuffle a matrix with adjacent movements
  1081. Sum of all Submatrices of a Given Matrix
  1082. Given number of matches played, find number of teams in tournament
  1083. Find the side of the squares which are inclined diagonally and lined in a row
  1084. Maximum number of people that can be killed with strength P
  1085. Convert given integer X to the form 2^N - 1
  1086. 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
  1087. Minimum integer such that it leaves a remainder 1 on dividing with any element from the range [2, N]
  1088. Count Pairs from two arrays with even sum
  1089. Check whether product of integers from a to b is positive , negative or zero
  1090. Create a sequence whose XOR of elements is y
  1091. Check if the number is even or odd whose digits and base (radix) is given
  1092. Optimal Strategy for a Game | Set 2
  1093. Check whether a number can be represented as sum of K distinct positive integers
  1094. Number of edges in mirror image of Complete binary tree
  1095. Queries to find the maximum Xor value between X and the nodes of a given level of a perfect binary tree
  1096. Find the index which is the last to be reduced to zero after performing a given operation
  1097. Generate two BSTs from the given array such that maximum height among them is minimum
  1098. Find the sum of numbers from 1 to n excluding those which are powers of K
  1099. Multiply a number by 15 without using * and / operators
  1100. Check if the given matrix is increasing row and column wise
  1101. Check if the given Prufer sequence is valid or not
  1102. Count of all possible values of X such that A % X = B
  1103. Exterior angle of a cyclic quadrilateral when the opposite interior angle is given
  1104. Angle between a chord and a tangent when angle in the alternate segment is given
  1105. Minimize the sum after choosing elements from the given three arrays
  1106. Count of cells in a matrix which give a Fibonacci number when the count of adjacent cells is added
  1107. Program to find the number of men initially
  1108. Maximum sum in an array such that every element has exactly one adjacent element to it
  1109. Subset with sum closest to zero
  1110. Count number of ways to divide an array into two halves with same sum
  1111. Number of subsets with zero sum
  1112. Check if each element of the given array is the product of exactly K prime numbers
  1113. Find maximum topics to prepare in order to pass the exam
  1114. Find the original coordinates whose Manhattan distances are given
  1115. Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
  1116. Length of the perpendicular bisector of the line joining the centers of two circles
  1117. Find the sum of the ascii values of characters which are present at prime positions
  1118. Queries to check whether all the elements can be made positive by flipping signs exactly K times
  1119. Find a way to fill matrix with 1's and 0's in blank positions
  1120. Maximum distance between two unequal elements
  1121. Maximum subset sum such that no two elements in set have same digit in them
  1122. Longest sub-sequence that satisfies the given conditions
  1123. Partition first N natural number into two sets such that their sum is not coprime
  1124. Find the radii of the circles which are lined in a row, and distance between the centers of first and last circle is given
  1125. Find the side of the squares which are lined in a row, and distance between the centers of first and last square is given
  1126. Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
  1127. Compress the array into Ranges
  1128. Minimum deletions required to make GCD of the array equal to 1
  1129. Check whether it is possible to convert A into B
  1130. Maximum previous and next element product
  1131. Percentage increase in the cylinder if the height is increased by given percentage but radius remains constant
  1132. Percentage increase in volume of the cube if a side of cube is increased by a given percentage
  1133. Percentage increase in volume of the sphere if radius is increased by a given percentage
  1134. Smallest number greater or equals to N such that it has no odd positioned bit set
  1135. Find a subarray whose sum is divisible by size of the array
  1136. Program to calculate the area of Kite
  1137. Smallest perfect cube in an array
  1138. Find the number of paths of length K in a directed graph
  1139. Longest sub-array with equal number of alphabets and numeric characters
  1140. Check if it is possible to redistribute the Array
  1141. Number formed by the rightmost set bit in N
  1142. Longest Subarray having strictly positive XOR
  1143. Decimal to Binary using recursion and without using power operator
  1144. Minimum and maximum possible length of the third side of a triangle
  1145. Find the volume of rectangular right wedge
  1146. Find minimum possible values of A, B and C when two of the (A + B), (A + C) and (B + C) are given
  1147. Find the height of a right-angled triangle whose area is X times its base
  1148. Arrange N elements in circular fashion such that all elements are strictly less than sum of adjacent elements
  1149. Count of N digit numbers possible which satisfy the given conditions
  1150. Sum of all second largest divisors after splitting a number into one or more parts