Mithun Kumar
Mithun Kumar
  1. C# | Substring() Method
  2. C# | IndexOfAny() Method
  3. Product of maximum in first array and minimum in second
  4. Find first and last digits of a number
  5. C# | IsNullOrEmpty() Method
  6. PHP str_pad to print string patterns
  7. PHP programs for printing pyramid patterns
  8. Python | Difference between iterable and iterator
  9. Setting up the environment in C#
  10. Comments in C#
  11. C# | PadRight() Method
  12. C# | Constructors
  13. Check if a binary string contains all permutations of length k
  14. PHP | gmp_mul() Function
  15. C# | ToLower() Method
  16. C# | ToUpper() Method
  17. C# | Copy() Method
  18. PHP | empty() Function
  19. C# | CopyTo() Method
  20. PHP | is_scalar() Function
  21. PHP | is_null() Function
  22. C# | Trim() Method
  23. PHP | is_callable() Function
  24. PHP | gettype() Function
  25. C# | TrimStart() and TrimEnd() Method
  26. C# | Remove() Method
  27. C# | Replace() Method
  28. C# | Insert() Method
  29. PHP | create_function() Function
  30. PHP | call_user_func() Function
  31. C# | Clone() Method
  32. PHP | ctype_punct() Function
  33. C# | String Properties
  34. PHP | ctype_cntrl() Function
  35. C# | IsNullOrWhiteSpace() Method
  36. C# | ToCharArray() Method
  37. C# | String
  38. C# | Interface
  39. C# | this Keyword
  40. C# | PadLeft() Method
  41. PHP | IntlChar::iscntrl() Function
  42. C# | Properties
  43. C# | Math.Sqrt() Method
  44. PHP | IntlChar::isprint() Function
  45. PHP | IntlChar::isupper() Function
  46. PHP | IntlChar::islower() Function
  47. PHP | IntlChar::isxdigit() Function
  48. PHP | IntlChar::ispunct() Function
  49. PHP | IntlChar::isspace() Function
  50. C# | String.Contains() Method
  51. C# | Math.Atan() Method
  52. C# | Math.Atan2() Method
You may use GeeksforGeeks CONTRIBUTE portal to help other geeks. For more info, please refer this.

  1. Count digits in a factorial | Set 2
  2. Remove characters from the first string which are present in the second string
  3. Write a program to reverse digits of a number
  4. Program to find whether a no is power of two
  5. Power Set
  6. Ugly Numbers
  7. Right-Truncatable Prime
  8. Write a program to print all permutations of a given string
  9. Minimum number of jumps to reach end
  10. Count set bits in an integer
  11. Count number of bits to be flipped to convert A to B
  12. Given a string, find its first non-repeating character
  13. Compute the minimum or maximum of two integers without branching
  14. Compute the integer absolute value (abs) without branching
  15. Babylonian method for square root
  16. Print all combinations of balanced parentheses
  17. Multiply two integers without using multiplication, division and bitwise operators, and no loops
  18. Find whether a given number is a power of 4 or not
  19. Print all combinations of points that can compose a given number
  20. Count of Binary Digit numbers smaller than N
  21. Find the two repeating elements in a given array
  22. Find Union and Intersection of two unsorted arrays
  23. Evaluation order of operands
  24. Program for Fibonacci numbers
  25. Next higher number with same number of set bits
  26. Check if a number is multiple of 5 without using / and % operators
  27. The Knight's tour problem | Backtracking-1
  28. Smallest of three integers without comparison operators
  29. Min Cost Path | DP-6
  30. Average of a stream of numbers
  31. Print all sequences of given length
  32. Coin Change | DP-7
  33. Binomial Coefficient | DP-9
  34. Hamiltonian Cycle | Backtracking-6
  35. Find a triplet that sum to a given value
  36. Palindrome Partitioning | DP-17
  37. Count numbers that don't contain 3
  38. Magic Square
  39. Sieve of Eratosthenes
  40. Find day of the week for a given date
  41. Given a number, find the next smallest palindrome
  42. Chinese Remainder Theorem | Set 1 (Introduction)
  43. Find the element that appears once
  44. Shuffle a given array using Fisher–Yates shuffle Algorithm
  45. Reservoir Sampling
  46. Pascal's Triangle
  47. Select a random number from stream, with O(1) space
  48. Program to find amount of water in a given glass
  49. Program to convert a given number to words
  50. Counting Sort
  51. Find position of the only set bit
  52. Check if a number is Palindrome
  53. Minimum insertions to form a palindrome | DP-28
  54. Dice Throw | DP-30
  55. Print all possible combinations of r elements in a given array of size n
  56. Count digits in given number N which divide N
  57. How to check if a given number is Fibonacci number?
  58. Count all possible groups of size 2 or 3 that have sum as multiple of 3
  59. Remove minimum elements from either side such that 2*min becomes more than max
  60. Smallest subarray with sum greater than a given value
  61. Horner's Method for Polynomial Evaluation
  62. Count Possible Decodings of a given Digit Sequence
  63. Find n'th number in a number system with only 3 and 4
  64. Print all increasing sequences of length k from first n natural numbers
  65. Minimize Cash Flow among a given set of friends who have borrowed money from each other
  66. Find maximum depth of nested parenthesis in a string
  67. Compute n! under modulo p
  68. Count inversions in an array | Set 3 (Using BIT)
  69. Program for Rank of Matrix
  70. Euler's Totient Function
  71. Shortest Common Supersequence
  72. Converting a Real Number (between 0 and 1) to Binary String
  73. Count of n digit numbers whose sum of digits equals to given sum
  74. Print string of odd length in 'X' format
  75. Find all possible outcomes of a given expression
  76. Longest Repeating Subsequence
  77. Count even length binary sequences with same sum of first and second half bits
  78. Modular Exponentiation (Power in Modular Arithmetic)
  79. Find Next Sparse Number
  80. Find the most frequent digit without using array/string
  81. Segmented Sieve
  82. Sum of all elements between k1'th and k2'th smallest elements
  83. Find the smallest twins in given range
  84. Count number of squares in a rectangle
  85. Print all Good numbers in given range
  86. Fibonacci Search
  87. Compute nCr % p | Set 2 (Lucas Theorem)
  88. Chinese Remainder Theorem | Set 2 (Inverse Modulo based Implementation)
  89. Primality Test | Set 3 (Miller–Rabin)
  90. Gaussian Elimination to Solve Linear Equations
  91. Count minimum steps to get the given desired array
  92. Sieve of Sundaram to print all primes smaller than n
  93. Farey Sequence
  94. How to avoid overflow in modular multiplication?
  95. Find all divisors of a natural number | Set 2
  96. Modular Division
  97. Exactly n distinct prime factor numbers from a to b
  98. Gray to Binary and Binary to Gray conversion
  99. Frobenius coin problem
  100. Convert from any base to decimal and vice versa
  101. Count numbers having 0 as a digit
  102. Matrix Exponentiation
  103. Volume of cube using its space diagonal
  104. Ways to arrange Balls such that adjacent balls are of different types
  105. Check if a number is a power of another number
  106. Find Square Root under Modulo p | Set 2 (Shanks Tonelli algorithm)
  107. Fifth root of a number
  108. Combinatorial Game Theory | Set 4 (Sprague - Grundy Theorem)
  109. Compute (a*b)%c such that (a%c) * (b%c) can be beyond range
  110. Kaprekar Constant
  111. Maximum product of a triplet (subsequnece of size 3) in array
  112. Maximum profit by buying and selling a share at most k times
  113. Find all combinations that add upto given number
  114. Find the minimum difference between Shifted tables of two numbers
  115. Convert min Heap to max Heap
  116. Sum of Fibonacci Numbers
  117. Find Cube Pairs | Set 2 (A n^(1/3) Solution)
  118. Program to add two fractions
  119. Code to generate the map of India (with explanation)
  120. Count digits in a factorial | Set 1
  121. Program to convert a given number to words | Set 2
  122. Roots of Unity
  123. Almost Prime Numbers
  124. Dynamic Programming | High-effort vs. Low-effort Tasks Problem
  125. Palindromic Primes
  126. Find all even length binary sequences with same sum of first and second half bits
  127. Floor in a Sorted Array
  128. GCD of two numbers when one of them can be very large
  129. N'th Smart Number
  130. Count Divisors of Factorial
  131. Multiples of 3 or 7
  132. Find the minimum value of m that satisfies ax + by = m and all values after m also satisfy
  133. Print all prime factors and their powers
  134. LCM of First n Natural Numbers
  135. Breaking an Integer to get Maximum Product
  136. Bakhshali Approximation for computing square roots
  137. Happy Number
  138. GCD and Fibonacci Numbers
  139. Count ways to spell a number with repeated digits
  140. Count number of solutions of x^2 = 1 (mod p) in given range
  141. Repeated subtraction among two numbers
  142. Equal Sum and XOR
  143. Smallest number divisible by first n numbers
  144. Nearest prime less than given number n
  145. Construct a unique matrix n x n for an input n
  146. Remainder with 7 for large numbers
  147. Count All Palindromic Subsequence in a given String
  148. Recursively break a number in 3 parts to get maximum sum
  149. Smallest number by rearranging digits of a given number
  150. Keith Number
  151. Kaprekar Number
  152. Smith Number
  153. Maximum sum of pairs with specific difference
  154. Emirp numbers
  155. Count numbers which can be constructed using two numbers
  156. Equidigital Numbers
  157. Maximum subsequence sum such that no three are consecutive
  158. Print matrix in diagonal pattern
  159. Number of possible Triangles in a Cartesian coordinate system
  160. Primorial of a number
  161. Find bitonic point in given bitonic sequence
  162. Circular primes less than n
  163. Number of sextuplets (or six values) that satisfy an equation
  164. Find the highest occurring digit in prime numbers in a range
  165. Nth character in Concatenated Decimal String
  166. Find sum of modulo K of first N natural number
  167. Mersenne Prime
  168. Super Prime
  169. Program for Chocolate and Wrapper Puzzle
  170. Highest power of 2 less than or equal to given number
  171. Check if all rows of a matrix are circular rotations of each other
  172. Check if two strings are k-anagrams or not
  173. Printing Heart Pattern in C
  174. Program for Perrin numbers
  175. LCS (Longest Common Subsequence) of three strings
  176. Sieve of Eratosthenes in 0(n) time complexity
  177. Smallest number with at least n digits in factorial
  178. Double factorial
  179. Partition a number into two divisble parts
  180. K-th smallest element after removing some integers from natural numbers
  181. k-th prime factor of a given number
  182. Queries on substring palindrome formation
  183. Sum of product of x and y such that floor(n/x) = y
  184. N-th multiple in sorted list of multiples of two numbers
  185. Maximum and minimum sums from two numbers with digit replacements
  186. Friends Pairing Problem
  187. N-th root of a number
  188. Probability of getting at least K heads in N tosses of Coins
  189. Count binary strings with k times appearing adjacent two set bits
  190. Generation of n numbers with given set of factors
  191. Find coordinates of the triangle given midpoint of each side
  192. Queries on the sum of prime factor counts in a range
  193. Largest subsequence having GCD greater than 1
  194. Program to find Normal and Trace of a matrix
  195. Program for Goldbach’s Conjecture (Two Primes with given Sum)
  196. Number with maximum number of prime factors
  197. Seeds (Or Seed Roots) of a number
  198. Summation of GCD of all the pairs up to N
  199. Prime Factorization using Sieve O(log n) for multiple queries
  200. Ways to represent a number as a sum of 1's and 2's
  201. Count all perfect divisors of a number
  202. Sum of two large numbers
  203. Find largest word in dictionary by deleting some characters of given string
  204. N'th palindrome of K digits
  205. Number Theory | Generators of finite cyclic group under addition
  206. Difference of two large numbers
  207. Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
  208. Find longest sequence of 1's in binary representation with one flip
  209. Count substrings with same first and last characters
  210. Character replacement after removing duplicates from a string
  211. Lexicographically first palindromic string
  212. Minimum swaps to reach permuted array with at most 2 positions left swaps allowed
  213. Count smaller values whose XOR with x is greater than x
  214. Convert decimal fraction to binary number
  215. Check if frequency of each digit is less than the digit
  216. Count Divisors of n in O(n^1/3)
  217. Count pairs with sum as a prime number and less than n
  218. Largest number smaller than or equal to n and digits in non-decreasing order
  219. Finding LCM of more than two (or array) numbers without using GCD
  220. Window Sliding Technique
  221. Find if n can be written as product of k numbers
  222. Nth Square free number
  223. Programs to print Interesting Patterns
  224. Smallest length string with repeated replacement of two distinct adjacent
  225. Number of occurrences of 2 as a digit in numbers from 0 to n
  226. Program to find second most frequent character
  227. Solving f(n)= (1) + (2*3) + (4*5*6) ... n using Recursion
  228. Program to print a pattern of numbers
  229. Program to print pyramid pattern
  230. Program to evaluate simple expressions
  231. Find the number of valid parentheses expressions of given length
  232. Replace all ‘0’ with ‘5’ in an input Integer
  233. Perfect Number
  234. Program to add two binary strings
  235. Find if a point lies inside a Circle
  236. Divide number into two parts divisible by given numbers
  237. Doolittle Algorithm : LU Decomposition
  238. Pandigital number in a given base
  239. Binary representation of next number
  240. Given a number n, find the first k digits of n^n
  241. Generate all rotations of a given string
  242. Date after adding given number of days to the given date
  243. Sort an array after applying the given equation
  244. K-th Element of Two Sorted Arrays
  245. Primality Test | Set 4 (Solovay-Strassen)
  246. Find the n-th number made of even digits only
  247. Find the closest and smaller tidy number
  248. Interesting facts about Fibonacci numbers
  249. Fill array with 1's using minimum iterations of filling neighbors
  250. Multiple of x closest to n
  251. Sum of divisors of factorial of a number
  252. Find the occurrences of digit d in the range [0..n]
  253. Find numbers with n-divisors in a given range
  254. Minimum positive integer to divide a number such that the result is an odd
  255. Print a given matrix in reverse spiral form
  256. Print a String in wave pattern
  257. Find sum of digits in factorial of a number
  258. Program to calculate the value of sin(x) and cos(x)
  259. Numbers having Unique (or Distinct) digits
  260. Number of integral solutions of the equation x1 + x2 +.... + xN = k
  261. Check if a number N starts with 1 in b-base
  262. Slope of the line parallel to the line with the given slope
  263. Finding 'k' such that its modulus with each array element is same
  264. Print all substring of a number without any conversion
  265. Given GCD G and LCM L, find number of possible pairs (a, b)
  266. Find minimum value to assign all array elements so that array product becomes greater
  267. Divide large number represented as string
  268. Program for quotient and remainder of big number
  269. Finding n-th number made of prime digits (2, 3, 5 and 7) only
  270. Optimized Euler Totient Function for Multiple Evaluations
  271. To check divisibility of any large number by 999
  272. Program for Muller Method
  273. Extract maximum numeric value from a given string | Set 1 (General approach)
  274. Discrete logarithm (Find an integer k such that a^k is congruent modulo b)
  275. Print the pattern by using one loop | Set 2 (Using Continue Statement)
  276. Print the given pattern recursively
  277. Magic Square | Even Order
  278. Fibonacci number in an array
  279. Alternative Sorting
  280. Program for Binary To Decimal Conversion
  281. Divide the two given numbers by their common divisors
  282. Implement *, - and / operations using only + arithmetic operator
  283. Numbers with exactly 3 divisors
  284. Lychrel Number Implementation
  285. Calculating Factorials using Stirling Approximation
  286. Program for Stirling Interpolation Formula
  287. Program for Decimal to Binary Conversion
  288. Program for decimal to octal conversion
  289. Program for decimal to hexadecimal conversion
  290. Program for octal to decimal conversion
  291. Program for hexadecimal to decimal
  292. Program to calculate the number of odd days in given number of years
  293. Finding power of prime number p in n!
  294. Program to print solid and hollow square patterns
  295. Program to print solid and hollow rhombus patterns
  296. Find the last digit of given series
  297. Thue-Morse sequence
  298. Program to find root of an equations using secant method
  299. Josephus Problem Using Bit Magic
  300. Climb n-th stair with all jumps from 1 to n allowed (Three Different Approaches)
  301. Rotate a Matrix by 180 degree
  302. Find pair with maximum GCD in an array
  303. Demlo number (Square of 11...1)
  304. Minimum sum of differences with an element in an array
  305. Longest Prime Subarray after removing one element
  306. Number of N digit integers with weight W
  307. Binomial Random Variables
  308. Permute a string by changing case
  309. Form the largest number using at most one swap operation
  310. Reverse a number using stack
  311. Insert minimum number in array so that sum of array becomes prime
  312. Program to print the sum of the given nth term
  313. Twisted Prime Number
  314. Largest number with the given set of N digits that is divisible by 2, 3 and 5
  315. Minimize cost of operation to equalize tower heights
  316. A product array puzzle | Set 2 (O(1) Space)
  317. An interesting solution to get all prime numbers smaller than n
  318. Given two strings check which string makes a palindrome first
  319. Smallest element in an array that is repeated exactly 'k' times.
  320. Find smallest permutation of given number
  321. Find multiple of x closest to or a ^ b (a raised to power b)
  322. Longest Common Substring in an Array of Strings
  323. Length of the smallest sub-string consisting of maximum distinct characters
  324. Remove three consecutive duplicates from string
  325. Form the smallest number using at most one swap operation
  326. Find the n-th number whose binary representation is a palindrome
  327. Number of digits in the product of two numbers
  328. Balance pans using given weights that are powers of a number
  329. Decimal to binary conversion without using arithmetic operators
  330. Count even and odd digits in an Integer
  331. Program to print binary right angle triangle
  332. Maximum number of unique prime factors
  333. Total number of divisors for a given number
  334. Find n-th element in a series with only 2 digits (4 and 7) allowed | Set 2 (log(n) method)
  335. Binary representation of previous number
  336. Pattern Printing question asked in CGI Coding Round
  337. Hailstone Numbers
  338. Efficiently merging two sorted arrays with O(1) extra space
  339. Program for Next Fit algorithm in Memory Management
  340. Largest proper fraction with sum of numerator and denominator equal to a given number
  341. Find most significant set bit of a number
  342. Count total bits in a number
  343. Check if it is possible to reach vector B by rotating vector A and adding vector C to it
  344. Generate all cyclic permutations of a number
  345. Check if a number is magic (Recursive sum of digits is 1)
  346. Program to print hollow pyramid and diamond pattern
  347. Represent a number as sum of minimum possible psuedobinary numbers
  348. Maximize the binary matrix by filpping submatrix once
  349. Smallest number k such that the product of digits of k is equal to n
  350. Next higher number using atmost one swap operation
  351. Geometric mean (Two Methods)
  352. Prime Number of Set Bits in Binary Representation | Set 2
  353. Permutations to arrange N persons around a circular table
  354. Digit - Product - Sequence
  355. Efficient program to print the number of factors of n numbers
  356. Tribonacci Numbers
  357. Program to count digits in an integer (4 Different Methods)
  358. Decimal representation of given binary string is divisible by 10 or not
  359. Number of subarrays having product less than K
  360. Next higher palindromic number using the same set of digits
  361. Maximum value of |arr[i] - arr[j]| + |i - j|
  362. Queries for counts of multiples in an array
  363. Program to compare two fractions
  364. Reverse actual bits of the given number
  365. Queries to count the number of unordered co-prime pairs from 1 to N
  366. Cyclic Number
  367. Minimum rotations to unlock a circular lock
  368. Number of compositions of a natural number
  369. N expressed as sum of 4 prime numbers
  370. Check if number is palindrome or not in Octal
  371. Happy Numbers
  372. Program to print pyramid pattern
  373. Leonardo Number
  374. Number of subarrays whose minimum and maximum are same
  375. Count divisors of n that have at-least one digit common with n
  376. Newton Forward And Backward Interpolation
  377. Cholesky Decomposition : Matrix Decomposition
  378. 9's complement of a decimal number
  379. Find a number x such that sum of x and its digits is equal to given n.
  380. Smallest x such that 1*n, 2*n, ... x*n have all digits from 1 to 9
  381. Print k numbers where all pairs are divisible by m
  382. Pierpont Prime
  383. Secretary Problem (A Optimal Stopping Problem)
  384. Interquartile Range (IQR)
  385. Given a HUGE number check if it's a power of two.
  386. Program to print a rectangle pattern
  387. Pair with maximum GCD from two arrays
  388. Armstrong Numbers between two integers
  389. Divisible by 37 for large numbers
  390. LCM of digits of a given number
  391. Bessel's Interpolation
  392. Sgn value of a polynomial
  393. Queries to find whether a number has exactly four distinct factors or not
  394. Count Primes in Ranges
  395. Number of steps to convert to prime factors
  396. Double Base Palindrome
  397. Smallest root of the equation x^2 + s(x)*x - n = 0, where s(x) is the sum of digits of root x.
  398. Check if a large number is divisibility by 15
  399. Subsequences of size three in an array whose sum is divisible by m
  400. Co-prime pair with given sum minimum difference
  401. Program for dot product and cross product of two vectors
  402. Print symmetric double triangle pattern
  403. Inner reducing pattern printing
  404. Number of digits to be removed to make a number divisible by 3
  405. Representation of a number in powers of other
  406. Number of visible boxes after putting one inside another
  407. Ways to color a skewed tree such that parent and child have different colors
  408. Prime numbers and Fibonacci
  409. Exponential Squaring (Fast Modulo Multiplication)
  410. Largest number with prime digits
  411. Generate a pythagoras triplet from a single integer
  412. Total no of 1's in numbers
  413. k-th number in the Odd-Even sequence
  414. Check whether a number can be represented by sum of two squares
  415. Program to find last two digits of Nth Fibonacci number
  416. Count different numbers that can be generated such that there digits sum is equal to 'n'
  417. Prime factors of a big number
  418. Find a Number X whose sum with its digits is equal to N
  419. Program to print interesting pattern
  420. Special prime numbers
  421. One line function for factorial of a number
  422. Find the first, second and third minimum elements in an array
  423. Check if a large number is divisible by 13 or not
  424. Find combined mean and variance of two series
  425. Largest number with binary representation is m 1's and m-1 0's
  426. Bitwise Sieve
  427. Number of n digit stepping numbers
  428. Find Harmonic mean using Arithmetic mean and Geometric mean
  429. Program for Identity Matrix
  430. Find the sum of the series 1+11+111+1111+..... upto n terms
  431. Check if a number is divisible by 17 using bitwise operators
  432. Minimum De-arrangements present in array of AP (Arithmetic Progression)
  433. Unset the last m bits
  434. Queries for maximum difference between prime numbers in given ranges
  435. Find trace of matrix formed by adding Row-major and Column-major order of same matrix
  436. Find largest element from array without using conditional operator
  437. Variation in Nim Game
  438. Sum of first n even numbers
  439. Set the Left most unset bit
  440. Leyland Number
  441. Schröder–Hipparchus number
  442. Program to print numbers columns wise
  443. Program to print number pattern
  444. Program to print number with star pattern
  445. Harmonic progression Sum
  446. Sexy Prime
  447. Smallest perfect power of 2 greater than n (without using arithmetic operators)
  448. Program to print alphabet "A" using stars
  449. AKS Primality Test
  450. Print pair with maximum AND value in an array
  451. Count rotations divisible by 8
  452. Quotient and remainder dividing by 2^k (a power of 2)
  453. Smallest integer which has n factors or more
  454. Program to compute division upto n decimal places
  455. Newman–Shanks–Williams prime
  456. Balanced Prime
  457. Program to print reverse character bridge pattern
  458. Count unset bits in a range
  459. Pascal Matrix
  460. Maximum XOR using K numbers from 1 to n
  461. Queries on XOR of XORs of all subarrays
  462. Sum of largest prime factor of each number less than equal to n
  463. Smallest n digit number divisible by given three numbers
  464. Hosoya's Triangle
  465. Program to calculate area and volume of a Tetrahedron
  466. Maximum binomial coefficient term value
  467. Program to print numbers with diamond pattern
  468. Program to print right and left arrow patterns
  469. Leibniz harmonic triangle
  470. Convert the ASCII value sentence to its equivalent string
  471. Program for triangular patterns of alphabets
  472. Find maximum among x^(y^2) or y^(x^2) where x and y are given
  473. Find larger of x^y and y^x
  474. Minimum difference between groups of size two
  475. Find the number of consecutive zero at the end after multiplying n numbers
  476. Operations on Sparse Matrices
  477. Find the Surface area of a 3D figure
  478. Trinomial Triangle
  479. Maximum OR sum of sub-arrays of two different arrays
  480. Program to print a inverse pyramid character pattern
  481. Fibonomial coefficient and Fibonomial triangle
  482. Factorial of each element in Fibonacci series
  483. Container with Most Water
  484. XNOR of two numbers
  485. Program to implement Simpson's 3/8 rule
  486. Program to print 2D shapes
  487. Addition of two numbers without carry
  488. Find sum of even factors of a number
  489. Max occurring divisor in an interval
  490. Multiplication of two complex numbers given as strings
  491. Maximum absolute difference of value and index sums
  492. Print numbers in the range 1 to n having bits in alternate pattern
  493. Program to print the pattern ‘D’
  494. Program to print diagonal star patterns
  495. Check whether given three numbers are adjacent primes
  496. Divide 1 to n into two groups with minimum sum difference
  497. Latin alphabet cipher
  498. Increment a number by one by manipulating the bits
  499. Program to check if N is a Pentagonal Number
  500. Sum of the series 0.6, 0.06, 0.006, 0.0006, ...to n terms
  501. Wave Patterns
  502. Münchhausen Number
  503. A square matrix as sum of symmetric and skew-symmetric matrices
  504. Sum of series M/1 + (M+P)/2 + (M+2*P)/4 + (M+3*P)/8......up to infinite
  505. Program for Hexagonal Pattern
  506. Program to check diagonal matrix and scalar matrix
  507. Pernicious number
  508. Odious number
  509. Check if actual binary representation of a number is palindrome
  510. Program to print V and inverted-V pattern
  511. Toggle first and last bits of a number
  512. Toggle all even bits of a number
  513. Prime Triplet
  514. Toggle all odd bits of a number
  515. Sum of fourth power of first n even natural numbers
  516. Trimorphic Number
  517. Perfect Square String
  518. Hour-glass Pattern
  519. Self Descriptive Number
  520. Counting numbers of n digits that are monotone
  521. Program to print non square numbers
  522. Counting numbers whose difference from reverse is a product of k
  523. Minimum changes to a string to make all substrings distinct
  524. Program to print the arrow pattern
  525. Print numbers having first and last bits as the only set bits
  526. For every set bit of a number toggle bits of other
  527. Sierpinski triangle
  528. Decimal representation of given binary string is divisible by 20 or not
  529. Program to print DNA sequence
  530. Time required to meet in equilateral triangle
  531. Probability of reaching a point with 2 or 3 steps at a time
  532. Alternate bits of two numbers to create a new number
  533. Number of unmarked integers in a special sieve
  534. Program for triangular pattern (mirror image around 0)
  535. Set all odd bits of a number
  536. Number of Reflexive Relations on a Set
  537. Program for Arrow Star Pattern
  538. Sum of series 2/3 - 4/5 + 6/7 - 8/9 + ------- upto n terms
  539. Set all even bits of a number
  540. Space efficient iterative method to Fibonacci number
  541. Check if a large number is divisible by 20
  542. Total numbers with no repeated digits in a range
  543. Check if a number is divisible by 8 using bitwise operators
  544. Swap every two bits in bytes
  545. Check if binary string multiple of 3 using DFA
  546. Hollow lower triangular pattern
  547. Pattern of 1's inside 0's
  548. Minimum number of mails required to distribute all the questions
  549. Print factorials of a range in right aligned format
  550. Program to check Involutory Matrix
  551. Calculate speed, distance and time
  552. XOR of two numbers after making length of their binary representations equal
  553. Divide two integers without using multiplication, division and mod operator
  554. Swap major and minor diagonals of a square matrix
  555. Find the slope of the given number
  556. Sum of largest divisible powers of p (a prime number) in a range
  557. Calculate area of pentagon with given diagonal
  558. Writing power function for large numbers
  559. Fibbinary Numbers (No consecutive 1s in binary)
  560. Fibbinary Numbers (No consecutive 1s in binary) - O(1) Approach
  561. Minimum removal to make palindrome permutation
  562. Tribonacci Word
  563. Morse Code Implementation
  564. Program to print mirror image of Swastika Pattern
  565. Program to print circle pattern
  566. Closest Palindrome Number (absolute difference Is min)
  567. Find set of m-elements with difference of any two elements is divisible by k
  568. Program to print Square inside a Square
  569. Primality Test | Set 5(Using Lucas-Lehmer Series)
  570. Print bitwise AND set of a number N
  571. Solid square inside a hollow square | Pattern
  572. String with maximum number of unique characters
  573. Print Bracket Number
  574. Print first n Fibonacci Numbers using direct formula
  575. Program to print Crown Pattern
  576. Product of nodes at k-th level in a tree represented as string
  577. Print lower triangular matrix pattern from given array
  578. Evaluate an array expression with numbers, + and -
  579. Count special palindromes in a String
  580. Find N Geometric Means between A and B
  581. Convert String into Binary Sequence
  582. Count n digit numbers divisible by given number
  583. Program for Expressionless Face Pattern printing
  584. Program to print numbers in digital form
  585. Product of given N fractions in reduced form
  586. Rencontres Number (Counting partial derangements)
  587. Sum of pairwise products
  588. Power Set in Lexicographic order
  589. Maximum of sum and product of digits until number is reduced to a single digit
  590. n-th number whose sum of digits is ten
  591. Pandigital Product
  592. Variance and standard-deviation of a matrix
  593. Strong Password Suggester Program
  594. Number of digits in 2 raised to power n
  595. Smallest even digits number not less than N
  596. Largest even digit number not greater than N
  597. Nicomachu's Theorem
  598. Number of subarrays with m odd numbers
  599. Squared triangular number (Sum of cubes)
  600. Maximum Perimeter Triangle from array
  601. Frugal Number
  602. Minimal moves to form a string by adding characters or appending string itself
  603. Remove consecutive vowels from string
  604. Decimal Equivalent of Gray Code and its Inverse
  605. Cube Free Numbers smaller than n
  606. Finding a Non Transitive Coprime Triplet in a Range
  607. Minimum rooms for m events of n batches with given schedule
  608. Space optimization using bit manipulations
  609. Euler's Four Square Identity
  610. Tetrahedral Numbers
  611. Rosser's Theorem
  612. Bertrand's Postulate
  613. Euclid Euler Theorem
  614. Generate a list of n consecutive composite numbers (An interesting method)
  615. Check whether a very large number of the given form is a multiple of 3.
  616. Twin Prime Numbers between 1 and n
  617. Check if two people starting from different points ever meet
  618. Program to find N-th term of the series a, b, b, c, c, c,.......
  619. Check whether a number is Emirpimes or not
  620. k-Rough Number or k-Jagged Number
  621. Check if bitwise AND of any subset is power of two
  622. Odd numbers in N-th row of Pascal's Triangle
  623. Moser-de Bruijn Sequence
  624. Nesbitt's Inequality
  625. First N natural can be divided into two sets with given difference and co-prime sums
  626. Ways to multiply n elements with an associative operation
  627. Number of common base strings for two strings
  628. Bitwise recursive addition of two integers
  629. Find the Largest Cube formed by Deleting minimum Digits from a number
  630. Blum Integer
  631. Program for sum of cos(x) series
  632. Making zero array by decrementing pairs of adjacent
  633. Find nth term of the Dragon Curve Sequence
  634. Finding n-th term of series 3, 13, 42, 108, 235…
  635. Check a number for Permutable Prime
  636. Find maximum element of each row in a matrix
  637. Arithmetic Number
  638. Check if a string is substring of another
  639. Program to display all alphabets from A to Z in uppercase and lowercase both
  640. Find ceil of a/b without using ceil() function
  641. Program to check if the points are parallel to X axis or Y axis
  642. Print prime numbers from 1 to N in reverse order
  643. Number of digits in the nth number made of given four digits
  644. Check if every index i has an index j such that sum of elements in both directions are equal
  645. Find n-variables from n sum equations with one missing
  646. Check if a number can be expressed as power | Set 2 (Using Log)
  647. Prime Number of Set Bits in Binary Representation | Set 1
  648. Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
  649. Centrosymmetric Matrix
  650. Reflection of a point at 180 degree rotation of another point
  651. Check if sum of divisors of two numbers are same
  652. Newton's Divided Difference Interpolation Formula
  653. Product of first N factorials
  654. Number of arrays of size N whose elements are positive integers and sum is K
  655. Program to convert centimeter into meter and kilometer
  656. Finding Quadrant of a Coordinate with respect to a Circle
  657. Sum of product of r and rth Binomial Coefficient (r * nCr)
  658. Find the mean vector of a Matrix
  659. Students with maximum average score of three subjects
  660. Check if given number is a power of d where d is a power of 2
  661. K-th smallest element after removing given integers from natural numbers | Set 2
  662. Add n binary strings
  663. Subtract 1 without arithmetic operators
  664. Smarandache-Wellin Sequence
  665. Find the GCD that lies in given range
  666. Hilbert Matrix
  667. Program to check if a matrix is Binary matrix or not
  668. Check if mirror image of a number is same if displayed in seven segment display
  669. Print concentric rectangular pattern in a 2d matrix
  670. Number of Distinct Meeting Points on a Circular Road
  671. Program to compare m^n and n^m
  672. Sum of product of consecutive Binomial Coefficients
  673. Number of distinct prime factors of first n natural numbers
  674. Check if the n-th term is odd or even in a Fibonacci like sequence
  675. Vieta's Formulas
  676. Find the frequency of a digit in a number
  677. Divide two integers without using multiplication, division and mod operator | Set2
  678. Sum of multiplication of triplet of divisors of a number
  679. Multiply the given number by 2 such that it is divisible by 10
  680. Program to find greater value between a^n and b^n
  681. Number of ones in the smallest repunit
  682. Number of squares of maximum area in a rectangle
  683. Recursive program to check if number is palindrome or not
  684. Stormer Numbers
  685. Find unique pairs such that each element is less than or equal to N
  686. Compute power of power k times % m
  687. Program to find the Area of an Ellipse
  688. Count the number of intervals in which a given value lies
  689. Find Largest Special Prime which is less than or equal to a given number
  690. Number of permutations such that sum of elements at odd index and even index are equal
  691. Degree of a Cycle Graph
  692. Number of sequences which has HEAD at alternate positions to the right of the first HEAD
  693. Surface Area and Volume of Hexagonal Prism
  694. Minimum inverting factor in an array
  695. Remove leading zeros from an array
  696. Find (a^b)%m where 'b' is very large
  697. Number of Larger Elements on right side in a string
  698. Permutation of a string with maximum number of characters greater than its adjacent characters
  699. Total number of ways to place X and Y at n places such that no two X are together
  700. Maximum number of ones in a N*N matrix with given constraints
  701. Nth non-Square number
  702. Number of n digit stepping numbers | Space optimized solution
  703. Lexicographically smallest string formed by appending a character from the first K characters of a given string
  704. Egg Dropping Puzzle with 2 Eggs and K Floors
  705. Find the sum of non-prime elements in the given array
  706. Perpendicular distance between a point and a Line in 2 D
  707. Sum of elements in range L-R where first half and second half is filled with odd and even numbers
  708. Absolute difference between the first X and last X Digits of N
  709. Check if it is possible to create a polygon with a given angle
  710. Sum of all prime divisors of all the numbers in range L-R
  711. Number of elements smaller than root using preorder traversal of a BST
  712. Calculating n-th real root using binary search
  713. Maximum distinct lines passing through a single point
  714. Find gcd(a^n, c) where a, n and c can vary from 1 to 10^9
  715. Largest number with maximum trailing nines which is less than N and greater than N-D
  716. Number of ways to represent a number as sum of k fibonacci numbers
  717. Find indices of all occurrence of one string in other
  718. Sudo Placement[1.7] | Greatest Digital Root
  719. Sum of XOR of sum of all pairs in an array
  720. Hyperfactorial of a number
  721. Saddleback Search Algorithm in a 2D array
  722. Tetranacci Numbers
  723. Maximum sum by adding numbers with same number of set bits
  724. Cunningham chain
  725. Addition of two number using '-' operator
  726. Number of integral solutions for equation x = b*(sumofdigits(x)^a)+c
  727. Increment a number without using ++ or +
  728. Modular exponentiation (Recursive)
  729. Find next palindrome prime
  730. Eggs dropping puzzle (Binomial Coefficient and Binary Search Solution)
  731. Number of possible pairs of Hypotenuse and Area to form right angled triangle
  732. Difference between fundamental data types and derived data types
  733. Subtraction of two numbers using 2's Complement
  734. Print direction of moves such that you stay within the [-k, +k] boundary
  735. Maximum number of dots after throwing a dice N times
  736. Maximum possible intersection by moving centers of line segments
  737. Sum of elements of all partitions of number such that no element is less than K
  738. Number of Permutations such that no Three Terms forms Increasing Subsequence
  739. Check whether bits are in alternate pattern in the given range
  740. Finding the Parity of a number Efficiently
  741. Number of quadrilaterals possible from the given points
  742. Alternate Fibonacci Numbers
  743. Find the largest number that can be formed with the given digits
  744. 10's Complement of a decimal number
  745. N-th term in the series 1, 11, 55, 239, 991,....
  746. Number of ways a convex polygon of n+2 sides can split into triangles by connecting vertices
  747. Balanced expressions such that given positions have opening brackets | Set 2
  748. Sum of bitwise OR of all subarrays
  749. Modulo power for large numbers represented as strings
  750. Fascinating Number
  751. Program to find Nth term in the series 0, 2, 1, 3, 1, 5, 2, 7, 3,…
  752. Check if Decimal representation of an Octal number is divisible by 7
  753. Complement of a number with any base b
  754. Program for K Most Recently Used (MRU) Apps
  755. Sort first k values in ascending order and remaining n-k values in descending order
  756. Final cell position in the matrix
  757. Minimum number of square tiles required to fill the rectangular floor
  758. Find Nth term of series 1, 4, 15, 72, 420...
  759. Count number of triplets with product equal to given number with duplicates allowed
  760. Find the largest twins in given range
  761. Subarray of size k with given sum
  762. Pairs with GCD equal to one in the given range
  763. Find Nth term of the series 0, 2, 4, 8, 12, 18...
  764. Check whether a given point lies on or inside the rectangle | Set 3
  765. Program to find the percentage of difference between two numbers
  766. Find the Next perfect square greater than a given number
  767. Print elements that can be added to form a given sum
  768. Count number of primes in an array
  769. Triplet with no element divisible by 3 and sum N
  770. Minimum numbers needed to express every integer below N as a sum
  771. Program to calculate the profit sharing ratio
  772. Program to find sum of the given sequence
  773. Remove duplicates from a string in O(1) extra space
  774. Program for replacing one digit with other
  775. Program to invert bits of a number Efficiently
  776. Check if a number is divisible by 23 or not
  777. Count elements that are divisible by at-least one element in another array
  778. Find all angles of a triangle in 3D
  779. Minimum number of elements to be removed to make XOR maximum
  780. Find Nth term (A matrix exponentiation example)
  781. Generating subarrays using recursion
  782. Find Multiples of 2 or 3 or 5 less than or equal to N
  783. Sum of Factors of a Number using Prime Factorization
  784. Maximum occurred integer in n ranges | Set-2
  785. Hamming distance between two Integers
  786. Find a point such that sum of the Manhattan distances is minimized
  787. Area of a largest square fit in a right angle triangle
  788. Sum of first N terms of Quadratic Sequence 3 + 7 + 13 + ...
  789. Sum of Digits in a^n till a single digit
  790. Minimum changes required to make two arrays identical
  791. Product of 2 numbers using recursion | Set 2
  792. Probability of getting a sum on throwing 2 Dices N times
  793. Minimum no. of operations required to make all Array Elements Zero
  794. Perfect cube greater than a given number
  795. Area of the Largest square that can be inscribed in an ellipse
  796. Program to Find the value of cos(nΘ)
  797. Find other two sides and angles of a right angle triangle
  798. Split the number into N parts such that difference between the smallest and the largest part is minimum
  799. Program to find the value of tan(nΘ)
  800. Program to find the value of sin(nΘ)
  801. Find the Nth term of the series 2 + 6 + 13 + 23 + . . .
  802. Find the sum of series 3, -6, 12, -24 . . . upto N terms
  803. Check whether a given Number is Power-Isolated or not
  804. Maximum Sum of Products of Two Arrays
  805. Numbers less than N which are product of exactly two distinct prime numbers
  806. Ways to write N as sum of two or more positive integers | Set-2
  807. Count the number of carry operations required to add two numbers
  808. Number of values of b such that a = b + (a^b)
  809. Find two distinct prime numbers with given product
  810. Program to find the common ratio of three numbers
  811. Find 'N' number of solutions with the given inequality equations
  812. Print a number strictly less than a given number such that all its digits are distinct.
  813. Find count of Almost Prime numbers from 1 to N
  814. Check if it is possible to rearrange rectangles in a non-ascending order of breadths
  815. Find minimum possible digit sum after adding a number d
  816. Check if an integer can be expressed as a sum of two semi-primes
  817. Next greater number than N with exactly one bit different in binary representation of N
  818. Area of a circle inscribed in a rectangle which is inscribed in a semicircle
  819. Sum of first N natural numbers by taking powers of 2 as negative number
  820. Check if a number has digits in the given Order
  821. Find the value of the function Y = (X^6 + X^2 + 9894845) % 971
  822. Construct a frequency array of digits of the values obtained from x^1, x^2, ........, x^n
  823. Total money to be paid after traveling the given number of hours
  824. Find N digits number which is divisible by D
  825. Sum of nth terms of Modified Fibonacci series made by every pair of two arrays
  826. Next greater Number than N with the same quantity of digits A and B
  827. Check if the sum of digits of a number N divides it
  828. Pair of prime numbers with a given sum and minimum absolute difference
  829. Count pairs (i,j) such that (i+j) is divisible by A and B both
  830. Sum of squares of Fibonacci numbers
  831. Numbers in range [L, R] such that the count of their divisors is both even and prime
  832. Find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 ...
  833. Arrangement of words without changing the relative position of vowel and consonants
  834. Gould's Sequence
  835. Check if a number is Primorial Prime or not
  836. Print all Prime Quadruplet of a number less than it
  837. Check if at least half array is reducible to zero by performing some operations
  838. Check if the given number is Ore number or not
  839. Ways of dividing a group into two halves such that two elements are in different groups
  840. Maximum count of equal numbers in an array after performing given operations
  841. Maximum difference elements that can added to a set
  842. Check if the given vectors are at equilibrium or not
  843. Check if the frequency of all the digits in a number is same
  844. Check if it is possible to serve customer queue with different notes
  845. Program to Convert Hexadecimal Number to Binary
  846. Maximize the sum of array by multiplying prefix of array with -1
  847. All possible numbers of N digits and base B without leading zeros
  848. Minimum number of bottles required to fill K glasses
  849. Program to Convert Octal Number to Binary Number
  850. Find minimum speed to finish all Jobs
  851. Least Greater number with same digit sum
  852. Check if there is any pair in a given range with GCD is divisible by k
  853. Equation of circle from centre and radius
  854. Minimum squares to evenly cut a rectangle
  855. Logarithm
  856. Sum of greatest odd divisor of numbers in given range
  857. Replace every element of the array by product of all other elements
  858. Immediate smallest number after re-arranging the digits of a given number
  859. Find the Product of first N Prime Numbers
  860. Sum of width (max and min diff) of all Subsequences
  861. Check whether a number has consecutive 0's in the given base or not
  862. Ways of selecting men and women from a group to make a team
  863. Find subsequences with maximum Bitwise AND and Bitwise OR
  864. Replace consonants with next immediate consonants alphabetically in a String
  865. Product of every K’th prime number in an array
  866. Program to evaluate the expression (√X+1)^6 + (√X-1)^6
  867. Count and Sum of composite elements in an array
  868. Equation of ellipse from its focus, directrix, and eccentricity
  869. Arrangement of the characters of a word such that all vowels are at odd places
  870. Check whether it is possible to make both arrays equal by modifying a single element
  871. Check if a triangle of positive area is possible with the given angles
  872. Minimum number of operations required to reduce N to 1
  873. Find permutation of n which is divisible by 3 but not divisible by 6
  874. Find the super power of a given Number
  875. Absolute Difference of all pairwise consecutive elements in an array
  876. Smallest prime divisor of a number
  877. Find the sum of all multiples of 2 and 5 below N
  878. Greatest Integer Function
  879. Minimum cost to reach a point N from 0 with two different operations allowed
  880. Find maximum distance between any city and station
  881. Check whether all the rotations of a given number is greater than or equal to the given number or not
  882. Minimum array insertions required to make consecutive difference <= K
  883. Sum of every K’th prime number in an array
  884. Check whether product of digits at even places of a number is divisible by K
  885. Product of all the Composite Numbers in an array
  886. Permutations of n things taken r at a time with k things together
  887. Find the sum of first N odd Fibonacci numbers
  888. Count ordered pairs with product less than N
  889. Find number from given list for which value of the function is closest to A
  890. Check if the Xor of the frequency of all digits of a number N is zero or not
  891. Lexicographically smallest permutation with no digits at Original Index
  892. Find maximum volume of a cuboid from the given perimeter and area
  893. Sum and Product of digits in a number that divide the number
  894. Smallest number greater than or equal to N divisible by K
  895. Minimize the value of N by applying the given operations
  896. Largest N digit number divisible by given three numbers
  897. Largest number not greater than N all the digits of which are odd
  898. Find the count of palindromic sub-string of a string in its sorted form
  899. Minimum swaps to group similar characters side by side?
  900. Find the count of Strictly decreasing Subarrays
  901. Count subarrays with Prime sum
  902. Largest cube that can be inscribed within the sphere
  903. Sum of all the multiples of 3 and 7 below N
  904. Largest sphere that can be inscribed inside a cube
  905. Count the number of words having sum of ASCII values less than and greater than k
  906. Count pieces of circle after N cuts
  907. Find Selling Price from given Profit Percentage and Cost
  908. Sort elements of array whose modulo with K yields P
  909. XOR of all elements of array with set bits equal to K
  910. Number of strictly increasing Buildings from right with distinct Colors
  911. Find minimum operations needed to make an Array beautiful
  912. Minimum number of cuts required to make circle segments equal sized
  913. Smallest prime number missing in an array
  914. Steps to reduce N to zero by subtracting its most significant digit at every step
  915. Find two numbers with sum and product both same as N
  916. Maximum litres of water that can be bought with N Rupees
  917. Maximum students to pass after giving bonus to everybody and not exceeding 100 marks
  918. Sum of multiples of A and B less than N
  919. LCM and HCF of fractions
  920. Sum of the elements from index L to R in an array when arr[i] = i * (-1)^i
  921. Probability of getting more value in third dice throw
  922. Check if the array has an element which is equal to product of remaining elements
  923. Count Triplets such that one of the numbers can be written as sum of the other two
  924. Sum of all odd length palindromic numbers within the range [L, R]
  925. Check whether the sum of prime elements of the array is prime or not
  926. Check if the given push and pop sequences of Stack is valid or not
  927. Minimum sum after subtracting multiples of k from the elements of the array
  928. Sum of all natural numbers in range L to R
  929. Count of pairs in an array whose sum is a perfect square
  930. Check whether an Array is Subarray of another Array
  931. Largest number in an array that is not a perfect cube
  932. Lexicographically smallest substring with maximum occurrences containing a's and b's only
  933. Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
  934. Minimum sum of the elements of an array after subtracting smaller elements from larger
  935. Nth number made up of odd digits only
  936. Sum of elements whose square root is present in the array
  937. Find element position in given monotonic sequence
  938. Maximum number with same digit factorial product
  939. Sum of Bitwise-OR of all subarrays of a given Array | Set 2
  940. Check if a number is Triperfect Number
  941. Harmonic Progression
  942. Count valid pairs in the array satisfying given conditions
  943. Sort the array in a given index range
  944. Color N boxes using M colors such that K boxes have different color from the box on its left
  945. Minimum removals in a number to be divisible by 10 power raised to K
  946. Split a number into 3 parts such that none of the parts is divisible by 3
  947. Binary Search a String
  948. Program to print the given H Pattern
  949. Check if the sum of primes is divisible by any prime from the array
  950. Sum of integers upto N with given unit digit (Set 2)
  951. Count numbers < = N whose difference with the count of primes upto them is > = K
  952. Largest palindromic prime in an array
  953. Recursive program to print all subsets with given sum
  954. Add index to characters and reverse the string
  955. Difference between Recursion and Iteration
  956. Minimize the maximum minimum difference after one removal from array
  957. Convert a String into a square matrix grid of characters
  958. Replace the maximum element in the array by coefficient of range
  959. Number of subarrays have bitwise OR >= K
  960. Print all integers that are sum of powers of two given numbers
  961. Possible cuts of a number such that maximum parts are divisible by 3
  962. Find the sum of the all amicable numbers up to N
  963. Find Pth term of a GP if Mth and Nth terms are given
  964. Count distinct elements in an array
  965. Count pairs in an array such that at least one element is prime
  966. Rearrange Odd and Even values in Alternate Fashion in Ascending Order
  967. Check whether the given character is in upper case, lower case or non alphabetic character
  968. Count strings that end with the given pattern
  969. Find safe cells in a matrix
  970. Predictor-Corrector or Modified-Euler method for solving Differential equation
  971. Program to implement Linear Extrapolation
  972. Remove characters from a numeric string such that string becomes divisible by 8
  973. Maximum given sized rectangles that can be cut out of a sheet of paper
  974. Midpoint ellipse drawing algorithm
  975. Check if a number can be represented as a sum of 2 triangular numbers
  976. Minimum operations of the given type required to make a complete graph
  977. Number of unique pairs in an array
  978. Array element with minimum sum of absolute differences
  979. Count operations of the given type required to reduce N to 0
  980. Program to find LCM of two Fibonnaci Numbers
  981. Maximum subarray sum in array formed by repeating the given array k times
  982. Split the array into equal sum parts according to given conditions
  983. Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
  984. Count of alphabets whose ASCII values can be formed with the digits of N
  985. Maximum number of teams that can be formed with given persons
  986. Minimum operations required to modify the array such that parity of adjacent elements is different
  987. Maximize the value of x + y + z such that ax + by + cz = n
  988. Maximum size of sub-array that satisfies the given condition
  989. Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B
  990. Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
  991. Find frequency of smallest value in an array
  992. Check whether the point (x, y) lies on a given line
  993. Generate a random permutation of elements from range [L, R] (Divide and Conquer)
  994. Sum of XOR of all subarrays
  995. Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
  996. Minimize the sum of the squares of the sum of elements of each group the array is divided into
  997. Source to destination in 2-D path with fixed sized jumps
  998. Find a positive number M such that gcd(N^M, N&M) is maximum
  999. Given two binary strings perform operation until B > 0 and print the result
  1000. Count primes that can be expressed as sum of two consecutive primes and 1
  1001. Minimum number of given moves required to make N divisible by 25
  1002. Smallest Special Prime which is greater than or equal to a given number
  1003. Ways to form an array having integers in given range such that total sum is divisible by 2
  1004. Search element in a Spirally sorted Matrix
  1005. Minimum number of elements that should be removed to make the array good
  1006. Split the array into odd number of segments of odd lengths
  1007. Maximum Bitwise AND pair from given range
  1008. Find whether only two parallel lines contain all coordinates points or not
  1009. XOR of a submatrix queries
  1010. Find the number of distinct pairs of vertices which have a distance of exactly k in a tree
  1011. Find Nth positive number whose digital root is X
  1012. Minimum number of given powers of 2 required to represent a number
  1013. Count numbers in range 1 to N which are divisible by X but not by Y
  1014. Count pairs (p, q) such that p occurs in array at least q times and q occurs at least p times
  1015. Longest subsequence such that adjacent elements have at least one common digit
  1016. Minimum changes required to make a Catalan Sequence
  1017. Check if product of digits of a number at even and odd places is equal
  1018. Maximum subarray sum by flipping signs of at most K array elements
  1019. Group consecutive characters of same type in a string
  1020. Longest double string from a Palindrome
  1021. Ways to place 4 items in n^2 positions such that no row/column contains more than one
  1022. Find the count of numbers that can be formed using digits 3, 4 only and having length at max N.
  1023. Sum of the series (1*2) + (2*3) + (3*4) + ...... upto n terms
  1024. Maximum Primes whose sum is equal to given N
  1025. Third last digit in 5^N for given N
  1026. Find GCD of factorial of elements of given array
  1027. Numbers that are not divisible by any number in the range [2, 10]
  1028. Count of a, b & c after n seconds for given reproduction rate
  1029. Sum of all i such that (2^i + 1) % 3 = 0 where i is in range [1, n]
  1030. Find the K-th minimum element from an array concatenated M times
  1031. Sum of all even factors of numbers in the range [l, r]
  1032. Smallest integer > 1 which divides every element of the given array
  1033. Maximize profit when divisibility by two numbers have associated profits
  1034. Number of ways to remove elements to maximize arithmetic mean
  1035. Sum of (maximum element - minimum element) for all the subsets of an array.
  1036. Find the modified array after performing k operations of given type
  1037. Find A and B from list of divisors
  1038. Kth odd number in an array
  1039. Minimum steps to make all the elements of the array divisible by 4
  1040. Sum of elements in an array whose difference with the mean of another array is less than k
  1041. Smallest and Largest N-digit perfect cubes
  1042. Count pairs in array whose sum is divisible by K
  1043. Find the sum of all Truncatable primes below N
  1044. Minimum cuts required to convert a palindromic string to a different palindromic string
  1045. Generate array with minimum sum which can be deleted in P steps
  1046. Check if matrix can be converted to another matrix by transposing square sub-matrices
  1047. First string from the given array whose reverse is also present in the same array
  1048. Minimum changes required such that the string satisfies the given condition
  1049. Smallest and Largest N-digit perfect squares
  1050. Number of pairs from the first N natural numbers whose sum is divisible by K
  1051. Maximum trace possible for any sub-matrix of the given matrix
  1052. Maximum count of pairs which generate the same sum
  1053. Count sub-arrays whose product is divisible by k
  1054. Find a pair from the given array with maximum nCr value
  1055. Maximum sum from three arrays such that picking elements consecutively from same is not allowed
  1056. Find a distinct pair (x, y) in given range such that x divides y
  1057. Find the value of XXXX.....(N times) % M where N is large
  1058. Find the number of ways to divide number into four parts such that a = c and b = d
  1059. Find the smallest number X such that X! contains at least Y trailing zeros.
  1060. Find 2^(2^A) % B
  1061. Count pairs with bitwise OR less than Max
  1062. Number of ways of scoring R runs in B balls with at most W wickets
  1063. Maximize the value of the given expression
  1064. Loss when two items are sold at same price and same percentage profit/loss
  1065. Maximize the median of the given array after adding K elements to the same array
  1066. Replace all elements by difference of sums of positive and negative numbers after that element
  1067. Sum of Fibonacci Numbers in a range
  1068. Print all Semi-Prime Numbers less than or equal to N
  1069. Count of sub-arrays whose elements can be re-arranged to form palindromes
  1070. Partition the array into three equal sum segments
  1071. Maximum number of continuous Automorphic numbers
  1072. Determine the number of squares of unit area that a given line will pass through.
  1073. Find the good permutation of first N natural numbers
  1074. Sum of degrees of all nodes of a undirected graph
  1075. Minimum array elements to be changed to make Recaman's sequence
  1076. Times required by Simple interest for the Principal to become Y times itself
  1077. Replace the odd positioned elements with their cubes and even positioned elements with their squares
  1078. Maximum sum possible for a sub-sequence such that no two elements appear at a distance < K in the array
  1079. Given an array and two integers l and r, find the kth largest element in the range [l, r]
  1080. XOR of all the elements in the given range [L, R]
  1081. Check whether factorial of N is divisible by sum of first N natural numbers
  1082. Find the number of jumps to reach X in the number line from zero
  1083. Count the number of operations required to reduce the given number
  1084. Sum of two numbers where one number is represented as array of digits
  1085. Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
  1086. Find the sum of the diagonal elements of the given N X N spiral matrix
  1087. Length of the smallest number which is divisible by K and formed by using 1's only
  1088. Increment odd positioned elements by 1 and decrement even positioned elements by 1 in an Array
  1089. Find n positive integers that satisfy the given equations
  1090. Print path from root to all nodes in a Complete Binary Tree
  1091. Minimum number of changes such that elements are first Negative and then Positive
  1092. Length of the longest substring with no consecutive same letters
  1093. Divide a number into two parts
  1094. Count the number of currency notes needed
  1095. Program to find the maximum difference between the index of any two different numbers
  1096. Find the lexicographically smallest string which satisfies the given condition
  1097. Travelling Salesman Problem implementation using BackTracking
  1098. Check if product of first N natural numbers is divisible by their sum
  1099. Find the number of divisors of all numbers in the range [1, n]
  1100. Find HCF of two numbers without using recursion or Euclidean algorithm
  1101. Maximum sum of cocktail glass in a 2D matrix
  1102. Count the pairs of vowels in the given string
  1103. 3-digit Osiris number
  1104. Calculate the loss incurred in selling the given items at discounted price
  1105. Check if a number from every row can be selected such that xor of the numbers is greater than zero
  1106. Find the node whose sum with X has maximum set bits
  1107. Count the nodes in the given tree whose weight is even parity
  1108. Program to Calculate e^x by Recursion
  1109. Find the original coordinates whose Manhattan distances are given
  1110. Count the number of digits of palindrome numbers in an array
  1111. Sum of all palindrome numbers present in an Array