- Program to print factors of a number in pairs
- C/C++ Tricky Programs
- C Program to display hostname and IP address
- Deadlock in DBMS
- Transaction Isolation Levels in DBMS
- File Organization in DBMS | Set 4
- Starvation in DBMS
- Program for triangular patterns of alphabets
- Python program to interchange first and last elements in a list
- File Organization in DBMS | Set 1
- File Organization in DBMS | Set 3
- Python | Remove duplicate tuples from list of tuples
- Bitmap Indexing in DBMS
- Program to find Nth term in the given Series
- Python | Find longest consecutive letter and digit substring
- Number of digits in 2 raised to power n
- Program to find N-th term of the series a, b, b, c, c, c,.......
- Find longest length number in a string
- Program to print numeric pattern | Set - 2
- Find indices of all occurrence of one string in other
- Python program to find sum of absolute difference between all pairs in a list
- Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8,...
- Print the given 3 string after modifying and concatenating
- Printing frequency of each character just after its consecutive occurrences
- Program for incrementing/decrementing triangle pattern
- Program to print half diamond Number-Star pattern
- Program to find Nth term in the series 0, 2, 1, 3, 1, 5, 2, 7, 3,…
- Hamming distance between two Integers
- PHP | quoted_printable_decode() Function
- PHP | quoted_printable_encode() Function
- Python | Find missing numbers in a sorted list range
- Program to find the Discount Percentage
- Program to find the common ratio of three numbers
- Program to solve the Alligation Problem
- Python | Find most common element in each column in a 2D list
- Python program to remove Nth occurrence of the given word
- Python program to swap two elements in a list
- Python program to find the sum of all items in a dictionary
- Python | Check whether given key already exists in a dictionary
- Python | Nested Dictionary
- Python | Convert a list of multiple integers into a single integer
- Python | Insert the string at the beginning of all items in a list
- Python | Find depth of a dictionary
- Python | Program to convert a tuple to a string
- Python | Program to count duplicates in a list of tuples
- Python | Convert string to DateTime and vice-versa
- Python regex to find sequences of one upper case letter followed by lower case letters
- Python program to find number of days between two given dates
- Python program to calculate age in year
- Python program to insert an element into sorted list
- Python | Convert a list into a tuple
- Python | Convert set into a list
- Python | Merge two lists into list of tuples
- Python | Remove spaces from a string
- Check for balanced parentheses in Python
- Python | Check if all elements in a list are identical
- Python program to find day of the week for a given date
- Python program to convert seconds into hours, minutes and seconds
- Python | Get dictionary keys as a list
- Python | Make a list of intervals with sequential numbers
- Python | Spilt a sentence into list of words
- Python | Find most frequent element in a list
- Python | Sort list containing alphanumeric values
- Python program to get all subsets of given size of a set
- Python | Split string into list of characters
- Python program to check if given string is pangram
- Python | Replace multiple occurrence of character by single
- Python | Remove all digits from a list of strings
- Python | Find all possible substrings after deleting k characters
- Python | Convert a list of lists into tree-like dict
- Python | Find maximum length sub-list in a nested list
- Python | Shrink given list for repeating elements
- Python | Find all triplets in a list with given sum
- Python | Replace list elements with its ordinal number
- Python | Find groups of strictly increasing numbers in a list
- Python | Update a list of tuples using another list
- Python | Get the smallest window in a string containing all characters of given pattern
- Python | Merge corresponding sublists from two different lists
- Python | Count occurrence of all elements of list in a tuple
- Python | Count the sublists containing given element in a list
- Python | Check if list contains consecutive numbers
- Python | Sort list of numbers by sum of their digits
- Python | Create list of numbers with given range
- Python | Check if a nested list is a subset of another nested list
- Python | Sort tuple based on occurrence of first element
- Python | Unpacking tuple of lists
- Python | Remove sublists that are present in another sublist
- Python | Print diagonals of 2D list
- Python | Split list of strings into sublists based on length
- Python | Find all distinct pairs with difference equal to k
- Python | Remove elements of list that are repeated less than k times
- Python | Check if a list is contained in another list
- Python | Reverse sequence of strictly increasing integers in a list
- Python | Convert list into list of lists
- Python | Find elements of a list by indices
- Python | Reverse each tuple in a list of tuples
- Python | Find k longest words in given list
- Python | Intersection of multiple lists
- Python | Reshape a list according to given multi list
- Python | Find most common element in a 2D list
- Python | Reverse sign of each element in given list
- Python | Remove repeated sublists from given list
- Python | Get last element of each sublist
- Python | Get first element of each sublist
- Python | Program to count number of lists in a list of lists
- Python | Merge two lists alternatively
- Python | Check if given string can be formed by concatenating string elements of list
- Python | Check if given words appear together in a list of sentence
- Python | Ways to sort letters of string alphabetically
- Python | Merge two list of lists according to first element
- Python | Convert string enclosed list to list
- Python | Split CamelCase string to individual strings
- Python program to convert camel case string to snake case
- Python | Convert 1D list to 2D list of variable length
- Python | Filter list of strings based on the substring list
- Python program to find all possible pairs with given sum
- Python | Merge first and last elements separately in a list
- Python | Convert a list to dictionary
- Python program to create a list centered on zero
- Python | Increase list size by padding each element by N
- Python | Merging nested lists
- Python | Increment 1's in list based on pattern
- Python | Check possible bijection between sequence of characters and digits
- Python | Count true booleans in a list
- Python | Column wise sum of nested list
- Python | Group list elements based on frequency
- Python | Find closest number to k in given list
- Python | Convert list of strings to space separated string

- Smallest power of 2 greater than or equal to n
- Position of rightmost set bit
- Babylonian method for square root
- Find the smallest and second smallest elements in an array
- Maximum difference between two elements such that larger element appears after the smaller number
- Find the two repeating elements in a given array
- Next higher number with same number of set bits
- Check if a number is multiple of 5 without using / and % operators
- Average of a stream of numbers
- Count total set bits in all numbers from 1 to n
- Given a number, find the next smallest palindrome
- Space and time efficient Binomial Coefficient
- Pascal's Triangle
- Russian Peasant (Multiply two numbers using bitwise operators)
- Tail Recursion
- Print all increasing sequences of length k from first n natural numbers
- Find length of period in decimal value of 1/n
- Find number of days between two given dates
- Group multiple occurrence of array elements ordered by first occurrence
- Iterative Merge Sort
- Euler's Totient Function
- Find the nearest smaller numbers on left side in an array
- Search an element in an array where difference between adjacent elements is 1
- Print string of odd length in 'X' format
- Print all non-increasing sequences of sum equal to a given number x
- Find XOR of two number without using XOR operator
- Count triplets with sum smaller than a given value
- Sum of Bitwise And of all pairs in a given array
- Sieve of Atkin
- Find all divisors of a natural number | Set 1
- Find a permutation that causes worst case of Merge Sort
- Number of non-negative integral solutions of a + b + c = n
- Count digits in a factorial | Set 1
- Print first n numbers with exactly two set bits
- Find profession in a special family
- Third largest element in an array of distinct elements
- Change if all bits can be made same by single flip
- Check whether a given number is even or odd
- Check if bits of a number has count of consecutive set bits in increasing order
- Multiply a number with 10 without using multiplication operator
- GCD, LCM and Distributive Property
- Multiples of 4 (An Interesting Method)
- Find Equal (or Middle) Point in a sorted array with duplicates
- Sum of maximum elements of all subsets
- Elements before which no element is bigger in array
- Minimum XOR Value Pair
- Minimum flips in two binary arrays so that their XOR is equal to another array
- Chocolate Distribution Problem
- Mersenne Prime
- Program for Chocolate and Wrapper Puzzle
- Find two prime numbers with given sum
- Program to implement Collatz Conjecture
- Printing Heart Pattern in C
- Check whether a point exists in circle sector or not.
- Double factorial
- Find three element from different three arrays such that that a + b + c = sum
- N-th multiple in sorted list of multiples of two numbers
- Count of index pairs with equal elements in an array
- Exponential Search
- Count smaller numbers whose XOR with n produces greater value
- Sort all even numbers in ascending order and then sort all odd numbers in descending order
- Count smaller values whose XOR with x is greater than x
- XOR of all subarray XORs | Set 1
- Recaman's sequence
- Find original array from encrypted array (An array of sums of other elements)
- Noble integers in an array (count of greater elements is equal to value)
- Program to print the diamond shape
- Digital Root (repeated digital sum) of the given large integer
- Program for average of an array (Iterative and Recursive)
- Recursive program to linearly search an element in a given array
- Find the number of valid parentheses expressions of given length
- Check if two numbers are equal without using arithmetic and comparison operators
- Minimum insertions to form shortest palindrome
- Find a time for which angle between hour and minute hands is given theta
- Set the K-th bit of a given number
- C++ program to concatenate a string given number of times
- Find the Missing Point of Parallelogram
- Count pairs (a, b) whose sum of cubes is N (a^3 + b^3 = N)
- Print the pattern by using one loop | Set 2 (Using Continue Statement)
- Print the given pattern recursively
- Position of rightmost different bit
- Lychrel Number Implementation
- Finding power of prime number p in n!
- Sum of numbers with exactly 2 bits set
- Program to print the sum of the given nth term
- Recursive program to print formula for GCD of n integers
- Recursive solution to count substrings with same first and last characters
- Find element in a sorted array whose frequency is greater than or equal to n/2.
- Program to print binary right angle triangle
- Count total bits in a number
- Recursive Tower of Hanoi using 4 pegs / rods
- Golomb sequence
- Maximum area rectangle by picking four sides from array
- Minimum flips required to maximize a number with k set bits
- Sort string of characters
- Find Unique pair in an array with pairs of numbers
- Program for cube sum of first n natural numbers
- Program to print multiplication table of a number
- C Program for cube sum of first n natural numbers
- Generate all passwords from given character set
- Possibility of a word from a given set of characters
- Program for Mean and median of an unsorted array
- Program for Variance and Standard Deviation of an array
- Given an array and three numbers, maximize (x * a[i]) + (y * a[j]) + (z * a[k])
- Sum of all the prime divisors of a number
- Program for weighted mean of natural numbers.
- Only integer with positive value in positive negative value in array
- Finding the best fit rectangle that covers a given point
- Check whether a number can be represented by sum of two squares
- Program to find the minimum (or maximum) element of an array
- Sum of the series 1, 3, 6, 10... (Triangular Numbers)
- Product of maximum in first array and minimum in second
- Add 1 to number represented as array | Recursive Approach
- Print pair with maximum AND value in an array
- N-th polite number
- Quotient and remainder dividing by 2^k (a power of 2)
- Find last index of a character in a string
- Lobb Number
- File Organization in DBMS | Set 4
- Find the distance covered to collect items at equal distances
- Program to print numbers with diamond pattern
- Program to calculate value of nCr
- XNOR of two numbers
- Program for Stair Case Patterns
- Speed of boat in still water from speed of stream and times taken
- Program for Hexagonal Pattern
- Trimorphic Number
- Print the pyramid pattern with given height and minimum number of stars
- Find number of pairs in an array such that their XOR is 0
- Check if given four integers (or sides) make rectangle
- Sum of fourth powers of first n odd natural numbers
- Find the Number which contain the digit d
- First uppercase letter in a string (Iterative and Recursive)
- Program for class interval arithmetic mean
- Average of first n odd naturals numbers
- Minimum moves to reach target on a infinite line | Set 2
- Find a Fixed Point (Value equal to index) in a given array | Duplicates Allowed
- Recursive program for prime number
- Squares of numbers with repeated single digits | Set 1 (3, 6 and 9)
- Area of a Circumscribed Circle of a Square
- Check whether the number has only first and last bits set | Set 2
- Maximum XOR-value of at-most k-elements from 1 to n
- Check if it is possible to survive on Island
- Smallest alphabet greater than a given character
- Evaluate an array expression with numbers, + and -
- Finding the vertex, focus and directrix of a parabola
- Program for Expressionless Face Pattern printing
- Rencontres Number (Counting partial derangements)
- Program to wish Women's Day
- Find the only repetitive element between 1 to n-1
- Coordinates of rectangle with given points lie inside
- Number of indexes with equal elements in given range
- Minimum removals to make array sum even
- Smallest triangular number larger than p
- Smallest even digits number not less than N
- Find n-th element from Stern's Diatomic Series
- Almost Perfect Number
- Number with even sum of digits
- Sum of product of each element with each element after it
- Square pyramidal number (Sum of Squares)
- 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
- First digit in factorial of a number
- Legendre's Conjecture
- Decimal Equivalent of Gray Code and its Inverse
- Finding a Non Transitive Coprime Triplet in a Range
- Space optimization using bit manipulations
- Brahmagupta Fibonacci Identity
- Height of a complete binary tree (or Heap) with N nodes
- Program to check if first and the last characters of string are equal
- Sum of the series 2^0 + 2^1 + 2^2 +.....+ 2^n
- k-Rough Number or k-Jagged Number
- Number of Digits in a^b
- Number whose sum of XOR with given array range is maximum
- Moser-de Bruijn Sequence
- Lagrange's four square theorem
- 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
- Bitwise recursive addition of two integers
- Blum Integer
- Program for sum of cos(x) series
- Check a number is odd or even without modulus operator
- 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
- Pattern to print X in a rectangular box
- Finding n-th term of series 3, 13, 42, 108, 235…
- Check divisibility of binary string by 2^k
- Maximum steps to transform 0 to X with bitwise AND
- Multiply any Number with 4 using Bitwise Operator
- Count divisible pairs in an array
- Maximum equlibrium sum in an array
- Maximum height of triangular arrangement of array values
- Slope of perpendicular to line
- Trick for modular division ( (x1 * x2 .... xn) / b ) mod (m)
- Sorting array with reverse around middle
- Swapping four variables without temporary variable
- Find maximum and minimum distance between magnets
- Check if a given matrix is Hankel or not
- Tiling with Dominoes
- Find value of k-th bit in binary representation
- Forming smallest array with given constraints
- Find the other-end coordinates of diameter in a circle
- N/3 repeated number in an array with O(1) space
- Minimum cost to equal all elements of array using two operation
- Two odd occurring elements in an array where all other occur even times
- Check if three straight lines are concurrent or not
- Program to print numeric pattern
- Set the rightmost unset bit
- How to turn on a particular bit in a number?
- Partition negative and positive without comparison with 0
- Maximize the bitwise OR of an array
- Print concentric rectangular pattern in a 2d matrix
- Number with set bits only between L-th and R-th index
- Program to find LCM of 2 numbers without using GCD
- Print all pairs with given sum
- Print all triplets with given sum
- Count occurrences of a substring recursively
- Number of rectangles in a circle of radius R
- Check if a M-th fibonacci number divides N-th fibonacci number
- Find i’th index character in a binary string obtained after n iterations | Set 2
- Number of odd and even results for every value of x in range [min, max] after performing N steps
- Check if the large number formed is divisible by 41 or not
- Array elements that appear more than once
- Program to find the Interior and Exterior Angle of a Regular Polygon
- Print all the combinations of N elements by changing sign such that their sum is divisible by M
- Program to print numeric pattern | Set - 2
- Check whether all the bits are unset in the given range
- Sum of two numbers modulo M
- Check if bits in range L to R of two numbers are complement of each other or not
- Count pairs with Bitwise XOR as ODD number
- Program to print Sine-Wave Pattern
- Program to Print Mirror Image of Sine-Wave Pattern
- Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8,...
- Program to print Inverse Diamond pattern
- Comparing leading zeros in binary representations of two numbers
- Minimum value of N such that xor from 1 to N is equal to K
- Number of ways to change the XOR of two numbers by swapping the bits
- Program to print half diamond Number-Star pattern
- Complement of a number with any base b
- Minimum time required to fill a cistern using N pipes
- Minimum time required to complete a work by N persons together
- Program to invert bits of a number Efficiently
- Recursive program to print triangular patterns
- Hamming distance between two Integers
- Rotations of a Binary String with Odd Value
- Program to print Hut
- Check n^2 - m^2 is prime or not
- Sum of numbers from 1 to N which are divisible by 3 or 4
- Next greater number than N with exactly one bit different in binary representation of N
- Program to print the Zigzag pattern
- Print values of 'a' in equation (a+b) <= n and a+b is divisible by x
- Count numbers whose difference with N is equal to XOR with N
- Program to find Nth term divisible by a or b