- Centered cube number
- PHP | array_udiff_uassoc() Function
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- Centered Dodecagonal Number
- PHP | array_intersect_ukey() Function
- HTML | DOM Input Range max Property
- PHP | ctype_print() Function
- Icosagonal number
- PHP | arsort() Function
- p5.js | noLoop() Function
- Centered Octadecagonal Number
- Sum and average of three numbers in PL/SQL
- PHP | FilesystemIterator setFlags() Function
- PHP | IntlCalendar isWeekend() Function
- PHP | IntlCalendar roll() Function
- PHP | IntlCalendar set() Function
- Cake number
- Dodecagonal number
- Centered triangular number
- Strobogrammatic number
- Dodecahedral number
- Centered tetrahedral number
- Centered heptagonal number
- Program for Centered Icosahedral Number
- Centered Square Number
- Centered pentagonal number
- Centered Octahedral number
- Hexadecagonal number
- C# | EndsWith() Method
- Heptadecagonal number
- PHP | array_udiff() Function
- Centered Octagonal Number
- PHP | array_uintersect_assoc() Function
- Icosahedral Number
- PHP | array_diff_ukey() Function
- C# | Boxing And Unboxing
- p5.js | redraw() Function
- Enneadecagonal number
- Centered decagonal number
- PHP | array_intersect_uassoc() Function
- Centered nonadecagonal number
- PHP | array_udiff_assoc() Function
- Hendecagonal number
- Centered Pentadecagonal Number
- Centered dodecahedral number
- Centered Hexadecagonal Number
- Icosidigonal number
- Tetradecagonal number
- PHP | vsprintf() Function
- Centered tridecagonal number
- PHP | ctype_upper() Function
- PHP | ctype_digit() (Checks for numeric value)
- PHP | ctype_xdigit() Function
- PHP | ctype_space() Function
- PHP | ctype_alnum() (Check for Alphanumeric)
- PHP | ctype_punct() Function
- PHP | ctype_graph() Function
- PHP | ctype_alpha() (Checks for alphabetic value)
- PHP | ctype_cntrl() Function
- PHP | preg_grep() Function
- PHP | ereg_replace() Function
- Heptagonal number
- Pentatope number
- mktime() function in C++ STL
- PHP | Ds\Set allocate() Function
- PHP | Ds\Set capacity() Function
- HTML | <table> bgcolor Attribute
- PHP | convert_cyr_string() Function
- Program to find Simple Interest and Compound Interest in PL/SQL
- Area and Perimeter of Rectangle in PL/SQL
- Greatest number among three given numbers in PL/SQL
- Convert distance from km to meters and centimeters in PL/SQL
- Sum of digits equal to a given number in PL/SQL
- Area and Perimeter of a circle in PL/SQL
- PHP | random_bytes () Function
- PHP | random_int() Function
- Floyd's triangle in PL/SQL
- Count odd and even digits in a number in PL/SQL
- PHP | IntlChar::isJavaIDStart() Function
- PHP | IntlChar::isJavaSpaceChar() Function
- Perl | String Operators
- PHP | iconv() Function
- PHP | IntlChar::isdigit() Function
- C# | Math.Pow() Method
- PHP | IntlChar::isblank() Function
- C# | Math.Floor() Method
- C# | Math.Ceiling() Method
- PHP | IntlChar::isalpha() Function
- C# | Math Class Fields with Examples
- PHP | IntlChar::isbase() Function
- PHP | IntlChar::isalnum () Function
- C# | Char.TryParse () Method
- PHP | IntlChar::isUUppercase() Function
- PHP | IntlChar::isWhitespace() Function
- PHP | IntlChar::charDigitValue() Function
- PHP | IntlChar::isIDIgnorable() Function
- PHP | IntlChar::charName() Function
- PHP | IntlChar::charMirror() Function
- PHP | IntlChar::charAge() Function
- PHP | IntlChar::isUWhiteSpace() Function
- PHP | IntlChar::isUAlphabetic() Function
- PHP | IntlChar::isULowercase() Function
- PHP | IntlChar::isIDPart() Function
- PHP | IntlChar::isIDStart() Function
- PHP | IntlChar::isISOControl() Function
- PHP | IntlChar::totitle() Function
- PHP | IntlChar::isJavaIDPart() Function
- PHP | IntlChar::ord() Function
- PHP | IntlChar::chr() Function
- PHP | IntlChar::forDigit() Function
- Perl | Special Character Classes in Regular Expressions
- PHP | asort() Function
- PHP | krsort() Function
- PHP | ksort() Function
- C# | StartsWith() Method
- PHP | preg_split() Function
- C# | Math.DivRem() Method
- transform_inclusive_scan() function in C++
- HTML | <td> abbr Attribute
- HTML | <input> formtarget Attribute
- PHP | DirectoryIterator __toString() Function
- PHP | DirectoryIterator valid() Function
- PHP | Ds\Set clear() Function
- PHP | Ds\Set contains() Function
- PHP | Ds\Set add() Function
- PHP | Ds\Set copy() Function
- HTML | <img> alt Attribute
- HTML | <img> align Attribute
- HTML | DOM Input Password select() Method
- HTML | DOM Input Range step Property
- HTML | DOM Input Range min Property
- HTML | <area> download Attribute
- PHP | intl_is_failure() Function
- HTML | <area> alt Attribute
- HTML | <area> href Attribute
- HTML | <area> hreflang Attribute
- HTML | <area> coords Attribute
- HTML | <area> type Attribute
- HTML | <area> rel Attribute
- HTML | <button> type Attribute
- HTML | <button> name Attribute
- HTML | <th> scope Attribute
- PHP | Ds\Map allocate() Function
- PHP | Ds\Map capacity() Function
- HTML | <a> shape Attribute
- HTML | <a> type Attribute
- HTML | <a> rel Attribute
- HTML | <a> download Attribute
- PHP | Ds\Map intersect() Function
- HTML | <a> charset Attribute
- PHP | Ds\Map __construct() Function
- PHP | Ds\Map count() Function
- PHP | Ds\Map diff() Function
- PHP | Ds\Map filter() Function
- PHP | Ds\Map get() Function
- PHP | Ds\Deque __construct() Function
- PHP | Ds\Deque shift() Function
- PHP | Ds\Deque unshift() Function
- HTML | <img> border Attribute
- HTML | <img> height Attribute
- HTML | <img> width Attribute
- HTML | <img> src Attribute
- HTML | <font> face Attribute
- HTML | <frameset> rows Attribute
- HTML | <canvas> height Attribute
- HTML | <font> size Attribute
- HTML | <table> frame Attribute
- HTML | <frame> src Attribute
- HTML | <font> color Attribute
- HTML | <hr> width Attribute
- HTML | <hr> size Attribute
- HTML | <hr> noshade Attribute
- HTML | <hr> align Attribute
- HTML | <progress> value Attribute
- HTML | <frameset> cols Attribute
- HTML | <col> width Attribute
- HTML | <p> align Attribute
- HTML <table> align Attribute
- HTML | <table> border Attribute
- HTML | <table> cellpadding Attribute
- HTML | <table> cellspacing Attribute
- HTML | <table> rules Attribute
- HTML | <table> summary Attribute
- HTML | <td> valign Attribute
- HTML | <table> width Attribute
- HTML | <tbody> align Attribute
- HTML | <tbody> valign Attribute
- HTML | <td> width Attribute
- HTML | <td> height Attribute
- PHP | SplDoublyLinkedList add() Function
- PHP | SplDoublyLinkedList bottom() Function
- PHP | SplDoublyLinkedList count() function
- PHP | SplDoublyLinkedList current() Function
- PHP | SplDoublyLinkedList isEmpty() Function
- PHP | SplDoublyLinkedList key() Function
- PHP | SplDoublyLinkedList next() Function
- PHP | SplDoublyLinkedList offsetExists() Function
- PHP | SplDoublyLinkedList offsetGet() Function
- PHP | SplDoublyLinkedList offsetSet() Function
- PHP | SplDoublyLinkedList offsetUnset() Function
- PHP | SplDoublyLinkedList pop() Function
- PHP | SplDoublyLinkedList prev() Function
- PHP | SplDoublyLinkedList push() Function
- PHP | SplDoublyLinkedList rewind() Function
- PHP | SplDoublyLinkedList shift() Function
- PHP | SplDoublyLinkedList top() Function
- PHP | SplDoublyLinkedList unshift() Function
- HTML | <td> align Attribute
- HTML | <td> bgcolor Attribute
- HTML | <td> axis Attribute
- HTML | <tr> align Attribute
- HTML | <td> char Attribute
- HTML | <tr> valign Attribute
- HTML | <tr> bgcolor Attribute
- HTML | <th> abbr Attribute
- HTML | <th> align Attribute
- HTML | <th> bgcolor Attribute
- HTML | <th> axis Attribute
- HTML | <th> width Attribute
- HTML | <th> height Attribute
- HTML | <th> rowspan Attribute
- HTML | <th> nowrap Attribute
- HTML | <tfoot> align Attribute
- HTML | <tfoot> valign Attribute
- HTML | canvas translate() Method
- HTML canvas rotate() Method
- HTML | canvas scale() Method
- HTML | <col> width Attribute
- HTML | <col> span Attribute
- HTML | <link> charset Attribute
- HTML | <input> align Attribute
- HTML | <video> autoplay Attribute
- HTML | <video> controls Attribute
- HTML | <video> height Attribute
- HTML | <video> loop Attribute
- HTML | <video> src Attribute
- HTML | <video> poster Attribute
- p5.js | stroke() Function
- p5.js | noFill() Function
- p5.js | fill() Function
- p5.js | color() Function
- p5.js | circle() Function
- PHP | Ds\Stack capacity() Function
- PHP | Ds\Stack allocate() Function
- PHP | Ds\Pair clear() Function
- PHP | Ds\Stack count() Function
- PHP | Ds\Stack __construct() Function
- PHP | Ds\Pair copy() Function
- PHP | Ds\Deque contains() Function
- p5.js | point() Function
- PHP | Ds\Map remove() Function
- PHP | Ds\Pair toArray() Function
- PHP | Ds\Pair __construct() Function
- p5.js | rect() Function
- p5.js | square() Function
- p5.js | ellipseMode() Function
- CSS | brightness() Function
- CSS | blur() Function
- CSS | contrast() Function
- CSS | drop-shadow() Function
- CSS | grayscale() Function
- CSS | hue-rotate() Function
- CSS | invert() Function
- CSS | opacity() Function
- CSS | scaleX() Function
- CSS | rotate3d() Function
- CSS | scaleZ() Function
- CSS | rotate() Function
- CSS | scaleY() Function
- CSS | rotateZ() Function
- CSS | scale3d() Function
- CSS | scale() Function
- CSS | sepia() Function
- CSS | rotateX() Function
- CSS | rotateY() Function
- CSS | skew() Function
- CSS | skewX() Function
- CSS | skewY() Function
- CSS | url() Function
- CSS | translate() Function
- CSS | saturate() Function
- CSS | translateZ() function
- CSS | translateY() function
- CSS | translateX() Function
- CSS | translate3d() Function
- PHP | imagecolordeallocate() Function
- PHP | imagerotate() Function
- p5.js | drop() Function
- p5.js | size() Function
- p5.js | show() Function
- p5.js | value() Function
- p5.js | removeAttribute() Function
- p5.js | hide() Function
- p5.js | remove() Function
- PHP | imagescale() Function
- p5.js | center() Function
- p5.js | html() Function
- p5.js | position() Function
- p5.js | curve() function
- p5.js | curveDetail() Function
- CSS | matrix() Function
- CSS | matrix3d() Function
- p5.js | style() Function
- p5.js | attribute() Function
- p5.js | child() Function
- p5.js | setup() Function
- p5.js | loop() Function
- p5.js | draw() Function
- HTML | <input> formenctype Attribute
- HTML | <input> type Attribute
- HTML | <link> target Attribute
- p5.js | parent() Function
- HTML | <img> usemap Attribute
- HTML | input formmethod Attribute
- HTML | input maxlength Attribute
- PHP | simplexml_import_dom() Function
- PHP | SimpleXMLIterator valid() Function
- PHP | simplexml_load_file() Function
- PHP | SimpleXMLIterator rewind() Function
- PHP | SimpleXMLIterator next() Function
- PHP | SimpleXMLIterator key() Function
- PHP | SimpleXMLIterator hasChildren() Function
- PHP | SimpleXMLIterator getChildren() Function
- PHP | SimpleXMLIterator current() Function
- PHP | Collator create() Function
- PHP | Collator __construct() Function
- PHP | DOMDocument createCDATASection() Function
- PHP | DOMDocument createComment() Function
- PHP | DOMDocument createElement() Function
- PHP | DOMDocument createAttribute() Function
- PHP | DOMDocument __construct() Function
- PHP | iconv_get_encoding() Function
- PHP | DOMDocument getElementsByTagName() Function
- PHP | DOMDocument importNode() Function
- PHP | DOMDocument saveXML() Function
- PHP | DOMDocument createTextNode() Function
- PHP | DOMDocument createProcessingInstruction() Function
- PHP | DOMDocument createEntityReference() Function
- PHP | DOMDocument saveHTMLFile() Function
- PHP | DOMDocument saveHTML() Function
- PHP | DOMDocument save() Function
- PHP | DOMDocument loadXML() Function
- PHP | DOMDocument normalizeDocument() Function
- PHP | DOMDocument loadHTMLFile() Function
- PHP | DOMDocument loadHTML() Function
- PHP | DOMDocument load() Function
- PHP | DOMDocument createElementNS() Function
- PHP | DOMDocument createAttributeNS() Function
- PHP | IntlCalendar add() Function
- PHP | IntlCalendar after() Function
- PHP | IntlCalendar before() Function
- PHP | IntlCalendar::__construct() Function
- PHP | IntlCalendar createInstance() Function
- PHP | IntlCalendar equals() Function
- PHP | IntlCalendar fieldDifference() Function
- PHP | IntlCalendar getActualMaximum() Function
- PHP | IntlCalendar get() Function
- PHP | IntlCalendar fromDateTime() Function
- PHP | DOMAttr __construct() Function
- PHP | IntlCalendar getAvailableLocales() Function
- PHP | IntlCalendar getActualMinimum() Function
- PHP | IntlCalendar getFirstDayOfWeek() Function
- PHP | IntlCalendar getErrorMessage() Function
- PHP | IntlCalendar getErrorCode() Function
- PHP | IntlCalendar setTimeZone() Function
- PHP | IntlCalendar setTime() Function
- PHP | IntlCalendar getType() Function
- PHP | IntlCalendar getTimeZone() Function
- PHP | IntlCalendar getTime() Function
- PHP | IntlCalendar getLeastMaximum() Function
- PHP | IntlCalendar inDaylightTime() Function
- PHP | IntlCalendar isSet() Function
- PHP | IntlCalendar setFirstDayOfWeek() Function
- PHP | IntlCalendar toDateTime() Function
- PHP | IntlCalendar isEquivalentTo() Function
- PHP | ArrayObject setFlags() Function
- PHP | ArrayObject serialize() Function
- PHP | ArrayObject getFlags() Function
- PHP | ArrayObject count() Function
- PHP | JsonSerializable jsonSerialize() Function
- PHP | ArrayObject unserialize() Function
- PHP | ArrayObject setIteratorClass() Function
- PHP | IntlDateFormatter getErrorCode() Function,
- PHP | IntlDateFormatter getDateType() Function
- PHP | IntlDateFormatter format() Function
- PHP | IntlDateFormatter formatObject() Function
- PHP | IntlDateFormatter getCalendar() Function
- PHP | SplDoublyLinkedList valid() Function
- PHP | SplDoublyLinkedList unserialize() Function
- PHP | SplDoublyLinkedList setIteratorMode() Function
- PHP | ArrayIterator setFlags() Function
- PHP | ArrayIterator next() Function
- PHP | ArrayIterator natsort() Function
- PHP | ArrayIterator ksort() Function
- PHP | ArrayIterator key() Function
- PHP | ArrayIterator getFlags() Function
- PHP | ArrayIterator getArrayCopy() Function
- PHP | ArrayIterator current() Function
- PHP | ArrayIterator count() Function
- PHP | ArrayIterator __construct() Function
- PHP | ArrayIterator asort() Function
- PHP | ArrayIterator append() Function
- PHP | AppendIterator __construct() Function
- PHP | AppendIterator append() Function
- PHP | SplDoublyLinkedList serialize() Function
- PHP | SplDoublyLinkedList getIteratorMode() Function
- PHP | SplDoublyLinkedList __construct() Function
- PHP | AppendIterator valid() Function
- PHP | AppendIterator rewind() Function
- PHP | AppendIterator next() Function
- PHP | AppendIterator key() Function
- PHP | AppendIterator getIteratorIndex() Function
- PHP | AppendIterator current() Function
- PHP | ArrayIterator uksort() Function
- PHP | ArrayIterator uasort() Function
- PHP | ArrayIterator serialize() Function
- PHP | ArrayIterator valid() Function
- PHP | CachingIterator getCache() Function
- PHP | CachingIterator current() Function
- PHP | CachingIterator __construct() Function
- PHP | ArrayIterator offsetExists() Function
- PHP | ArrayIterator offsetUnset() Function
- PHP | ArrayIterator offsetGet() Function
- PHP | ArrayIterator offsetSet() Function
- PHP | ArrayIterator rewind() Function
- PHP | ArrayIterator seek() Function
- PHP | ArrayIterator unserialize() Function
- PHP | DirectoryIterator __construct() Function
- PHP | DirectoryIterator current() Function
- PHP | DirectoryIterator getATime() Function
- PHP | DirectoryIterator isDir() Function
- PHP | DirectoryIterator isDot() Function
- PHP | DirectoryIterator isExecutable() Function
- PHP | DirectoryIterator isFile() Function
- PHP | DirectoryIterator getBasename() Function
- PHP | DirectoryIterator getCTime() Function
- PHP | DirectoryIterator getExtension() Function
- PHP | DirectoryIterator getFilename() Function
- PHP | DirectoryIterator getMTime() Function
- PHP | DirectoryIterator getPath() Function
- PHP | DirectoryIterator getPathname() Function
- PHP | DirectoryIterator getPerms() Function
- PHP | DirectoryIterator getSize() Function
- PHP | DirectoryIterator getType() Function
- PHP | CachingIterator setFlags() Function
- PHP | CachingIterator rewind() Function
- PHP | CachingIterator next() Function
- PHP | CachingIterator getFlags() Function
- PHP | CachingIterator getInnerIterator() Function
- PHP | CachingIterator key() Function
- PHP | FilesystemIterator rewind() Function
- PHP | FilesystemIterator getFlags() Function
- PHP | FilesystemIterator key() Function
- PHP | FilesystemIterator next() Function
- PHP | DirectoryIterator seek() Function
- PHP | FilesystemIterator __construct() Function
- PHP | FilesystemIterator current() Function
- PHP | DirectoryIterator isLink() Function
- PHP | DirectoryIterator isReadable() Function
- PHP | DirectoryIterator isWritable() Function
- PHP | DirectoryIterator key() Function
- PHP | DirectoryIterator next() Function
- PHP | DirectoryIterator rewind() Function
- How to swap two numbers without using a temporary variable?
- Count the number of ways to tile the floor of size n x m using 1 x m size tiles
- Write a program to calculate pow(x,n)
- Program for Sum of the digits of a given number
- How will you print numbers from 1 to 100 without using loop?
- Write a program to reverse digits of a number
- Given an array A[] and a number x, check for pair in A[] with sum as x
- Majority Element
- Smallest power of 2 greater than or equal to n
- Position of rightmost set bit
- Find the Missing Number
- Minimum number of jumps to reach end
- Search an element in a sorted and rotated array
- Count set bits in an integer
- Divide a string in N equal parts
- Median of two sorted arrays of same size
- Maximum sum such that no two elements are adjacent
- Check for Majority Element in a sorted array
- Find minimum number to be divided to make a number a perfect square
- Find whether a given number is a power of 4 or not
- Recursive Functions
- Maximum difference between two elements such that larger element appears after the smaller number
- Union and Intersection of two sorted arrays
- Total number of possible Binary Search Trees and Binary Trees with n keys
- Ceiling in a sorted array
- Equilibrium index of an array
- Find the two repeating elements in a given array
- Program for Fibonacci numbers
- Rabin-Karp Algorithm for Pattern Searching
- Find the smallest missing number
- Maximum Length Bitonic Subarray | Set 1 (O(n) time and O(n) space)
- A Boolean Matrix Question
- Average of a stream of numbers
- Count total set bits in all numbers from 1 to n
- Longest Non-palindromic substring
- Josephus problem | Set 1 (A O(n) Solution)
- Check whether two strings are anagram of each other
- Binomial Coefficient | DP-9
- Find a triplet that sum to a given value
- Find subarray with given sum | Set 1 (Nonnegative Numbers)
- Find the two numbers with odd occurrences in an unsorted array
- To find sum of two numbers without using any operator
- Draw a circle without floating point arithmetic
- XOR of all subarray XORs | Set 2
- Generate integer from 1 to 7 with equal probability
- Find four elements that sum to a given value | Set 1 (n^3 solution)
- Sort a nearly sorted (or K sorted) array
- Chinese Remainder Theorem | Set 1 (Introduction)
- Find the element that appears once
- Space and time efficient Binomial Coefficient
- Efficient program to calculate e^x
- Binary representation of a given number
- Efficient program to print all prime factors of a given number
- Swap all odd and even bits
- Find position of the only set bit
- Find the maximum repeating number in O(n) time and O(1) extra space
- Check if a number is Palindrome
- Find a peak element
- Print all possible combinations of r elements in a given array of size n
- Optimal Strategy for a Game | DP-31
- Print all possible strings of length k that can be formed from a set of n characters
- Find the maximum distance covered using n bikes
- Russian Peasant (Multiply two numbers using bitwise operators)
- Generate all unique partitions of an integer
- Count all possible paths from top left to bottom right of a mXn matrix
- Sort n numbers in range from 0 to n^2 - 1 in linear time
- Tail Recursion
- Remove minimum elements from either side such that 2*min becomes more than max
- Smallest subarray with sum greater than a given value
- Program for nth Catalan Number
- Swap two nibbles in a byte
- Find the smallest number whose digits multiply to a given number n
- Check if binary representation of a number is palindrome
- Count number of binary strings without consecutive 1's
- Calculate the angle between hour hand and minute hand
- Count Possible Decodings of a given Digit Sequence
- Count ways to reach the n'th stair
- Print squares of first n natural numbers without using *, / and -
- Given two strings, find if first string is a subsequence of second
- Print all increasing sequences of length k from first n natural numbers
- Print all elements in sorted order from row and column wise sorted matrix
- K'th Smallest/Largest Element in Unsorted Array | Set 2 (Expected Linear Time)
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array
- Birthday Paradox
- How to check if an instance of 8 puzzle is solvable?
- Factorial of a large number
- Fill two instances of all numbers from 1 to n in a specific way
- Find length of period in decimal value of 1/n
- Greedy Algorithm for Egyptian Fraction
- Write an iterative O(Log y) function for pow(x, y)
- Calculate square of a number without using *, / and pow()
- Subtract two numbers without using arithmetic operators
- Given a sorted and rotated array, find if there is a pair with a given sum
- Print missing elements that lie in range 0 - 99
- Compute n! under modulo p
- Calculate 7n/8 without using division and multiplication operators
- Euclidean algorithms (Basic and Extended)
- Legendre's formula (Given p and n, find the largest x such that p^x divides n!)
- Euler's Totient Function
- Check if a number can be expressed as x^y (x raised to power y)
- Count frequencies of all elements in array in O(1) extra space and O(n) time
- Compute sum of digits in all numbers from 1 to n
- Find minimum number of coins that make a given value
- Find nth Magic Number
- Minimum steps to reach a destination
- Count factorial numbers in a given range
- Trapping Rain Water
- Find number of solutions of a linear equation of n variables
- Minimum Initial Points to Reach Destination
- Count of n digit numbers whose sum of digits equals to given sum
- Find the length of largest subarray with 0 sum
- Check if a given number is sparse or not
- Find maximum value of Sum( i*arr[i]) with only rotations on given array allowed
- Print a pattern without using any loop
- Square root of an integer
- Sum of bit differences among all pairs
- Count number of ways to partition a set into k subsets
- Find three closest elements from given three sorted arrays
- Generate Pythagorean Triplets
- Find XOR of two number without using XOR operator
- Modular Exponentiation (Power in Modular Arithmetic)
- Find the most frequent digit without using array/string
- Bell Numbers (Number of ways to Partition a Set)
- Multiplicative order
- Primality Test | Set 1 (Introduction and School Method)
- Euler's Totient function for all numbers smaller than or equal to n
- How to check whether a number is in the range[low, high] using one comparison ?
- Sum of Bitwise And of all pairs in a given array
- Count Derangements (Permutation such that no element appears in its original position)
- Primality Test | Set 2 (Fermat Method)
- Count number of ways to divide a number in 4 parts
- Zeckendorf's Theorem (Non-Neighbouring Fibonacci Representation)
- Count number of squares in a rectangle
- Compute nCr % p | Set 2 (Lucas Theorem)
- Chinese Remainder Theorem | Set 2 (Inverse Modulo based Implementation)
- Primality Test | Set 3 (Miller–Rabin)
- Euler's criterion (Check if square root under modulo p exists)
- Find Square Root under Modulo p | Set 1 (When p is in form of 4*i + 3)
- Count Inversions of size three in a given array
- Longest Span with same Sum in two Binary arrays
- Program for Bisection Method
- Program for Newton Raphson Method
- Swap two variables in one line in C/C++, Python, PHP and Java
- Find smallest values of x and y such that ax - by = 0
- Farey Sequence
- Check if count of divisors is even or odd
- Form minimum number from given sequence
- Find all divisors of a natural number | Set 1
- Longest Zig-Zag Subsequence
- Subarray/Substring vs Subsequence and Programs to Generate them
- Count number of subsets having a particular XOR value
- Frobenius coin problem
- Number of perfect squares between two given numbers
- Area of a polygon with given n ordered vertices
- Volume of cube using its space diagonal
- Check perfect square using addition/subtraction
- Find minimum difference between any two elements
- Find lost element from a duplicated array
- Print n x n spiral matrix using O(1) extra space
- How to check if an instance of 15 puzzle is solvable?
- Bitwise Hacks for Competitive Programming
- Count strings with consecutive 1's
- Linear Diophantine Equations
- Minimum number of palindromic subsequences to be removed to empty a binary string
- Inplace rotate square matrix by 90 degrees | Set 1
- Absolute distinct count in a sorted array
- Find all combinations that add upto given number
- Find the minimum difference between Shifted tables of two numbers
- Find smallest number with given number of digits and sum of digits
- Find the Largest number with given number of digits and sum of digits
- Sum of Fibonacci Numbers
- Minimax Algorithm in Game Theory | Set 1 (Introduction)
- Longest Common Increasing Subsequence (LCS + LIS)
- Find number of subarrays with even sum
- Maximum value K such that array has at-least K elements that are >= K
- Find even occurring elements in an array of limited range
- Program to add two fractions
- Count digits in a factorial | Set 1
- Converting Roman Numerals to Decimal lying between 1 to 3999
- Program for Armstrong Numbers
- Maximum sum of i*arr[i] among all rotations of a given array
- Generate 0 and 1 with 25% and 75% probability
- Find all triplets in a sorted array that forms Geometric Progression
- Print first n numbers with exactly two set bits
- Floor in a Sorted Array
- Find profession in a special family
- Implement rand3() using rand2()
- Check if an array can be Arranged in Left or Right Positioned Array
- Stein's Algorithm for finding GCD
- Direction at last square block
- Third largest element in an array of distinct elements
- Find Two Missing Numbers | Set 1 (An Interesting Linear Time Solution)
- Count digit groupings of a number with given constraints
- Non Fibonacci Numbers
- Non-crossing lines to connect points in a circle
- Change if all bits can be made same by single flip
- Swap three variables without using temporary variable
- Multiples of 3 or 7
- Count permutations that produce positive result
- Carmichael Numbers
- Find the minimum value of m that satisfies ax + by = m and all values after m also satisfy
- Finding sum of digits of a number until sum becomes single digit
- Check whether a given number is even or odd
- Print sums of all subsets of a given set
- Length of the Longest Consecutive 1s in Binary Representation
- Gaussian Filter Generation in C++
- Sum of all proper divisors of a natural number
- Count number of solutions of x^2 = 1 (mod p) in given range
- Common Divisors of Two Numbers
- Repeated subtraction among two numbers
- Equal Sum and XOR
- Sum of all numbers that can be formed with permutations of n digits
- Josephus problem | Set 2 (A Simple Solution when k = 2)
- Largest palindrome which is product of two n-digit numbers
- Nth Even Fibonacci Number
- Even Fibonacci Numbers Sum
- Smallest number divisible by first n numbers
- Minimum number of increment/decrement operations such that array contains all elements from 1 to N
- Lucas Numbers
- Number of permutation with K inversions
- Multiples of 4 (An Interesting Method)
- Calculate XOR from 1 to n.
- n'th multiple of a number in Fibonacci Series
- n'th Pentagonal Number
- Harshad (Or Niven) Number
- Deficient Number
- Juggler Sequence
- Padovan Sequence
- Powerful Number
- Hexagonal Number
- Abundant Number
- Count numbers which can be constructed using two numbers
- Find element using minimum segments in Seven Segment Display
- Carol Number
- Multiplying a variable with a constant without using multiplication operator
- Find Maximum XOR value of a sub-array of size k
- Partition of a set into K subsets with equal sum
- Maximum difference of sum of elements in two rows in a matrix
- Count pairs in an array that hold i*arr[i] > j*arr[j]
- Minimum sum of two numbers formed from digits of an array
- The painter's partition problem
- Find sum of modulo K of first N natural number
- Chocolate Distribution Problem
- Program for Chocolate and Wrapper Puzzle
- Highest power of 2 less than or equal to given number
- Count natural numbers whose factorials are divisible by x but not y
- Find the first natural number whose factorial is divisible by x
- Check if two strings are k-anagrams or not
- GCD of two numbers formed by n repeating x and y times
- Efficient method for 2's complement of a binary string
- Program for Perrin numbers
- Sum of Perrin Numbers
- Smallest number with at least n trailing zeroes in factorial
- Minimum number of power terms with sum equal to n
- Last non-zero digit of a factorial
- Smallest number with at least n digits in factorial
- Print all possible consecutive numbers with sum N
- Double factorial
- Write a URL in a C++ program
- Find all elements in array which have at-least two greater elements
- K-th smallest element after removing some integers from natural numbers
- Count of acute, obtuse and right triangles with given sides
- Maximum path sum in a triangle.
- Find a subset with greatest geometric mean
- Minimum Sum Path In 3-D Array
- Sum of the products of all possible Subsets
- N-th root of a number
- Check if elements of array can be made equal by multiplying given prime numbers
- Generation of n numbers with given set of factors
- Find power of power under mod of a prime
- Sum of all Subarrays | Set 1
- Count trailing zero bits using lookup table
- Find all triplets with zero sum
- Print a matrix in alternate manner (left to right then right to left)
- Find the Rotation Count in Rotated Sorted array
- Efficiently check if a string has all unique characters without using any additional data structure
- Rearrange an array in maximum minimum form | Set 2 (O(1) extra space)
- Number with maximum number of prime factors
- Program to find Cullen Number
- Count passing car pairs
- Highway Billboard Problem
- Program for Banker's Algorithm | Set 1 (Safety Algorithm)
- Count all perfect divisors of a number
- N'th palindrome of K digits
- Check if a large number is divisible by 11 or not
- Check if a large number is divisible by 3 or not
- Count of strings that can be formed using a, b and c under given constraints
- Refactorable number
- Maximum sum of hour glass in matrix
- Number Theory | Generators of finite cyclic group under addition
- Maximum consecutive repeating character in string
- Check if a large number is divisible by 4 or not
- Superperfect Number
- Find ways an Integer can be expressed as sum of n-th power of unique natural numbers
- Find longest sequence of 1's in binary representation with one flip
- Prime points (Points that split a number into two primes)
- Check if a large number is divisible by 8 or not
- Count rotations divisible by 4
- Check whether K-th bit is set or not
- Toggling k-th bit of a number
- Search, insert and delete in an unsorted array
- Check if a large number is divisible by 9 or not
- Check if a larger number divisible by 36
- Recaman's sequence
- Check if frequency of each digit is less than the digit
- Count Divisors of n in O(n^1/3)
- Check if the door is open or closed
- Change bits to make specific OR value
- Largest number smaller than or equal to n and digits in non-decreasing order
- Maximum sum of a path in a Right Number Triangle
- Number of even substrings in a string of digits
- Place k elements such that minimum distance is maximized
- Find the next identical calendar year
- Nth Square free number
- Tidy Number (Digits in non-decreasing Order)
- Programs to print Interesting Patterns
- Check if a large number is divisible by 5 or not
- Temple Offerings
- Program to find Star number
- Multiply large integers under large modulo
- Compute nCr % p | Set 3 (Using Fermat Little Theorem)
- Left-Truncatable Prime
- Program to check Strong Number
- Draw a circle without floating point arithmetic
- Linear Search
- Solving f(n)= (1) + (2*3) + (4*5*6) ... n using Recursion
- Program to find sum of elements in a given array
- Program to find largest element in an array
- Program to cyclically rotate an array by one
- Program for factorial of a number
- Program to print all palindromes in a given range
- Decode a given pattern in two ways (Flipkart Interview Question)
- Given a number as a string, find the number of contiguous subsequences which recursively add up to 9
- Print first k digits of 1/n where n is a positive integer
- Efficient Program to Compute Sum of Series 1/1! + 1/2! + 1/3! + 1/4! + .. + 1/n!
- Program to find remainder without using modulo or % operator
- Remove repeated digits in a given number
- How to swap two bits in a given integer?
- How to compute mod of a big number?
- Program to check if a given number is Lucky (all digits are different)
- Check if a given number can be represented in given a no. of digits in any base
- Add two numbers using ++ and/or --
- Numbers whose bitwise OR and sum with N are equal
- Smallest Difference Triplet from Three arrays
- Reverse digits of an integer with overflow handled
- Find a peak element in a 2D array
- Maximum XOR value of a pair from a range
- Inserting m into n such that m starts at bit j and ends at bit i.
- Convert given time into words
- Generate k digit numbers with digits in strictly increasing order
- Find whether a subarray is in form of a mountain or not
- Count numbers whose sum with x is equal to XOR with x
- Given a number n, find the first k digits of n^n
- Determine whether a given number is a Hyperperfect Number
- Number of subarrays for which product and sum are equal
- Minimum steps to delete a string after repeated deletion of palindrome substrings
- Find Index of given fibonacci number in constant time
- Check a large number is divisible by 16 or not
- First digit in product of an array of numbers
- Check if a large number is divisible by 25 or not
- Primality Test | Set 4 (Solovay-Strassen)
- An efficient way to check whether n-th Fibonacci number is multiple of 10
- Fizz Buzz Implementation
- Determine if a string has all Unique Characters
- Find count of digits in a number that divide the number
- Find index of an extra element present in one sorted array
- Check if a number can be written as sum of three consecutive integers
- Count of m digit integers that are divisible by an integer n
- Maximum sum of distinct numbers such that LCM of these numbers is N
- Interesting facts about Fibonacci numbers
- Print numbers 1 to N using Indirect recursion
- Matrix Multiplication | Recursive
- Square root of a number using log
- Perfect cubes in a range
- Mean of array using recursion
- Find n-th element in a series with only 2 digits (4 and 7) allowed
- Automorphic Number
- Closest (or Next) smaller and greater numbers with same number of set bits
- Largest sum subarray with at-least k numbers
- Multiple of x closest to n
- Length Of Last Word in a String
- Sum of product of all pairs of array elements
- Largest Subset with GCD 1
- Check if two numbers are bit rotations of each other or not
- Set the K-th bit of a given number
- Fibonacci modulo p
- Next greater integer having one more number of set bits
- Count of smaller or equal elements in sorted array
- Check if a number is jumbled or not
- Print left rotation of array in O(n) time and O(1) space
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array | Set-2
- Sum of all substrings of a string representing a number | Set 2 (Constant Extra Space)
- Program to calculate the value of sin(x) and cos(x) using Expansion
- Counts paths from a point to reach Origin
- Numbers having Unique (or Distinct) digits
- Find Second largest element in an array
- Regular polygon using only 1s in a binary numbered circle
- Check if a number N starts with 1 in b-base
- Find the Missing Point of Parallelogram
- Count Balanced Binary Trees of Height h
- Recursive Programs to find Minimum and Maximum elements of array
- Find the sum of all the terms in the n-th row of the given series
- Program to print Sum of even and odd elements in an array
- Program to print Lower triangular and Upper triangular matrix of an array
- Find minimum value to assign all array elements so that array product becomes greater
- Find the Longest Increasing Subsequence in Circular manner
- Count pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N)
- Search an element in an unsorted array using minimum number of comparisons
- Number of pairs in an array such that product is greater than sum
- Find if a number is divisible by every number in a list
- Cassini’s Identity
- Centered cube number
- Represent a given set of points by the best possible straight line
- Finding n-th number made of prime digits (2, 3, 5 and 7) only
- Find number of diagonals in n sided convex polygon
- Find all pairs (a, b) in an array such that a % b = k
- Fitting Shelves Problem
- Length of the transverse common tangent between the two non intersecting circles
- Rectangular (or Pronic) Numbers
- Discrete logarithm (Find an integer k such that a^k is congruent modulo b)
- Number of cells a queen can move with obstacles on the chessborad
- Number of n-digits non-decreasing integers
- Find maximum possible stolen value from houses
- Implementing ternary operator without any conditional statement
- Elements of an array that are not divisible by any element of another array
- Check if all bits of a number are set
- Check in binary array the number represented by a subarray is odd or even
- Replace every element of the array with BitWise XOR of all other
- Number of Groups of Sizes Two Or Three Divisible By 3
- Quickly find multiple left rotations of an array | Set 1
- Largest natural number that can be printed with M characters
- Position of rightmost different bit
- Program for Binary To Decimal Conversion
- Previous smaller integer having one less number of set bits
- Count number of strings (made of R, G and B) using given combination
- Count the numbers divisible by 'M' in a given range
- Divide the two given numbers by their common divisors
- Lexicographically smallest rotated sequence | Set 2
- Count number of triplets with product equal to given number
- Find two numbers from their sum and XOR
- Count pairs with Odd XOR
- Maximum product of subsequence of size k
- Program for Stirling Interpolation Formula
- Program for Decimal to Binary Conversion
- Program for Decimal to Octal Conversion
- Unset bits in the given range
- Trailing number of 0s in product of two factorials
- Compute the parity of a number using XOR and table look-up
- Calculate maximum value using '+' or '*' sign between two numbers in a string
- Adam Number
- Program to check if input is an integer or a string
- Count number of pairs (A <= N, B <= N) such that gcd (A , B) is B
- Print last k digits of a^b (a raised to power b)
- Climb n-th stair with all jumps from 1 to n allowed (Three Different Approaches)
- Find an element in Bitonic array
- Check if an array contains all elements of a given range
- Equable Shapes
- Program to find HCF iteratively
- Rotate a Matrix by 180 degree
- Sum of the sequence 2, 22, 222, .........
- Find the smallest number with n set and m unset bits
- Maximize a given unsigned number number by swapping bits at it's extreme positions.
- Evil Number
- Find repeated character present first in a string
- Ways to remove one element from a binary string so that XOR becomes zero
- Program to check if a matrix is symmetric
- Find coordinates of a prime number in a Prime Spiral
- Sum of numbers with exactly 2 bits set
- Print a given matrix in zigzag form
- Number of N digit integers with weight W
- Zeller's Congruence | Find the Day for a Date
- Pell Number
- Largest even number possible by using one swap operation in given number
- Program to find sum of prime numbers between 1 to n
- Form the largest number using at most one swap operation
- Counts Path in an Array
- Set bits in N equals to M in the given range.
- P-Smooth Numbers or P-friable Number
- Print 'K'th least significant bit of a number
- Subarray with XOR less than k
- Compute average of two numbers without overflow
- Twisted Prime Number
- Find minimum sum of factors of number
- Count ways to express a number as sum of consecutive numbers
- Print matrix in snake pattern
- Check if a given number is Pronic
- Find the number closest to n and divisible by m
- Mutual Recursion with example of Hofstadter Female and Male sequences
- Print all possible strings that can be made by placing spaces
- Number of days after which tank will become empty
- Print a matrix in a spiral form starting from a point
- Evaluate a boolean expression represented as string
- Extract 'k' bits from a given position in a number.
- Maximum sum of difference of adjacent elements
- Distributing M items in a circle of size N starting from K-th position
- A modified game of Nim
- Boundary elements of a Matrix
- Efficiently compute sums of diagonals of a matrix
- Sum of all subsequences of an array
- To check a number is palindrome or not without using any extra space
- Count ways to express a number as sum of powers
- Program that receives a number and prints it out in large size
- Recursive solution to count substrings with same first and last characters
- Find multiple of x closest to or a ^ b (a raised to power b)
- Number of unique rectangles formed using N unit squares
- Count of obtuse angles in a circle with 'k' equidistant points between 2 given points
- Find the n-th number whose binary representation is a palindrome
- Count ways to build street under given constraints
- Sum of array elements that is first continuously increasing then decreasing
- Greatest divisor which divides all natural number in range [L, R]
- Number of rectangles in N*M grid
- Program to check if three points are collinear
- Check whether all the bits are set in the given range
- Count even and odd digits in an Integer
- Toggle all bits after most significant bit
- Maximum sum bitonic subarray
- Check if a number is power of 8 or not
- Largest proper fraction with sum of numerator and denominator equal to a given number
- Find if it's possible to rotate the page by an angle or not.
- Symmetric difference of two sorted array
- Find most significant set bit of a number
- Count total bits in a number
- Composite Number
- Possible moves of knight
- Check whether all the bits are unset in the given range or not
- Check whether a number is circular prime or not
- Recursive Tower of Hanoi using 4 pegs / rods
- Program for sum of geometric series
- Golomb sequence
- Check if given array is almost sorted (elements are at-most one position away)
- Taxicab Numbers
- Count unset bits of a number
- Find element at given index after a number of rotations
- Geometric mean (Two Methods)
- Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +.......+ n/n!
- Largest K digit number divisible by X
- Smallest K digit number divisible by X
- Minimum product pair an array of positive Integers
- Difference between highest and least frequencies in an array
- Check if a number has bits in alternate pattern | Set-2 O(1) Approach
- Tribonacci Numbers
- To check whether a large number is divisible by 7
- Row-wise common elements in two diagonals of a square matrix
- Program to count digits in an integer (4 Different Methods)
- Number of ways to arrange N items under given constraints
- Maximum Possible Product in Array after performing given Operations
- Number of closing brackets needed to complete a regular bracket sequence
- Number of subarrays having product less than K
- Program for cube sum of first n natural numbers
- Minimum number of increment-other operations to make all array elements equal.
- Program for sum of arithmetic series
- Steps to make array empty by removing maximum and its right side
- Minimum and Maximum sum of absolute differences of pairs
- Program to print multiplication table of a number
- Check if a string is suffix of another
- Array element moved by k using single moves
- Program for diamond pattern with different layers
- Find the Majority Element | Set 3 (Bit Magic)
- Minimum Possible value of |ai + aj - k| for given array and k.
- Express an odd number as sum of prime numbers
- Minimum element whose n-th power is greater than product of an array of size n
- Sum of all subsets of a set formed by first n natural numbers
- Count of substrings of a binary string containing K ones
- Find the last digit when factorial of A divides factorial of B
- Longest alternating sub-array starting from every index in a Binary Array
- Number of compositions of a natural number
- Series with largest GCD and sum equals to n
- Check whether a number has exactly three distinct factors or not
- Program to find Sum of a Series a^1/1! + a^2/2! + a^3/3! + a^4/4! +…….+ a^n/n!
- Minimal operations to make a number magical
- Check if number is palindrome or not in Octal
- Happy Numbers
- Rearrange a binary string as alternate x and y occurrences
- Find all factorial numbers less than or equal to n
- Ways to color a 3*N board using 4 colors
- Unique cells in a binary matrix
- Check if a number is power of k using base changing method
- Leonardo Number
- Minimum cost to connect weighted nodes represented as array
- Check whether an array can be made strictly decreasing by modifying at most one element
- Smallest integer with digit sum M and multiple of N
- Mean of range in array
- Number of Binary Trees for given Preorder Sequence length
- Maximize the sum of arr[i]*i
- Maximize value of (a[i]+i)*(a[j]+j) in an array
- Count number of elements between two given elements in array
- Ways to express a number as product of two different factors
- Counting inversions in all subarrays of given size
- Find single in an array of 2n+1 integer elements
- Program to find compound interest
- Programming puzzle (Assign value without any control statement)
- Program for Area Of Square
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse
- Minimum cost to sort a matrix of numbers from 0 to n^2 - 1
- Program to find Circumference of a Circle
- Print digit's position to be removed to make a number divisible by 6
- Check if the product of digit sum and its reverse equals the number or not
- Find the frequency of a number in an array
- Program for harmonic mean of numbers
- Sum of Binomial coefficients
- Program to find GCD of floating point numbers
- Count set bits in a range
- Find n-th term in the series 9, 33, 73,129 ...
- Program for Volume and Surface Area of Cuboid
- Queries for the product of first N factorials
- Maximum sum subsequence with at-least k distant elements
- Biggest integer which has maximum digit sum in range from 1 to n
- Program for weighted mean of natural numbers.
- Program to find correlation coefficient
- GCD of factorials of two numbers
- Modify a bit at a given position
- Spy Number (Sum and Products of Digits are same)
- Check if a number is Full Prime
- Find n-th term in the series 7, 15, 32, ...
- Check if two numbers are co-prime or not
- Recursive sum of digits of a number is prime or not
- Arc length from given Angle
- Ways to paint stairs with two colors such that two adjacent are not yellow
- Minimum number of elements to add to make median equals x
- Divisibility by 64 with removal of bits allowed
- Count ways to express even number ‘n’ as sum of even integers
- Maximum value with the choice of either dividing or considering as it is
- Game of N stones where each player can remove 1, 3 or 4
- Sum of digits of a given number to a given power
- Iterated Logarithm log*(n)
- Number of digits to be removed to make a number divisible by 3
- Only integer with positive value in positive negative value in array
- Program to check for Peterson number
- Minimum 1s to lend power to make whole array powerful
- Program to find remainder when large number is divided by 11
- Program to check for ISBN
- Representation of a number in powers of other
- Check whether the given array is perfect or not
- Ways to color a skewed tree such that parent and child have different colors
- Print Number series without using any loop
- Largest smaller number possible using only one swap operation
- Divisors of n-square that are not divisors of n
- Exponential Squaring (Fast Modulo Multiplication)
- Generate a pythagoras triplet from a single integer
- Total no of 1's in numbers
- Products of ranges in an array
- Given a large number, check if a subsequence of digits is divisible by 8
- Number of subsequences as "ab" in a string repeated K times
- Maximum of smallest possible area that can get with exactly k cut of given rectangular
- Finding the best fit rectangle that covers a given point
- Icosagonal number
- Pair formation such that maximum pair sum is minimized
- Check whether a number can be represented by sum of two squares
- Maximum and Minimum value of a quadratic function
- Count different numbers that can be generated such that there digits sum is equal to 'n'
- Minimum gcd operations to make all array elements one
- Prime factors of a big number
- One line function for factorial of a number
- Find element in array that divides all array elements
- Program to swap upper diagonal elements with lower diagonal elements of matrix.
- Check if a number is positive, negative or zero using bit operators
- Check if a large number is divisible by 13 or not
- Smallest number whose set bits are maximum in a given range
- Minimize (max(A[i], B[j], C[k]) - min(A[i], B[j], C[k])) of three different sorted arrays
- Find combined mean and variance of two series
- Largest number with binary representation is m 1's and m-1 0's
- Prime Numbers
- Deserium Number
- Probability of a random pair being the maximum weighted pair
- Number of n digit stepping numbers
- Find if a number is part of AP whose first element and difference are given
- Program to find the minimum (or maximum) element of an array
- Find n-th term in series 1 2 2 3 3 3 4 4 4 4....
- Find the sum of the series 1+11+111+1111+..... upto n terms
- Sum of the Series 1 + x/1 + x^2/2 + x^3/3 + .. + x^n/n
- Find n-th term of series 1, 3, 6, 10, 15, 21...
- Sum of the series 1, 3, 6, 10... (Triangular Numbers)
- Program to calculate distance between two points
- Find trace of matrix formed by adding Row-major and Column-major order of same matrix
- n-th term in series 2, 12, 36, 80, 150....
- Program to find smallest difference of angles of two parts of a given circle
- Check for integer overflow on multiplication
- Even-odd turn game with two integers
- Sum of first n even numbers
- Program to find the number of region in Planar Graph
- Sum of squares of first n natural numbers
- Sum of natural numbers using recursion
- Schröder–Hipparchus number
- The painter's partition problem | Set 2
- Find the number of stair steps
- Sexy Prime
- Program to find third side of triangle using law of cosines
- Narcissistic number
- Count pairs in array whose sum is divisible by 4
- Program to determine the quadrant of the cartesian plane
- Motzkin number
- Probability of choosing a random pair with maximum sum in an array
- AKS Primality Test
- N-th polite number
- Find first and last digits of a number
- Break a number such that sum of maximum divisors of all parts is minimum
- Count numbers with unit digit k in given range
- Sum of squares of first n natural numbers
- Find last index of a character in a string
- Count of suffix increment/decrement operations to construct a given array
- Program to compute division upto n decimal places
- Check whether second string can be formed from characters of first string
- Program to check if tank will overflow, underflow or filled in given time
- Maximize volume of cuboid with given sum of sides
- Newman–Shanks–Williams prime
- Program to check if matrix is lower triangular
- Program to find Perimeter / Circumference of Square and Rectangle
- Largest number that divides x and is co-prime with y
- Pascal Matrix
- Check if given number is Emirp Number or not
- Minimum insertions to make a Co-prime array
- Program to check if water tank overflows when n solid balls are dipped in the water tank
- Find largest prime factor of a number
- Program for Binomial Coefficients table
- Rearrange array such that even positioned are greater than odd
- Sum of the series 1 + (1+2) + (1+2+3) + (1+2+3+4) + ...... + (1+2+3+4+...+n)
- Count number of increasing subsequences of size k
- Sum of all divisors from 1 to n
- Minimum flip required to make Binary Matrix symmetric
- Sum of Manhattan distances between all pairs of points
- Decimal to binary number using recursion
- Check if n is divisible by power of 2 without using arithmetic operators
- Multiplication with a power of 2
- Section formula (Point that divides a line in given ratio)
- Find the distance covered to collect items at equal distances
- Program to calculate area and volume of a Tetrahedron
- Maximum binomial coefficient term value
- Sum of digit of a number using recursion
- Program to print triangular number series till n
- Program to convert given number of days in terms of Years, Weeks and Days
- Leibniz harmonic triangle
- Maximum possible elements which are divisible by 2
- Check whether given floating point number is even or odd
- Euler Method for solving differential equation
- Program for triangular patterns of alphabets
- Find last k digits in product of an array numbers
- Binary to Gray code using recursion
- Find nth Fibonacci number using Golden ratio
- Check if it is possible to make array equal by doubling or tripling
- Count subsequence of length three in a given string
- Program to get the Sum of series: 1 - x^2/2! + x^4/4! -.... upto nth term
- Special two digit number
- Program to find the sum of a Series (1*1) + (2*2) + (3*3) + (4*4) + (5*5) + ... + (n*n)
- Trinomial Triangle
- Value of k-th index of a series formed by append and insert MEX in middle
- Newman-Conway Sequence
- Round the given number to nearest multiple of 10
- Twin Prime Numbers
- Program to print characters present at prime indexes in a given string
- Program for Simpson's 1/3 Rule
- Program to find sum of series 1 + 2 + 2 + 3 + 3 + 3 + . . . + n
- Sum of squares of binomial coefficients
- Sum of the series 2 + (2+4) + (2+4+6) + (2+4+6+8) + …… + (2+4+6+8+….+2n)
- Sum of Arithmetic Geometric Sequence
- Range Query on array whose each element is XOR of index value and previous element
- Check if array contains contiguous integers with duplicates allowed
- Decagonal Numbers
- Program to determine focal length of a spherical mirror
- Count numbers in range L-R that are divisible by all of its non-zero digits
- Count ways to reach the nth stair using step 1, 2 or 3
- Find remainder of array multiplication divided by n
- Program for Stair Case Patterns
- Check if all digits of a number divide it
- Find last element after deleting every second element in array of n integers
- Find the average of first N natural numbers
- Program to convert Centimeter to Feet and Inches
- Recursive sum of digit in n^x, where n and x are very large
- Possible to make a divisible by 3 number using all digits in an array
- Program to print the pattern ‘D’
- Kronecker Product of two matrices
- C Program for Find the perimeter of a cylinder
- Program to calculate area of a Tetrahedron
- Median and Mode using Counting Sort
- Aliquot sum
- Find unit digit of x raised to power y
- Jacobsthal and Jacobsthal-Lucas numbers
- Product of 2 Numbers using Recursion
- Sum of fourth powers of the first n natural numbers
- Number of substrings with odd decimal value in a binary string
- Closest numbers from a list of unsorted integers
- Sum of the series 0.6, 0.06, 0.006, 0.0006, ...to n terms
- Sum of the series 0.7, 0.77, 0.777, ... upto n terms
- Wave Patterns
- Smallest number with sum of digits as N and divisible by 10^N
- Program to check diagonal matrix and scalar matrix
- Sum of fifth powers of the first n natural numbers
- Sum of fourth power of first n even natural numbers
- Trimorphic Number
- Perfect Square String
- Print the pyramid pattern with given height and minimum number of stars
- Count number of trailing zeros in product of array
- Find the position of the last removed element from the array
- Generate all the binary number from 0 to n
- Toggle bits of a number except first and last bits
- Count square and non-square numbers before n
- Program to print non square numbers
- Sum of fourth powers of first n odd natural numbers
- Making elements distinct in a sorted array by minimum increments
- Find the Number which contain the digit d
- Find N integers with given difference between product and sum
- Find if it is possible to get a ratio from given ranges of costs and quantities
- First uppercase letter in a string (Iterative and Recursive)
- Check if the given number K is enough to reach the end of an array
- Maximum difference of zeros and ones in binary string | Set 2 (O(n) time)
- Program to implement t-test
- Set all odd bits of a number
- Cartesian Product of Two Sets
- Sum of the alphabetical values of the characters of a string
- Sum of series 2/3 - 4/5 + 6/7 - 8/9 + ------- upto n terms
- Average of first n odd naturals numbers
- Average of first n even natural numbers
- Sum of the series 1 / 1 + (1 + 2) / (1 * 2) + (1 + 2 + 3) / (1 * 2 * 3) + - - - - - - upto n terms.
- Set all even bits of a number
- Space efficient iterative method to Fibonacci number
- Divisibility by 12 for a large number
- Sum of series 1^2 + 3^2 + 5^2 + . . . + (2*n - 1)^2
- Program to find the mid-point of a line
- Print Fibonacci Series in reverse order
- Square Free Number
- Number of distinct subsets of a set
- Recursive program for prime number
- Count pairs from two sorted matrices with given sum
- Find the center of the circle using endpoints of diameter
- Leaf nodes from Preorder of a Binary Search Tree (Using Recursion)
- Nonagonal number
- Tomohiko Sakamoto's Algorithm- Finding the day of the week
- Remove all outgoing edges except edge with minimum weight
- Sum of Series (n^2-1^2) + 2(n^2-2^2) +....n(n^2-n^2)
- Check if a number is sandwiched between primes
- Print a matrix in Reverse Wave Form
- Minimum number of mails required to distribute all the questions
- Find n-th term of series 3, 9, 21, 41, 71...
- Program to check Plus Perfect Number
- Area of a Hexagon
- Sum of the series 5+55+555+.. up to n terms
- Sum of consecutive two elements in a array
- Inverse Permutation
- Program to print Swastika Pattern
- Front and Back Search in unsorted array
- Non-Repeating Element
- Check if a given circle lies completely inside the ring formed by two concentric circles
- Program for N-th term of Geometric Progression series
- Time when minute hand and hour hand coincide
- Area of hexagon with given diagonal length
- Sum of largest divisible powers of p (a prime number) in a range
- Maximum XOR-value of at-most k-elements from 1 to n
- Fast average of two numbers without division
- Program for N-th term of Arithmetic Progression series
- Octahedral Number
- Program to print GP (Geometric Progression)
- Program to print Arithmetic Progression series
- Check if given number is perfect square
- Maximum sum of increasing order elements from n arrays
- Primality Test | Set 5(Using Lucas-Lehmer Series)
- Minimum swaps required to bring all elements less than or equal to k together
- Check whether a given matrix is orthogonal or not
- Power of a prime number ‘r’ in n!
- Print bitwise AND set of a number N
- Division without using '/' operator
- Print first n Fibonacci Numbers using direct formula
- N-th term of George Cantor set of rational numbers
- Find square root of number upto given precision using binary search
- Sum of n digit numbers divisible by a given number
- Check if a line passes through the origin
- Product of given N fractions in reduced form
- Rencontres Number (Counting partial derangements)
- Fermat's Last Theorem
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Probability for three randomly chosen numbers to be in AP
- Sum of pairwise products
- Find the only repetitive element between 1 to n-1
- Number of subarrays with given product
- Find n-th Fortunate Number
- Sum of each element raised to (prime-1) % prime
- Invert actual bits of a number
- Coordinates of rectangle with given points lie inside
- Undulating numbers
- Number of palindromic permutations | Set 1
- Centered Octadecagonal Number
- LCM of factorial and its neighbors
- Product of unique prime factors of a number
- Find sum of Series with n-th term as n^2 - (n-1)^2
- Minimum removals to make array sum even
- Variance and standard-deviation of a matrix
- Inclusion Exclusion principle and programming applications
- Triangular Matchstick Number
- Smallest triangular number larger than p
- Smallest even digits number not less than N
- Find n-th element from Stern's Diatomic Series
- Largest even digit number not greater than N
- Almost Perfect Number
- Count numbers from range whose prime factors are only 2 and 3
- Number with even sum of digits
- Sum of product of each element with each element after it
- Square pyramidal number (Sum of Squares)
- Squared triangular number (Sum of cubes)
- N-th number which is both a square and a cube
- Reach A and B by multiplying them with K and K^2 at every step
- Center element of matrix equals sums of half diagonals
- First digit in factorial of a number
- Number of integers with odd number of set bits
- Number of solutions to Modular Equations
- Legendre's Conjecture
- Decimal Equivalent of Gray Code and its Inverse
- Smallest greater elements in whole array
- Cube Free Numbers smaller than n
- Finding a Non Transitive Coprime Triplet in a Range
- Space optimization using bit manipulations
- Maximum Subarray Sum Excluding Certain Elements
- Equalizing array using increment under modulo 3
- Euler's Four Square Identity
- Tetrahedral Numbers
- Find duplicates in constant array with elements 0 to N-1 in O(1) space
- Bertrand's Postulate
- Number of subarrays having sum less than K
- Brahmagupta Fibonacci Identity
- Height of a complete binary tree (or Heap) with N nodes
- Reaching a point using clockwise or anticlockwise movements
- Maximum difference between groups of size two
- DFA for Strings not ending with "THE"
- Program to check if first and the last characters of string are equal
- Ways to split string such that each partition starts with distinct character
- Check if it possible to partition in k subarrays with equal sum
- Check if two people starting from different points ever meet
- Prime String
- Check whether a number is Emirpimes or not
- Number of prefix sum prime in given range query
- Number of Digits in a^b
- Moser-de Bruijn Sequence
- Hardy-Ramanujan Theorem
- Lagrange's four square theorem
- Nesbitt's Inequality
- Possible two sets from first N natural numbers difference of sums as D
- Sum of digits written in different bases from 2 to n-1
- Ways to multiply n elements with an associative operation
- Bitwise recursive addition of two integers
- Blum Integer
- Program for sum of cos(x) series
- Making zero array by decrementing pairs of adjacent
- Program for scalar multiplication of a matrix
- Check a number is odd or even without modulus operator
- Maximize array elements upto given number
- Repeated Unit Divisibility
- Maximum sum increasing subsequence from a prefix and a given element after prefix is must
- Sum of range in a series of first odd then even natural numbers
- Finding n-th term of series 3, 13, 42, 108, 235…
- Powers of 2 to required sum
- Check if all occurrences of a character appear together
- Sub array sum is prime or not
- Number of ways an array can be filled with 0s and 1s such that no consecutive elements are 1
- Check divisibility of binary string by 2^k
- Minimum product subset of an array
- Multiply any Number with 4 using Bitwise Operator
- Program to print Collatz Sequence
- Divisibility by 3 where each digit is the sum of all prefix digits modulo 10
- Program to print all the numbers divisible by 3 and 5 for a given number
- Maximum equlibrium sum in an array
- Making elements of two arrays same with minimum increment/decrement
- Maximum height of triangular arrangement of array values
- Program to print Reverse Floyd's triangle
- Minimum operations to make GCD of array a multiple of k
- Number of digits in the nth number made of given four digits
- Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
- Cake number
- Dodecagonal number
- Centered triangular number
- Swapping four variables without temporary variable
- Dodecahedral number
- Centered tetrahedral number
- Centered heptagonal number
- Program for Centered Icosahedral Number
- Centered pentagonal number
- Centered Octahedral number
- Check if sum of divisors of two numbers are same
- Program to reverse a string (Iterative and Recursive)
- Hexadecagonal number
- Heptadecagonal number
- Pentatope number
- Sum of series 1*1! + 2*2! + ……..+ n*n!
- Product of first N factorials
- Centered Octagonal Number
- Icosahedral Number
- Enneadecagonal number
- Centered decagonal number
- Construct array having X subsequences with maximum difference smaller than d
- Centered nonadecagonal number
- Check if it is possible to make the given matrix increasing matrix or not
- Hendecagonal number
- Number of arrays of size N whose elements are positive integers and sum is K
- Centered Pentadecagonal Number
- Ways to choose three points with distance between the most distant points <= L
- Centered dodecahedral number
- Centered Hexadecagonal Number
- Icosidigonal number
- Tetradecagonal number
- Program to convert centimeter into meter and kilometer
- Centered tridecagonal number
- Minimum cost to equal all elements of array using two operation
- Number expressed as sum of five consecutive integers
- Number of digits in N factorial to the power N
- Set the rightmost unset bit
- Check if given number is a power of d where d is a power of 2
- How to turn on a particular bit in a number?
- K-th smallest element after removing given integers from natural numbers | Set 2
- Pentagonal Pyramidal Number
- Maximize the bitwise OR of an array
- Check if mirror image of a number is same if displayed in seven segment display
- Number of Distinct Meeting Points on a Circular Road
- Check if array sum can be made K by three operations on it
- Sum of product of consecutive Binomial Coefficients
- Check if the n-th term is odd or even in a Fibonacci like sequence
- Heptagonal number
- Pentatope number
- Make array elements equal in Minimum Steps
- Maximum Sum Decreasing Subsequence
- Multiply the given number by 2 such that it is divisible by 10
- Program to find greater value between a^n and b^n
- Number of elements with even factors in the given range
- Print all pairs with given sum
- Print all triplets with given sum
- Number of ones in the smallest repunit
- Number of squares of maximum area in a rectangle
- Stormer Numbers
- Check if array can be divided into two sub-arrays such that their absolute difference is K
- Compute power of power k times % m
- Program to check similarity of given two triangles
- Program to calculate the Surface Area of a Triangular Prism
- Maximum number by concatenating every element in a rotation of an array
- Memoization (1D, 2D and 3D)
- Number of triangles in a plane if no more than two points are collinear
- Make all numbers of an array equal
- Remove leading zeros from an array
- Number of odd and even results for every value of x in range [min, max] after performing N steps
- Reduce string to shortest length by deleting a pair of same adjacent characters
- Total number of ways to place X and Y at n places such that no two X are together
- Maximum number of ones in a N*N matrix with given constraints
- Program to find the Area and Volume of Icosahedron
- Element which occurs consecutively in a given subarray more than or equal to K times
- Check if concatenation of two strings is balanced or not
- Sum of all elements up to Nth row in a Pascal triangle
- Check if a number has same number of set and unset bits
- Check if the large number formed is divisible by 41 or not
- Program to determine the octant of the axial plane
- Number of different cyclic paths of length N in a tetrahedron
- Find the Nth Mosaic number
- Find index of first occurrence when an unsorted array is sorted
- Mirror of a point through a 3 D plane
- Print all the combinations of N elements by changing sign such that their sum is divisible by M
- Sorting without comparison of elements
- Sum of similarities of string with all of its suffixes
- Find the multiple of x which is closest to a^b
- Calculating n-th real root using binary search
- Maximum power of jump required to reach the end of string
- Check if bits in range L to R of two numbers are complement of each other or not
- Longest subsequence whose average is less than K
- Convert time from 24 hour clock to 12 hour clock format
- Count pairs with Bitwise XOR as ODD number
- Tetranacci Numbers
- Count the number of pairs that have column sum greater than row sum
- Check if a number is in given base or not
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Modulus of all pairwise consecutive elements in an Array
- Find the Missing Number in a sorted array
- Maximum set bit sum in array without considering adjacent elements
- Comparing leading zeros in binary representations of two numbers
- Find sum of inverse of the divisors when sum of divisors and the number is given
- Minimum element in a max heap
- Majority element in a circular array of 0's and 1's
- Value in a given range with maximum XOR
- Count number of triplets with product equal to given number | Set 2
- Ways to place K bishops on an N×N chessboard so that no two attack
- Count pairs in a sorted array whose product is less than k
- Program to check whether 4 points in a 3-D plane are Coplanar
- Find the largest twins in given range
- Number of divisors of a given number N which are divisible by K
- Number of prime pairs in an array
- Find out the correct position of the ball after shuffling
- Find Multiples of 2 or 3 or 5 less than or equal to N
- 2's compliment for a givin string using XOR
- Recursive program to print triangular patterns
- Find the number after successive division
- Program to calculate Root Mean Square
- Find any pair with given GCD and LCM
- Count the number of ways to traverse a Matrix
- Count number of integers less than or equal to N which has exactly 9 divisors
- Count Unary Numbers in a Range
- Find number of magical pairs of string of length L
- Count the number of carry operations required to add two numbers
- Number of values of b such that a = b + (a^b)
- Program to find the Nth Harmonic Number
- Program to find the Radius of the incircle of the triangle
- Program to calculate the value of nCr Efficiently
- Check if an array is Wave Array
- Find 'N' number of solutions with the given inequality equations
- Minimum changes required to make first string substring of second string
- Print a number strictly less than a given number such that all its digits are distinct.
- Number of solutions of n = x + n ⊕ x
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle
- Sum of first N natural numbers by taking powers of 2 as negative number
- Check if a number has digits in the given Order
- How to access elements of a Square Matrix
- Area of a square inscribed in a circle which is inscribed in a hexagon
- Subset array sum by generating all the subsets
- Sum of the first N Prime numbers
- Radius of the biggest possible circle inscribed in rhombus which in turn is inscribed in a rectangle
- Find the total Number of Digits in (N!)N
- Check if the sum of digits of a number N divides it
- Sum of all the prime numbers in a given range
- Find the unit place digit of sum of N factorials
- Sum of squares of Fibonacci numbers
- Find normal at a given point on the curve
- Program to find the side of the Octagon inscribed within the square
- Find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 ...
- Number of distinct integers obtained by lcm(X, N)/X
- Program to Calculate the Perimeter of a Decagon
- Count of common multiples of two numbers in a range
- Program to calculate area of inner circle which passes through center of outer circle and touches its circumference
- Program to find sum of 1 + x/2! + x^2/3! +...+x^n/(n+1)!
- Maximum count of equal numbers in an array after performing given operations
- Check if the given vectors are at equilibrium or not
- Find if a molecule can be formed from 3 atoms using their valence numbers
- Largest number divisible by 90 that can be made using 0 and 5
- Count number of ordered pairs with Even and Odd Product
- Minimum and Maximum element of an array which is divisible by a given number k
- Print a number containing K digits with digital root D
- Minimum number of bottles required to fill K glasses
- Find sum of N-th group of Natural Numbers
- Sum of first N natural numbers which are divisible by 2 and 7
- Section formula for 3 D
- Triplet pair (a, b, c) such that a+b, b+c and a+c are all divisible by K
- Print array elements in alternatively increasing and decreasing order
- Check whether bitwise OR of N numbers is Even or Odd
- Check if a number is an Achilles number or not
- Minimum boxes required to carry all gifts
- Program to find count of numbers having odd number of divisors in given range
- Check if a string contains a palindromic sub-string of even length
- Find number of Positional Elements
- Round to next smaller multiple of 8
- Number of leading zeros in binary representation of a given number
- Replace every element of the array by product of all other elements
- Number of segments where all elements are greater than X
- Replace every array element by sum of previous and next
- Rearrange an array to maximize i*arr[i]
- Calculate volume and surface area of Torus
- String matching with * (that matches with any) in any of the two strings
- Assign other value to a variable from two possible values
- Minimize Cost with Replacement with other allowed
- Longest subarray with elements divisible by k
- Primality test for the sum of digits at odd places of a number
- Get maximum items when other items of total cost of an item are free
- Find middle point segment from given segment lengths
- Count subarrays with all elements greater than K
- Equation of ellipse from its focus, directrix, and eccentricity
- Minimum number of operations required to reduce N to 1
- Find the total marks obtained according to given marking scheme
- Maximum area of rectangle possible with given perimeter
- Area of decagon inscribed within the circle
- Program to find the smallest element among three elements
- N digit numbers divisible by 5 formed from the M digits
- Find the sum of first N odd Fibonacci numbers
- Number of cells in the right and left diagonals passing through (x, y) in a matrix
- Count number less than N which are product of perfect squares
- Smallest odd digits number not less than N
- Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts
- Largest number not greater than N all the digits of which are odd
- Check if any permutation of a number is divisible by 3 and is Palindromic
- Maximum sum and product of the M consecutive digits in a number
- Partition an array such into maximum increasing segments
- Minimum cuts required to divide the Circle into equal parts
- Smallest subarray such that all elements are greater than K
- Largest cube that can be inscribed within the sphere
- Largest sphere that can be inscribed inside a cube
- Program to find the profit or loss when CP of N items is equal to SP of M items
- Change K elements so that (a1^2 + a2^2 + …+ aN^2 ) <= (a1 + a2 +…+ aN) becomes true
- Find minimum operations needed to make an Array beautiful
- Minimum number of cuts required to make circle segments equal sized
- Game of stones
- Find two numbers with sum and product both same as N
- Number of matches required to find the winner
- Maximum no. of apples that can be kept in a single basket
- Fibonacci problem (Value of Fib(N)*Fib(N) - Fib(N-1) * Fib(N+1))
- Find the player who rearranges the characters to get a palindrome string first
- Count pairs of numbers from 1 to N with Product divisible by their Sum
- Check if a number is formed by Concatenation of 1, 14 or 144 only
- Program to find the sum of the series (1/a + 2/a^2 + 3/a^3 + ... + n/a^n)
- Print a case where the given sorting algorithm fails
- Probability of getting more value in third dice throw
- Number of ways to swap two bit of s1 so that bitwise OR of s1 and s2 changes
- Maximum number of parallelograms that can be made using the given length of line segments
- Sum of all natural numbers in range L to R
- Minimum steps to convert one binary string to other only using negation
- Minimize the number of steps required to reach the end of the array
- Program to print 'N' alphabet using the number pattern from 1 to n
- Largest cube that can be inscribed within a right circular cylinder
- Count pairs with Bitwise XOR as EVEN number
- Number of pairs with Bitwise OR as Odd number
- Count pairs with Bitwise-AND as even number
- Count Numbers with N digits which consists of even number of 0’s
- Find determinant of matrix generated by array rotation
- Largest right circular cylinder that can be inscribed within a cone
- Nth number made up of odd digits only
- Find minimum steps required to reach the end of a matrix | Set - 1
- Find position of left most dis-similar bit for two numbers
- Distance between two nodes of binary tree with node values from 1 to N
- Range and Coefficient of range of Array
- Minimum elements to change so that for an index i all elements on the left are -ve and all elements on the right are +ve
- Program to find first N Iccanobif Numbers
- Find the Nth term of the series 14, 28, 20, 40,.....
- Minimum range increment operations to Sort an array
- Find the sum of Eigen Values of the given N*N matrix
- Largest number less than N with digit sum greater than the digit sum of N
- Check If every group of a's is followed by a group of b's of same length
- Sum of first N natural numbers which are divisible by X or Y
- Smallest Pair Sum in an array
- Construct a binary string following the given constraints
- Larger of a^b or b^a (a raised to power b or b raised to power a)
- Find the only different element in an array
- Reduce the array to a single element with the given operation
- Number of Binary Strings of length N with K adjacent Set Bits
- Sum of the multiples of two numbers below N
- Split a number into 3 parts such that none of the parts is divisible by 3
- Closest perfect square and its distance
- Count sub-sets that satisfy the given condition
- Integers from the range that are composed of a single distinct digit
- Find nth Hermite number
- Lower Insertion Point
- Longest Subsequence where index of next element is arr[arr[i] + i]
- Minimum number of consecutive sequences that can be formed in an array
- Sum of elements from an array having even parity
- Side of a regular n-sided polygon circumscribed in a circle
- Check if the sum of distinct digits of two integers are equal
- Largest Square that can be inscribed within a hexagon
- Program to check the number is Palindrome or not
- Find the maximum possible value of the minimum value of modified array
- Diagonal of a Regular Hexagon
- Number of array elements derivable from D after performing certain operations
- Pairs from an array that satisfy the given condition
- Largest hexagon that can be inscribed within a square
- Count common prime factors of two numbers
- Diagonal of a Regular Decagon
- Generate all rotations of a number
- Minimum absolute difference between N and a power of 2
- Maximum value of arr[i] % arr[j] for a given array
- Program to find nth term of the series 1 4 15 24 45 60 92
- Program to delete Nth digit of a Number
- First and Last Three Bits
- Smallest perfect square divisible by all elements of an array
- Ways to paint N paintings such that adjacent paintings don't have same colors
- Largest square that can be inscribed within a hexagon which is inscribed within an equilateral triangle
- Check whether two straight lines are orthogonal or not
- Program for Area Of Square after N-th fold
- Make all elements of an array equal with the given operation
- Count of pairs of (i, j) such that ((n % i) % j) % n is maximized
- Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
- Minimum positive integer divisible by C and is not in range [A, B]
- Filling diagonal to make the sum of every row, column and diagonal equal of 3x3 matrix
- Closest sum partition (into two subsets) of numbers from 1 to n
- Minimum operations required to make all the array elements equal
- Check whether Bishop can take down Pawn or not
- Count the total number of squares that can be visited by Bishop in one move
- Minimum spanning tree cost of given Graphs
- Maximum sum after repeatedly dividing N by a divisor
- Minimum steps to make the product of the array equal to 1
- Find the values of X and Y in the Given Equations
- Choose points from two ranges such that no point lies in both the ranges
- Find maximum operations to reduce N to 1
- Find frequency of smallest value in an array
- Find Intersection of all Intervals
- Maximize big when both big and small can be exchanged
- Minimum number of operations on an array to make all elements 0
- Count the number of rhombi possible inside a rectangle of given size
- Program to calculate the area between two Concentric Circles
- Count of quadruplets from range [L, R] having GCD equal to K
- Total number of days taken to complete the task if after certain days one person leaves
- Composite numbers with digit sum 1
- Length of the longest alternating subarray
- Numbers less than N that are perfect cubes and the sum of their digits reduced to a single digit is 1
- Minimize the sum of squares of sum of N/2 paired formed by N numbers
- Maximum positive integer divisible by C and is in the range [A, B]
- Position of a person diametrically opposite on a circle
- Longest Sub-array with maximum average value
- Ways to Remove Edges from a Complete Graph to make Odd Edges
- Check if product of digits of a number at even and odd places is equal
- Minimum matches the team needs to win to qualify
- Find smallest number K such that K % p = 0 and q % K = 0
- Sum of all odd factors of numbers in the range [l, r]
- Count permutations that are first decreasing then increasing.
- Count numbers having N 0's and and M 1's with no leading zeros
- Print the balanced bracket expression using given brackets
- Count of numbers having only 1 set bit in the range [0, n]
- Encrypt a string by repeating i-th character i times
- Minimum cost to form a number X by adding up powers of 2
- Kth odd number in an array
- Check if the given array is mirror-inverse
- Count pairs in array whose sum is divisible by K
- Count how many times the given digital clock shows identical digits
- Find maximum N such that the sum of square of first N natural numbers is not more than X
- Generate array with minimum sum which can be deleted in P steps
- Count rotations of N which are Odd and Even
- Count of pairs from 1 to a and 1 to b whose sum is divisible by N
- Check if Matrix remains unchanged after row reversals
- Smallest and Largest N-digit perfect squares
- Minimum length of square to contain at least half of the given Coordinates
- Largest number N which can be reduced to 0 in K steps
- Find the number of ways to divide number into four parts such that a = c and b = d
- Smallest index in the given array that satisfies the given condition
- Programs for printing pyramid patterns using recursion
- Predict the winner in Coin Game
- Number of ways to go from one point to another in a grid
- Replace array elements by sum of next two consecutive elements
- Maximum array sum that can be obtained after exactly k changes
- Count the number of non-increasing subarrays
- Maximum sum after K consecutive deletions
- Number of ways for playing first move optimally in a NIM game
- Find the value of N when F(N) = f(a)+f(b) where a+b is the minimum possible and a*b = N
- Remove elements to make array sorted
- Count of quadruplets with given Sum
- Maximize the maximum subarray sum after removing atmost one element
- Product of all Subsequences of size K except the minimum and maximum Elements
- Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
- Check if a number from every row can be selected such that xor of the numbers is greater than zero
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Find maximum product of digits among numbers less than or equal to N
- Find the minimum sum of distance to A and B from any integer point in a ring of size N
- Find the position of box which occupies the given ball
- Check if string can be made lexicographically smaller by reversing any substring
- Number of character corrections in the given strings to make them equal
- Maximum length of subarray such that sum of the subarray is even
- Given two arrays count all pairs whose sum is an odd number
- Print steps to make a number in form of 2^X - 1
- Length of the direct common tangent between two externally touching circles
- Radius of the circle when the width and height of an arc is given
- Length of direct common tangent between the two non-intersecting Circles
- Maximize the given number by replacing a segment of digits with the alternate digits given
- Minimum number of cubes whose sum equals to given number N
- Maximum non-attacking Knights that can be placed on an N*M Chessboard
- Convert given integer X to the form 2^N - 1
- Count number of 1s in the array after N moves
- Check if given Preorder, Inorder and Postorder traversals are of same tree | Set 2
- Area of plot remaining at the end
- Find permutation of first N natural numbers that satisfies the given condition
- Compare sum of first N-1 elements to Nth element of an array
- Choose X such that (A xor X) + (B xor X) is minimized
- Program to print an array in Pendulum Arrangement with constant space
- Maximum number of edges in Bipartite graph
- Minimum integer such that it leaves a remainder 1 on dividing with any element from the range [2, N]
- Generate an Array in which count of even and odd sum sub-arrays are E and O respectively
- Program to find the rate percentage from compound interest of consecutive years
- Count Pairs from two arrays with even sum
- Rearrange the array to maximize the number of primes in prefix sum of the array
- Ratio of the distance between the centers of the circles and the point of intersection of two transverse common tangents to the circles
- Create a sequence whose XOR of elements is y
- Minimum sum of two numbers formed from digits of an array in O(n)
- Count of distinct rectangles inscribed in an equilateral triangle
- Bitwise AND of sub-array closest to K
- Check if the number is even or odd whose digits and base (radix) is given
- Check whether a number can be represented as sum of K distinct positive integers
- Find minimum steps required to reach the end of a matrix | Set 2
- Count index pairs which satisfy the given condition
- Number of common tangents between two circles if their centers and radius is given
- Number of trees whose sum of degrees of all the vertices is L
- Check if a circle lies inside another circle or not
- Angle subtended by the chord when the angle subtended by another chord of same length is given
- Queries for bitwise OR in the index range [L, R] of the given array
- Queries for bitwise AND in the index range [L, R] of the given array
- Find average of two numbers using bit operation
- Find if nCr is divisible by the given prime
- Maximum possible middle element of the array after deleting exactly k elements
- Longest substring such that no three consecutive characters are same
- Distance of chord from center when distance between center and another equal length chord is given
- Subset with sum closest to zero
- Check whether we can sort two arrays by swapping A[i] and B[i]
- Angle subtended by the chord to center of the circle when the angle subtended by the another equal chord of a congruent circle is given
- Distance between centers of two intersecting circles if the radii and common chord length is given
- Length of the chord the circle if length of the another chord which is equally inclined through the diameter is given
- Print the node with the maximum degree in the prufer sequence
- Queries for the difference between the count of composite and prime numbers in a given range
- Maximise matrix sum by following the given Path
- Check whether a subsequence exists with sum equal to k if arr[i]> 2*arr[i-1]
- Find the number of Chicks in a Zoo at Nth day
- Find maximum path sum in a 2D matrix when exactly two left moves are allowed
- Minimum count of elements that sums to a given number
- Maximum sum of non-overlapping subarrays of length atmost K
- Queries to check whether all the elements can be made positive by flipping signs exactly K times
- Check if two numbers have same number of digits
- Maximum distance between two unequal elements
- Minimum length subarray of 1s in a Binary Array
- Find row with maximum and minimum number of zeroes in given Matrix
- Number of 0s and 1s at prime positions in the given array
- Maximum water that can be stored between two buildings
- Sum of all perfect numbers present in an array
- Maximum subset sum such that no two elements in set have same digit in them
- Program to calculate angle on circumference subtended by the chord when the central angle subtended by the chord is given
- Length of longest sub-array with maximum arithmetic mean.
- Sum of all mersenne numbers present in an array
- Longest sub-sequence that satisfies the given conditions
- Maximum sub-sequence sum such that indices of any two adjacent elements differs at least by 3
- Print all the sub diagonal elements of the given square matrix
- Number of ways to get a given sum with n number of m-faced dices
- Total number of possible Binary Search Trees using Catalan Number
- Partition first N natural number into two sets such that their sum is not coprime
- Find the maximum number of elements divisible by 3
- Find maximum value of the last element after reducing the array with given operations
- Seating arrangement of N boys sitting around a round table such that two particular boys sit together
- Find optimal weights which can be used to weigh all the weights in the range [1, X]
- Number of ways of writing N as a sum of 4 squares
- Print first N terms of Lower Wythoff sequence
- Count of numbers whose 0th and Nth bits are set
- Find a number containing N - 1 set bits at even positions from the right
- Number of triplets such that each value is less than N and each pair sum is a multiple of K
- Probability of getting more heads than tails when N biased coins are tossed
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Program to calculate the area of Kite
- Find the number which when added to the given ratio a : b, the ratio changes to c : d
- Smallest perfect cube in an array
- Number of ways of distributing N identical objects in R distinct groups with no groups empty
- Total ways of choosing X men and Y women from a total of M men and W women
- Find the position of the given row in a 2-D array
- Minimum number of steps to convert a given matrix into Diagonally Dominant Matrix
- Remove an element to maximize the GCD of the given array
- Number of hours after which the second person moves ahead of the first person if they travel at a given speed
- Sequence with sum K and minimum sum of absolute differences between consecutive elements
- Cost Based Tower of Hanoi
- Remove Minimum coins such that absolute difference between any two piles is less than K
- Find the count of M character words which have at least one character repeated
- Count pairs with given sum | Set 2
- Count pairs in an array such that the absolute difference between them is ≥ K
- Maximum value after merging all elements in the array
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Count of all possible pairs of disjoint subsets of integers from 1 to N
- Sum of N terms in the expansion of Arcsin(x)
- Find the ln(X) and log10X with the help of expansion
- Print all the permutation of length L using the elements of an array | Iterative
- Sum of elements till the smallest index such that there are no even numbers to its right
- Count the number of elements which are greater than any of element on right side of an array
- Find an N x N grid whose xor of every row and column is equal
- Check if an array is increasing or decreasing
- Find Kth element in an array containing odd elements first and then even elements
- Nth Fibonacci number using Pell's equation
- Check if a cycle of length 3 exists or not in a graph that satisfy a given condition
- Sum of last digit of all integers from 1 to N divisible by M
- Comparing X^Y and Y^X for very large values of X and Y
- Count the values greater than X in the modified array
- Count of distinct graphs that can be formed with N vertices
- Divide first N natural numbers into 3 equal sum subsets
- Find two co-prime integers such that the first divides A and the second divides B
- Maximum OR value of a pair in an array
- Program for Mobius Function | Set 2
- Generate an array having Bitwise AND of the previous and the next element
- Maximum items that can be bought with the given type of coins
- Check whether bitwise AND of N numbers is Even or Odd
- Check if the sum of digits of number is divisible by all of its digits
- Replace elements with absolute difference of smallest element on left and largest element on right
- Find subarray with given sum with negatives allowed in constant space
- Check if array contains contiguous integers with duplicates allowed
- Program to find the number from given holes
- Count of elements which are equal to the XOR of the next two elements
- Program to print the Ladder Pattern
- Angle subtended by an arc at the centre of a circle
- Find the previous fibonacci number
- Nth term of a Custom Fibonacci series
- Count of 0s in an N-level hexagon
- Cake Distribution Problem
- Find all the prime numbers of given number of digits
- Find the last two missing digits of the given phone number
- Find if there exists multiple ways to draw line through (x, y) to cut rectangle in equal halfs