- Python | Plotting Google Map using gmplot package
- Python | Writing to an excel file using openpyxl module
- Python | Get a set of places according to search query using Google Places API
- Python | Find current weather of any city using openweathermap API
- Python | Calculate distance and duration between two places using google distance matrix API
- Python | Calculate geographic coordinates of places using google geocoding API
- Python | Reading an excel file using openpyxl module
- Python | Program to implement Rock paper scissor game
- Program to print Collatz Sequence
- Python | Play a video in reverse mode using OpenCV
- Program to print all the numbers divisible by 3 and 5 for a given number
- Python | Get a google map image of specified location using Google Static Maps API
- Program to check if a string contains any special character
- Python | Django Admin Interface
- Python | Plotting Google Map using folium package
- Python | Program that matches a word containing 'g' followed by one or more e's using regex
- Python | Simple registration form using Tkinter
- Python | Simple GUI calculator using Tkinter
- Python | Program to accept the strings which contains all vowels
- Python | Find Live running status and PNR of any train using Railway API
- Python | Plotting Data on Google Map using pygmaps package
- Python | Distance-time GUI calculator using Tkinter
- Python | ASCII art using pyfiglet module
- Python | Arithmetic operations in excel file using openpyxl
- Python | Adjusting rows and columns of an excel file using openpyxl module
- Python | Plotting charts in excel sheet using openpyxl module | Set - 1
- Python | random.sample() function
- Python | Plotting charts in excel sheet using openpyxl module | Set – 2
- Python | Trigonometric operations in excel file using openpyxl
- Python | Plotting charts in excel sheet using openpyxl module | Set 3
- Python | Create and write on excel file using xlsxwriter module
- Creating a Pandas Series from Dictionary
- Generating Word Cloud in Python | Set 2
- Python | Plotting Area charts in excel sheet using XlsxWriter module
- Python | Getting started with SymPy module
- Python | Plotting bar charts in excel sheet using XlsxWriter module
- Python | Plotting Radar charts in excel sheet using XlsxWriter module
- Python | Program to implement Jumbled word game
- Python | Plotting scatter charts in excel sheet using XlsxWriter module
- Python | Plotting column charts in excel sheet using XlsxWriter module
- Python | Program to implement simple FLAMES game
- Python | Program to generate one-time password (OTP)
- Python | Plotting Pie charts in excel sheet using XlsxWriter module
- Python | Real time currency convertor using Tkinter
- Python | Get the real time currency exchange rate
- Python | Plotting Doughnut charts in excel sheet using XlsxWriter module
- Python | Plotting Stock charts in excel sheet using XlsxWriter module
- Python | Plotting Line charts in excel sheet using XlsxWriter module
- Python | Plotting Combined charts in excel sheet using XlsxWriter module
- Difference of two columns in Pandas dataframe
- Python | Real time weather detection using Tkinter
- Python | Plotting an Excel chart with pattern fills in column using XlsxWriter module
- Python | Plotting Different types of style charts in excel sheet using XlsxWriter module
- Python | Working with Pandas and XlsxWriter | Set - 1
- Python | Adding a Chartsheet in an excel sheet using XlsxWriter module
- Split a text column into two columns in Pandas DataFrame
- Python | Plotting an Excel chart with Gradient fills using XlsxWriter module
- Python | Plotting column charts in excel sheet with data tables using XlsxWriter module
- Python | Plotting charts in excel sheet with Data Tools using XlsxWriter module | Set - 1
- Python | Working with Pandas and XlsxWriter | Set – 2
- Python | Working with Pandas and XlsxWriter | Set – 3
- Python | Plotting charts in excel sheet with data tools using XlsxWriter module | Set – 2
- Creating a dataframe using Excel files
- Python | Tokenize text using TextBlob
- Different ways to iterate over rows in Pandas Dataframe
- Python | Simple FLAMES game using Tkinter
- Selecting rows in pandas DataFrame based on conditions
- Creating a Pandas Series from Lists
- Python | Lemmatization with TextBlob
- Python | Display images with PyGame
- Python | Part of Speech Tagging using TextBlob
- Python | Display text to PyGame window
- Python | Drawing different shapes on PyGame window
- Formatting integer column of Dataframe in Pandas
- Python | Sentiment Analysis using VADER
- Python program to check if a given string is Keyword or not
- Python | Check if string is a valid identifier
- Python | Check if given string is numeric or not
- Check if email address valid or not in Python
- Python program to validate an IP Address
- Python regex | Check whether the input is Floating point number or not
- Python Regex - Program to accept string starting with vowel
- Python Regex | Program to accept string ending with alphanumeric character
- Python program to print all Strong numbers in given list

- Position of rightmost set bit
- Largest Sum Contiguous Subarray
- Maximum size square sub-matrix with all 1s
- Check for balanced parentheses in an expression
- Program for Fibonacci numbers
- Longest Increasing Subsequence | DP-3
- Count total set bits in all numbers from 1 to n
- Egg Dropping Puzzle | DP-11
- Floyd Warshall Algorithm | DP-16
- Bellman–Ford Algorithm | DP-23
- Binary representation of a given number
- Find position of the only set bit
- Longest Common Substring | DP-29
- Program for nth Catalan Number
- Find k closest elements to a given value
- Shortest Common Supersequence
- Count even length binary sequences with same sum of first and second half bits
- Volume of cube using its space diagonal
- A Space Optimized Solution of LCS
- Dynamic Programming | High-effort vs. Low-effort Tasks Problem
- Maximum sum of i*arr[i] among all rotations of a given array
- Calculate sum of all numbers present in a string
- Minimum cost to fill given weight in a bag
- Maximum weight path ending at any element of last row in a matrix
- Calculate XOR from 1 to n.
- Count All Palindromic Subsequence in a given String
- Recursively break a number in 3 parts to get maximum sum
- Path with maximum average value
- Maximum sum of pairs with specific difference
- Maximum sum alternating subsequence
- Count All Palindrome Sub-Strings in a String | Set 1
- Maximum subsequence sum such that no three are consecutive
- Maximum path sum for each position with jumps under divisibility condition
- Check if all rows of a matrix are circular rotations of each other
- LCS (Longest Common Subsequence) of three strings
- Count of acute, obtuse and right triangles with given sides
- Friends Pairing Problem
- Maximum path sum that starting with any cell of 0-th row and ending with any cell of (N-1)-th row
- Gold Mine Problem
- Highway Billboard Problem
- Convert decimal fraction to binary number
- Find number of endless points
- Subset with sum divisible by m
- Program to find second most frequent character
- Minimum steps to minimize n as per given condition
- Generate all rotations of a given string
- Shortest Uncommon Subsequence
- Number of times the largest perfect square number can be subtracted from N
- Ways to sum to N using array elements with repetition allowed
- Maximum sum in a 2 x n grid such that no two elements are adjacent
- Check if two numbers are bit rotations of each other or not
- Check whether given string can be generated after concatenating given strings
- Minimum time to write characters using insert, delete and copy operation
- Regular polygon using only 1s in a binary numbered circle
- Number of integral solutions of the equation x1 + x2 +.... + xN = k
- Slope of the line parallel to the line with the given slope
- Count Balanced Binary Trees of Height h
- Painting Fence Algorithm
- Length of the transverse common tangent between the two non intersecting circles
- To check divisibility of any large number by 999
- Printing Items in 0/1 Knapsack
- Number of n-digits non-decreasing integers
- Remove one bit from a binary number to get maximum value
- Divide the two given numbers by their common divisors
- Count of Palindromic substrings in an Index range
- Program to calculate the number of odd days in given number of years
- Quick way to check if all the characters of a string are same
- Maximum number of 3-person teams formed from two groups
- Program to check if input is an integer or a string
- String which when repeated exactly K times gives a permutation of S
- Check if a large number can be divided into two or more segments of equal sum
- Print matrix after applying increment operations in M ranges
- Subset Sum Problem in O(sum) space
- Print the following pyramid pattern
- Minimum Number of Manipulations required to make two Strings Anagram Without Deletion of Character
- Count of sub-sequences which satisfy the given condition
- Count ways to build street under given constraints
- Count number of paths whose weight is exactly X and has at-least one edge of weight M
- Greatest divisor which divides all natural number in range [L, R]
- Count pairs in an array such that LCM(arr[i], arr[j]) > min(arr[i],arr[j])
- Find an element in array such that sum of left array is equal to sum of right array
- Minimum number of Square Free Divisors
- Check if sums of i-th row and i-th column are same in matrix
- Check if the string contains consecutive letters and each letter occurs exactly once
- Lexicographically smallest permutation of {1, .. n} such that no. and position do not match
- Check if it is possible to reach vector B by rotating vector A and adding vector C to it
- Remove array end element to maximize the sum of product
- Value of continuous floor function : F(x) = F(floor(x/2)) + x
- Permutations to arrange N persons around a circular table
- Distributing all balls without repetition
- To check whether a large number is divisible by 7
- Number of ways to arrange N items under given constraints
- Number of closing brackets needed to complete a regular bracket sequence
- Count all subsequences having product less than K
- Longest Repeated Subsequence
- Check if a two character string can be made using given words
- Find if it is possible to make a binary string which contanins given number of "0", "1" , "01" and "10" as sub sequences
- Smallest integer with digit sum M and multiple of N
- Number of subarrays having absolute sum greater than K | Set-2
- Replace two substrings (of a string) with each other
- Tile Stacking Problem
- Maximum and Minimum value of a quadratic function
- Minimum area of a Polygon with three points given
- Print Longest Palindromic Subsequence
- Program to find the number of region in Planar Graph
- Eulerian Number
- Different ways to sum n using numbers greater than or equal to m
- Maximum possible elements which are divisible by 2
- Convert the ASCII value sentence to its equivalent string
- Print first N Mosaic numbers
- Check if the given string is the same as its reflection in a mirror
- Find the Kth smallest element in the sorted generated array
- Distance between two closest minimum
- Check if a given string is made up of two alternating characters
- Count ways to divide circle using N non-intersecting chords
- Minimum sum of multiplications of n numbers
- Area of hexagon with given diagonal length
- Program to copy the contents of one array into another in the reverse order
- Calculate area of pentagon with given diagonal
- Maximize the sum of selected numbers from an array to make it empty
- Sum of columns of a 2-D Matrix where first element is odd
- Dyck Words of given length
- Longest string in non-decreasing order of ASCII code and in arithmetic progression
- Sum of each element raised to (prime-1) % prime
- Expressing factorial n as sum of consecutive numbers
- Count numbers from range whose prime factors are only 2 and 3
- Find frequency of each word in a string in Python
- Check if number can be displayed using seven segment led
- Check if it possible to partition in k subarrays with equal sum
- Longest Common Substring (Space optimized DP solution)
- Count pairs in an array which have at least one digit common
- Check if every index i has an index j such that sum of elements in both directions are equal
- Print equal sum sets of array (Partition Problem) | Set 2
- Find a permutation such that number of indices for which gcd(p[i], i) > 1 is exactly K
- Maximum in an array that can make another array sorted
- Check if a number can be expressed as a^b | Set 2
- Count pairs with set bits sum equal to K
- Program to find Nth term of series 1, 3, 12, 60, 360…
- Python | Count the Number of matching characters in a pair of string
- First X vowels from a string
- Find a Symmetric matrix of order N that contain integers from 0 to N-1 and main diagonal should contain only 0's
- Sum of multiplication of triplet of divisors of a number
- Number of elements with even factors in the given range
- Find the lexicographical next balanced bracket sequence
- Repeated Character Whose First Appearance is Leftmost
- Program to check similarity of given two triangles
- Count the number of intervals in which a given value lies
- Degree of a Cycle Graph
- Minimum number of adjacent swaps for arranging similar elements together
- Find a non empty subset in an array of N integers such that sum of elements of subset is divisible by N
- Minimum inverting factor in an array
- Bitwise OR (or | ) of a range
- Make all numbers of an array equal
- All pairs whose xor gives unique prime
- Area of the Largest Triangle inscribed in a Hexagon
- Previous greater element
- Python program to print even length words in a string
- Find three integers less than or equal to N such that their LCM is maximum
- Print all prime numbers less than or equal to N
- Python | Plotting charts in excel sheet using openpyxl module | Set - 1
- Shortest path on a Square
- Probability of rain on N+1th day
- Find the sum of non-prime elements in the given array
- Absolute difference between the first X and last X Digits of N
- Check if it is possible to create a polygon with a given angle
- Sum of similarities of string with all of its suffixes
- Array Manipulation and Sum
- Maximum bishops that can be placed on N*N chessboard
- Find the multiple of x which is closest to a^b
- Print the corner elements and their sum in a 2-D matrix
- Probability that the pieces of a broken stick form a n sided polygon
- Remove all occurrences of a character in a string
- Number of ways to reach Nth floor by taking at-most K leaps
- Probability of a key K present in array
- Surd number
- Count pairs with Bitwise OR as Even number
- Minimize the difference between minimum and maximum elements
- Check if a key is present in every segment of size k in an array
- Delete array element in given index range [L - R]
- Check if a point lies on or inside a rectangle | Set-2
- Check if max occurring character of one string appears same no. of times in other
- Find First element in AP which is multiple of given prime
- Count the number of pairs that have column sum greater than row sum
- Cut all the rods with some length such that the sum of cut-off length is maximized
- Number of possible pairs of Hypotenuse and Area to form right angled triangle
- Subtraction of two numbers using 2's Complement
- Count strings with consonants and vowels at alternate position
- Maximum number of dots after throwing a dice N times
- Minimum multiplications with {2, 3, 7} to make two numbers equal
- Printing frequency of each character just after its consecutive occurrences
- Alternate Primes till N
- Program to print the initials of a name with the surname
- Find the largest number that can be formed with the given digits
- Count no. of ordered subsets having a particular XOR value
- N-th term in the series 1, 11, 55, 239, 991,....
- Count elements in the given range which have maximum number of divisors
- Minimum element in a max heap
- Program to find number of solutions in Quadratic Equation
- Length of longest consecutive zeroes in the binary representation of a number.
- Sum of decimal equivalent of all possible pairs of Binary representation of a Number
- Fascinating Number
- 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,…
- Complement of a number with any base b
- Minimize ASCII values sum after removing all occurrences of one character
- Minimum number of square tiles required to fill the rectangular floor
- Maximize the profit by selling at-most M products
- Program to check if an array is bitonic or not
- Find Nth term of series 1, 4, 15, 72, 420...
- Program to check whether 4 points in a 3-D plane are Coplanar
- Count number of triplets with product equal to given number with duplicates allowed
- Pairs with GCD equal to one in the given range
- Find Nth term of the series 0, 2, 4, 8, 12, 18...
- Find Nth term of the series 5, 13, 25, 41, 61...
- Check whether a given point lies on or inside the rectangle | Set 3
- Program to find the percentage of difference between two numbers
- Program to find the Nth term of the series 3, 20, 63, 144, 230, ……
- Program to find the Nth term of series 5, 10, 17, 26, 37, 50, 65, 82, ...
- Program to find the Nth term of series 0, 4, 14, 30, 51, 80, 114, 154, 200, ...
- Number of divisors of a given number N which are divisible by K
- Number of substrings of one string present in other
- Program to count number of distinct Squares and Cubes upto N
- Coin game of two corners (Greedy Approach)
- Find Nth term of the series 3, 14, 39, 84...
- Check if a number with even number of digits is palindrome or not
- Find area of parallelogram if vectors of two adjacent sides are given
- Print elements that can be added to form a given sum
- Calculate the total fine to be collected
- Find Nth term of the series 1, 1, 2, 6, 24...
- Replace every element of the array by sum of all other elements
- Program to calculate Profit Or Loss
- Check if a String can be converted to Pangram in K changes
- Check if a number is divisible by 23 or not
- Concatenate strings in any order to get Maximum Number of "AB"
- Check if a number is divisible by 41 or not
- Total character pairs from two strings, with equal number of set bits in their ascii value
- Program to find Length of Bridge using Speed and Length of Train
- Find four factors of N with maximum product and sum equal to N
- Minimum number of elements to be removed to make XOR maximum
- Check if the given chessboard is valid or not
- Check if any large number is divisible by 19 or not
- Check if any large number is divisible by 17 or not
- Sum of Factors of a Number using Prime Factorization
- Largest rectangle that can be inscribed in a semicircle
- Find the number after successive division
- Area of circle inscribed within rhombus
- Program to calculate Root Mean Square
- Find the sum of series 0.X + 0.XX + 0.XXX +... upto k terms
- Area of a largest square fit in a right angle triangle
- Minimum Players required to win the game
- Program to find total number of edges in a Complete Graph
- Check if given string can be formed by two other strings or their permutations
- Sum of Digits in a^n till a single digit
- Find bitwise AND (&) of all possible sub-arrays
- Minimum length of string having all permutation of given string.
- Find bitwise OR of all possible sub-arrays
- Product of 2 numbers using recursion | Set 2
- Largest triangle that can be inscribed in a semicircle
- Minimize the length of string by removing occurrence of only one character
- Find the sum of n terms of the series 1,8,27,64 ....
- Find the sum of the series 2, 5, 13, 35, 97...
- Find Nth term of the series 0, 6, 0, 12, 0, 90...
- Find maximum points which can be obtained by deleting elements from array
- Probability of getting a sum on throwing 2 Dices N times
- Length of longest rod that can fit into a cuboid
- Minimum no. of operations required to make all Array Elements Zero
- Largest trapezoid that can be inscribed in a semicircle
- Area of Largest rectangle that can be inscribed in an Ellipse
- Count common subsequence in two strings
- Perfect cube greater than a given number
- Count pairs (a, b) whose sum of squares is N (a^2 + b^2 = N)
- Count the number of ways to traverse a Matrix
- Check if lowercase and uppercase characters are in same order
- Largest triangle that can be inscribed in an ellipse
- Program to print elements of a Matrix row-wise skipping alternate elements
- Program to find the Volume of an irregular tetrahedron
- Divide a number into two parts such that sum of digits is maximum
- Find sum of product of number in given series
- Find area of triangle if two vectors of two adjacent sides are given
- Find the sum of the series x(x+y) + x^2(x^2+y^2) +x^3(x^3+y^3)+ ... + x^n(x^n+y^n)
- Program to find Nth term of the series 2, 4, 3, 4, 15...
- Ratio of mth and nth term in an Arithmetic Progression (AP)
- Area of a circle inscribed in a regular hexagon
- Replace every character of a string by a different character
- Program to find Circuit Rank of an Undirected Graph
- Check if two arrays are permutations of each other using Mathematical Operation
- Program to find the value of tan(nΘ)
- Program to find N-th term of series 3, 5, 33, 35, 53....
- Program to find the value of sin(nΘ)
- First triangular number whose number of divisors exceeds N
- Find an element in an array such that elements form a strictly decreasing and increasing sequence
- Program to convert KiloBytes to Bytes and Bits
- Minimum cost to buy N kilograms of sweet for M persons
- Program to find the N-th term of series 3, 5, 33, 35, 53…. | Set-2
- Maximum Sum of Products of Two Arrays
- Minimum odd cost path in a matrix
- Maximize the value of A by replacing some of its digits with digits of B
- Find number of magical pairs of string of length L
- Check if any square (with one colored cell) can be divided into two equal parts
- Set the rightmost off bit
- Generating numbers that are divisor of their right-rotations
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle
- Program to find the Centroid of the triangle
- Number of Co-prime pairs from 1 to N with product equals to N
- Sum of the first N terms of the series 5,12, 23, 38....
- Find the GCD of N Fibonacci Numbers with given Indices
- Sum of the first N terms of the series 2,10, 30, 68,....
- Number of unique permutations starting with 1 of a Binary String
- Minimum increment in the sides required to get non-negative area of a triangle
- Find two distinct prime numbers with given product
- Program to find the Nth Harmonic Number
- Program to find Nth term of series 0, 9, 22, 39, 60, 85, 114, 147, .....
- Program to find Nth term of series 1, 6, 17, 34, 56, 86, 121, 162, .......
- Program to find Nth term of series 3, 12, 29, 54, 86, 128, 177, 234, .....
- Program to find the Radius of the incircle of the triangle
- Check if an array is Wave Array
- Rearrange the string to maximize the number of palindromic substrings
- Number of solutions of n = x + n ⊕ x
- Find count of Almost Prime numbers from 1 to N
- Absolute difference between sum and product of roots of a quartic equation
- Program to print the Cot Bed Pattern
- Sum of nth terms of Modified Fibonacci series made by every pair of two arrays
- Number of ways to choose a pair containing an even and an odd number from 1 to N
- Program to find the Circumcircle of any regular polygon
- Program to find the angles of a quadrilateral
- Minimum and maximum number of N chocolates after distribution among K students
- Sum of the first N Prime numbers
- Check if a cell can be visited more than once in a String
- Minimize the total number of teddies to be distributed
- Next greater Number than N with the same quantity of digits A and B
- Number of solutions for x < y, where a <= x <= b and c <= y <= d and x, y are integers
- Check if it is possible to return to the starting position after moving in the given directions
- Find the number of rectangles of size 2*1 which can be placed inside a rectangle of size n*m
- Sum of all the prime numbers in a given range
- Number of solutions for the equation x + y + z <= n
- Check if a string can be rearranged to form special palindrome
- Sum of all the elements in an array divisible by a given number K
- Program to find the maximum element in a Matrix
- Count all the numbers in a range with smallest factor as K
- Program to print the pattern with two hollow Triangles
- Count pairs (i,j) such that (i+j) is divisible by A and B both
- Value of the series (1^3 + 2^3 + 3^3 + ... + n^3) mod 4 for a given n
- Print N lines of 4 numbers such that every pair among 4 numbers has a GCD K
- Minimum increment operations to make the array in increasing order
- Sum of squares of Fibonacci numbers
- Check whether product of 'n' numbers is even or odd
- Sum of Fibonacci Numbers with alternate negatives
- Program to print Hut Star pattern
- Find Sum of Series 1^2 - 2^2 + 3^2 - 4^2 ..... upto n terms
- Minimum number of Parentheses to be added to make it valid
- Check if a number is Primorial Prime or not
- Print all Prime Quadruplet of a number less than it
- Minimum sum falling path in a NxN grid
- Check if at least half array is reducible to zero by performing some operations
- Number of groups of magnets formed from N magnets
- All possible co-prime distinct element pairs within a range [L, R]
- Check if a string is the typed name of the given name
- Ways of dividing a group into two halves such that two elements are in different groups
- Count of common multiples of two numbers in a range
- Find Tangent at a given point on the curve
- Calculate Stirling numbers which represents the number of ways to arrange r objects around n different circles
- Sort only non-prime numbers of an array in increasing order
- Minimum number of towers required such that every house is in the range of at least one tower
- Find the longest common prefix between two strings after performing swaps on second string
- Number of permutations of a string in which all the occurrences of a given character occurs together
- 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)!
- Minimum swaps required to convert one binary string to another
- Number of squares of side length required to cover an N*M rectangle
- Maximum count of equal numbers in an array after performing given operations
- Check if the characters of a given string are in alphabetical order
- Maximum number of fixed points using atmost 1 swap
- Maximum difference elements that can added to a set
- Largest element in the array that is repeated exactly k times
- Check if the given vectors are at equilibrium or not
- Program to find the Sum of each Row and each Column of a Matrix
- Sub-strings of length K containing same character
- Sum of Fibonacci numbers at even indexes upto N terms
- K- Fibonacci series
- Count numbers whose difference with N is equal to XOR with N
- Count unordered pairs (i,j) such that product of a[i] and a[j] is power of two
- Minimum sum possible of any bracket sequence of length N
- Check whether the vowels in a string are in alphabetical order or not
- Largest number divisible by 90 that can be made using 0 and 5
- Count numbers whose XOR with N is equal to OR with N
- Count number of ordered pairs with Even and Odd Product
- Check if the frequency of all the digits in a number is same
- Program to find the Area and Perimeter of a Semicircle
- Program to Convert Hexadecimal Number to Binary
- Print a number containing K digits with digital root D
- Minimum time to reach a point with +t and -t moves at time t
- Program to find the Perimeter of a Regular Polygon
- Count the numbers < N which have equal number of divisors as K
- Minimum swaps required to make a binary string alternating
- Number of anomalies in an array
- Equation of parabola from its focus and directrix
- Find the foot of perpendicular of a point in a 3 D plane
- Find amount to be added to achieve target ratio in a given mixture
- Find time taken for signal to reach all positions in a string
- Maximum points of intersection n lines
- Problem of 8 Neighbours of an element in a 2-D Matrix
- Equation of ellipse from its focus, directrix, and eccentricity
- Find single Movement in a Matrix
- Number of cells in the right and left diagonals passing through (x, y) in a matrix
- Lexicographically smallest permutation with no digits at Original Index
- Maximum difference of indices (i, j) such that A[i][j] = 0 in the given matrix
- Smallest odd digits number not less than N
- Largest number smaller than or equal to N divisible by K
- Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts
- Smallest number greater than or equal to N divisible by K
- Minimize the value of N by applying the given operations
- Absolute Difference of even and odd indexed elements in an Array
- Largest N digit number divisible by given three numbers
- 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
- Mode
- Index with Minimum sum of prefix and suffix sums in an Array
- Partition an array such into maximum increasing segments
- Find if array has an element whose value is half of array sum
- GCD of a number raised to some power and another number
- Minimum cuts required to divide the Circle into equal parts
- Find the count of Strictly decreasing Subarrays
- Program to find the profit or loss when CP of N items is equal to SP of M items
- Find minimum operations needed to make an Array beautiful
- Minimum number of cuts required to make circle segments equal sized
- Minimum deletions from string to reduce it to string with at most 2 unique characters
- Game of stones
- Steps to reduce N to zero by subtracting its most significant digit at every step
- 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
- In-Place Merge Sort
- Check whether count of distinct characters in a string is Prime or not
- Check if a prime number can be expressed as sum of two Prime Numbers
- Sum of the elements from index L to R in an array when arr[i] = i * (-1)^i
- Check if a large number is divisible by 75 or not
- Probability of getting more value in third dice throw
- Count of cyclic permutations having XOR with other binary string as 0
- Check whether the sum of prime elements of the array is prime or not
- Sort perfect squares in an array at their relative positions
- Split N^2 numbers into N groups of equal sum
- Common prime factors of two numbers
- Total number of subsets in which the product of the elements is even
- Minimum cost to cover the given positions in a N*M grid
- Minimum steps to convert one binary string to other only using negation
- Element equal to the sum of all the remaining elements
- Number of ways to reach the end of matrix with non-zero AND value
- Check whether an Array is Subarray of another Array
- Indexed Sequential Search
- Program to convert given Matrix to a Diagonal Matrix
- Largest perfect square number in an Array
- Number of pairs with Bitwise OR as Odd number
- Count number of triplets (a, b, c) such that a^2 + b^2 = c^2 and 1 <= a <= b <= c <= n
- Minimum sum of the elements of an array after subtracting smaller elements from larger
- Nth number made up of odd digits only
- Find a point that lies inside exactly K given squares
- Find sum of a number and its maximum prime factor
- Find minimum steps required to reach the end of a matrix | Set - 1
- Find position of left most dis-similar bit for two numbers
- Add N digits to A such that it is divisible by B after each addition
- Number of moves required to guess a permutation.
- Sum of elements whose square root is present in the array
- Find element position in given monotonic sequence
- Find the intersection of two Matrices
- Program to find first N Iccanobif Numbers
- Find smallest and largest element from square matrix diagonals
- Frequency of each element of an array of small ranged values
- Minimum range increment operations to Sort an array
- Print numbers with digits 0 and 1 only such that their sum is N
- Minimum number of moves to make all elements equal
- Size of the smallest subset with maximum Bitwise OR
- Find number of substrings of length k whose sum of ASCII value of characters is divisible by k
- Find alphabet in a Matrix which has maximum number of stars around it
- Largest number less than N with digit sum greater than the digit sum of N
- Time taken by two persons to meet on a circular track
- Number of comparisons in each direction for m queries in linear search
- Replace every element of the array by its previous element
- Replace every element of the array by its next element
- Print numbers in descending order along with their frequencies
- Replace the middle element of matrix with sum of surrounding elements
- Length of longest consecutive ones by at most one swap in a Binary String
- Check If every group of a's is followed by a group of b's of same length
- Rearrange all elements of array which are multiples of x in decreasing order
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Sum of first N natural numbers which are divisible by X or Y
- Floor of every element in same array
- Smallest Pair Sum in an array
- Number of Paths of Weight W in a K-ary tree
- Check if a number is Triperfect Number
- Largest right circular cylinder within a frustum
- Largest right circular cylinder within a cube
- Larger of a^b or b^a (a raised to power b or b raised to power a)
- Minimum and Maximum number of pairs in m teams of n people
- Maximize the difference between two subsets of a set with negatives
- Find the only different element in an array
- Reverse middle words of a string
- Move all Uppercase char to the end of string
- Puzzle | 1000 light bulbs switched on/off by 1000 persons passing by
- Minimum moves required to change position with the given operation
- Interchange elements of first and last columns in matrix
- Reduce the array to a single element with the given operation
- Maximum sum of all elements of array after performing given operations
- Check if the given decimal number has 0 and 1 digits only
- Sum of elements in an array with frequencies greater than or equal to that element
- Largest Divisor of a Number not divisible by a perfect square
- Count all sub-sequences having product <= K - Recursive approach
- Sum of the multiples of two numbers below N
- Sort the array in a given index range
- Check if the sum of perfect squares in an array is divisible by x
- Permutations of string such that no two vowels are adjacent
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Concatenate suffixes of a String
- Minimum absolute difference of a number and its closest prime
- Remove all continuous occurrences of 'a' and all occurrences of 'b'
- Count characters in a string whose ASCII values are prime
- Largest palindromic number in an array
- Minimum removals in a number to be divisible by 10 power raised to K
- Split a number into 3 parts such that none of the parts is divisible by 3
- Minimum Distance Between Words of a String
- Binary Search a String
- Sum of integers upto N with given unit digit
- Count numbers upto N which are both perfect square and perfect cube
- Check if the sum of primes is divisible by any prime from the array
- Average of remaining elements after removing K largest and K smallest elements from array
- Find numbers a and b that satisfy the given conditions
- Count the number of special permutations
- Count sub-sets that satisfy the given condition
- Integers from the range that are composed of a single distinct digit
- Sub-strings of a string that are prefix of the same string
- Sum of integers upto N with given unit digit (Set 2)
- Count numbers < = N whose difference with the count of primes upto them is > = K
- Leftmost and rightmost indices of the maximum and the minimum element of an array
- Program to generate all possible valid IP addresses from given string | Set 2
- Lower Insertion Point
- Minimum number of consecutive sequences that can be formed in an array
- Sum of element whose prime factors are present in array
- Minimum value that divides one number and divisible by other
- Largest palindromic prime in an array
- Sum of elements from an array having even parity
- Smallest subarray containing minimum and maximum values
- Check if moves in a stack or queue are possible or not
- Minimum steps to reach any of the boundary edges of a matrix | Set 1
- Side of a regular n-sided polygon circumscribed in a circle
- Number of pairs whose sum is a power of 2
- Check if the sum of distinct digits of two integers are equal
- Ways to fill N positions using M colors such that there are exactly K pairs of adjacent different colors
- Maximum GCD of N integers with given product
- Find minimum x such that (x % k) * (x / k) == n
- Generate elements of the array following given conditions
- Minimum K such that every substring of length atleast K contains a character c
- Find minimum x such that (x % k) * (x / k) == n | Set-2
- Minimum number of operations required to sum to binary string S
- Sum of kth powers of first n natural numbers
- Find elements of array using XOR of consecutive elements
- Find an integer X which is divisor of all except exactly one element in an array
- Program to multiply two Matrix by taking data from user
- Program to check the number is Palindrome or not
- Split a string in equal parts such that all parts are palindromes
- Find the maximum possible value of the minimum value of modified array
- Sub-strings that start and end with one character and have at least one other
- Area of Reuleaux Triangle
- Diagonal of a Regular Pentagon
- Diagonal of a Regular Hexagon
- Number of array elements derivable from D after performing certain operations
- Maximum number of removals of given subsequence from a string
- Biggest Reuleaux Triangle within A Square
- Count pairs in an array that hold i+j= arr[i]+arr[j]
- Largest hexagon that can be inscribed within a square
- Reach the numbers by making jumps of two given lengths
- Largest hexagon that can be inscribed within an equilateral triangle
- Minimize the maximum minimum difference after one removal from array
- Program for converting hours into minutes and seconds
- Distinct palindromic sub-strings of the given string using Dynamic Programming
- Count of Numbers in a Range divisible by m and having digit d in even positions
- A Sum Array Puzzle
- Count Subarrays with Consecutive elements differing by 1
- Buy minimum items without change and given coins
- Check if all elements of the array are palindrome or not
- Count numbers in a range that are divisible by all array elements
- Count common prime factors of two numbers
- Recursive program to insert a star between pair of identical characters
- Product of N with its largest odd digit
- Cost to make a string Panagram
- Remove consecutive alphabets which are in same case
- Diagonal of a Regular Heptagon
- Diagonal of a Regular Decagon
- Convert a String into a square matrix grid of characters
- Count number of step required to reduce N to 1 by following certain rule
- Check if N is a Factorial Prime
- Find the number in a range having maximum product of the digits
- Area of a n-sided regular polygon with given side length
- Area of a n-sided regular polygon with given Radius
- Recursive Program for Binary to Decimal
- Generate number with given operation and check if it is palindrome
- Print numbers in matrix diagonal pattern
- Find the sums for which an array can be divided into sub-arrays of equal sum
- Minimum Numbers of cells that are connected with the smallest path between 3 given cells
- Check if a number is perfect square without finding square root
- Remove exactly one element from the array such that max - min is minimum
- Choose n elements such that their mean is maximum
- Occurrences of a pattern in binary representation of a number
- Count distinct substrings that contain some characters at most k times
- Check whether a + b = c or not after removing all zeroes from a,b and c
- Represent n as the sum of exactly k powers of two | Set 2
- Apothem of a n-sided regular polygon
- Print all subsequences of a string using ArrayList
- Generate all rotations of a number
- Count number of pairs (i, j) such that arr[i] * arr[j] > arr[i] + arr[j]
- Replace all occurrences of a string with space
- Find probability that a player wins when probabilities of hitting the target are given
- Find the n-th binary string in sorted order
- Minimum absolute difference between N and a power of 2
- Minimum prime number operations to convert A to B
- Maximum value of arr[i] % arr[j] for a given array
- Check whether a number is Non-hypotenuse number
- Find the repeating and the missing number using two equations
- Replace the maximum element in the array by coefficient of range
- Check if a word exists in a grid or not
- Generate permutation of 1 to N such that absolute difference of consecutive numbers give K distinct integers
- Count rows in a matrix that consist of same element
- Number of subarrays have bitwise OR >= K
- Smallest multiple of 3 which consists of three given non-zero digits
- Largest number less than X having at most K set bits
- Minimum number of sets with numbers less than Y
- Check if it is possible to draw a straight line with the given direction cosines
- Minimum number N such that total set bits of all numbers from 1 to N is at-least X
- Find cost price from given selling price and profit or loss percentage
- Count of matrices (of different orders) with given number of elements
- Minimum elements to be added so that two matrices can be multiplied
- Minimum steps required to convert X to Y where a binary matrix represents the possible conversions
- Distribute N candies among K people
- Program to find nth term of the series 1 4 15 24 45 60 92
- Print all integers that are sum of powers of two given numbers
- Possible cuts of a number such that maximum parts are divisible by 3
- Program to delete Nth digit of a Number
- First and Last Three Bits
- K length words that can be formed from given characters without repetition
- Program to print Step Pattern
- Smallest perfect square divisible by all elements of an array
- Length of the longest substring with consecutive characters
- Largest sub-set possible for an array satisfying the given condition
- Smallest perfect Cube divisible by all elements of an array
- Weighted sum of the characters of a string in an array | Set 2
- Count the number of holes in an integer
- Recursive program to print all numbers less than N which consist of digits 1 or 3 only
- Cost to make a string Panagram | Set 2
- Convert given string so that it holds only distinct characters
- Find probability of selecting element from kth column after N iterations
- Program to check if two strings are same or not
- Check if a number can be expressed as sum two abundant numbers
- Sum of P terms of an AP if Mth and Nth terms are given
- Ternary Search
- Find nth term of the series 5 2 13 41
- Program to find sum of harmonic series
- Count number of set bits in a range using bitset
- Print n 0s and m 1s such that no two 0s and no three 1s are together
- Print all Proth primes up to N
- Find Pth term of a GP if Mth and Nth terms are given
- Count of strings that become equal to one of the two strings after one removal
- Largest subset where absolute difference of any two element is a power of 2
- Print all safe primes below N
- Check if it is possible to get back to 12'0 clock only by adding or subtracting given seconds
- Count pairs in an array such that at least one element is prime
- Check whether two straight lines are orthogonal or not
- Program for Area Of Square after N-th fold
- Minimize the number of replacements to get a string with same number of 'a', 'b' and 'c' in it
- Rearrange Odd and Even values in Alternate Fashion in Ascending Order
- Count of Numbers such that difference between the number and sum of its digits not less than L
- Count number of sub-sequences with GCD 1
- Print prime numbers with prime sum of digits in an array
- Check if a string can be repeated to make another string
- Largest number less than or equal to N/2 which is coprime to N
- Find the area of largest circle inscribed in ellipse
- Print multiples of Unit Digit of Given Number
- Check if the binary representation of a number has equal number of 0s and 1s in blocks
- Check whether the given character is in upper case, lower case or non alphabetic character
- Sort even and odd placed elements in increasing order
- Rectangle with minimum possible difference between the length and the width
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle
- Count of values of x <= n for which (n XOR x) = (n - x)
- Count the numbers that can be reduced to zero or less in a game
- Print all multiplicative primes <= N
- Program to check if a number is divisible by any of its digits
- Find the resulting Colour Combination
- Generate lexicographically smallest string of 0, 1 and 2 with adjacent swaps allowed
- Find the final X and Y when they are Altering under given condition
- Remove first X rows and columns from a matrix
- Find array using different XORs of elements in groups of size 4
- Count the number of survivors
- Program to implement Linear Extrapolation
- Remove characters from a numeric string such that string becomes divisible by 8
- Remove any corner X rows and columns from a matrix
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse
- Largest right circular cone that can be inscribed within a sphere which is inscribed within a cube
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon
- Minimum operations of given type to make all elements of a matrix equal
- Count of sub-strings that are divisible by K
- Program to check if a number is divisible by sum of its digits
- Composite XOR and Coprime AND
- Maximum given sized rectangles that can be cut out of a sheet of paper
- Midpoint ellipse drawing algorithm
- Check if a binary string has two consecutive occurrences of one everywhere
- Generate a random permutation of 1 to N
- Check if possible to shuffle a matrix with adjacent movements
- Make all elements of an array equal with the given operation
- Check if a number can be represented as a sum of 2 triangular numbers
- Minimum operations of the given type required to make a complete graph
- Count of pairs of (i, j) such that ((n % i) % j) % n is maximized
- Count number of trailing zeros in (1^1)*(2^2)*(3^3)*(4^4)*..
- Largest sphere that can be inscribed in a right circular cylinder inscribed in a frustum
- Check whether XOR of all numbers in a given range is even or odd
- Minimum positive integer divisible by C and is not in range [A, B]
- Number of unique pairs in an array
- Count all Prime Length Palindromic Substrings
- Array element with minimum sum of absolute differences
- Maximum GCD from Given Product of Unknowns
- Count operations of the given type required to reduce N to 0
- Check if a + b = c is valid after removing all zeroes from a, b and c
- Decrypt a string encrypted by repeating i-th character i times
- Arrange first N natural numbers such that absolute difference between all adjacent elements > 1
- Increasing sequence with given GCD
- Minimum replacements to make adjacent characters unequal in a ternary string
- Filling diagonal to make the sum of every row, column and diagonal equal of 3x3 matrix
- Program to find LCM of two Fibonnaci Numbers
- Maximum subarray sum in array formed by repeating the given array k times
- Closest sum partition (into two subsets) of numbers from 1 to n
- Find two numbers whose divisors are given in a random order
- Number of Simple Graph with N Vertices and M Edges
- Smallest integer greater than n such that it consists of digit m exactly k times
- Minimum operations required to make all the array elements equal
- Check if a binary string contains consecutive same or not
- Cost of painting n * m grid
- Count Odd and Even numbers in a range from L to R
- Generate minimum sum sequence of integers with even elements greater
- Find the lexicographically largest palindromic Subsequence of a String
- Validation of Equation Given as String
- Count of sub-sets of size n with total element sum divisible by 3
- Count occurrences of a string that can be constructed from another given string
- Split the array into equal sum parts according to given conditions
- Form lexicographically smallest string with minimum replacements having equal number of 0s, 1s and 2s
- Modify the string by swapping continuous vowels or consonants
- Ways to divide a binary array into sub-arrays such that each sub-array contains exactly one 1
- Program to Assign grades to a student using Nested If Else
- Count of alphabets whose ASCII values can be formed with the digits of N
- Make palindromic string non-palindromic by rearranging its letters
- Minimum spanning tree cost of given Graphs
- Find the winner by adding Pairwise difference of elements in the array until Possible
- Maximum number of teams that can be formed with given persons
- Maximum count of sub-strings of length K consisting of same characters
- Minimum operations required to modify the array such that parity of adjacent elements is different
- Maximize the subarray sum after multiplying all elements of any subarray with X
- Maximize the value of x + y + z such that ax + by + cz = n
- Maximum money that can be withdrawn in two steps
- Number of sub-strings that contain the given character exactly k times
- Find integers that divides maximum number of elements of the array
- Find M-th number whose repeated sum of digits of a number is N
- Total position where king can reach on a chessboard in exactly M moves
- Maximum size of sub-array that satisfies the given condition
- Find minimum difference between any two elements | Set 2
- Maximum sum after repeatedly dividing N by a divisor
- Find the cordinates of the fourth vertex of a rectangle with given 3 vertices
- Minimum number of operations to move all uppercase characters before all lower case characters
- Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition
- Minimum value to be added to X such that it is at least Y percent of N
- Choose points from two ranges such that no point lies in both the ranges
- Number of ways to choose an integer such that there are exactly K elements greater than it in the given array
- Find maximum operations to reduce N to 1
- Find frequency of smallest value in an array
- Find Intersection of all Intervals
- Count of unique pairs (arr[i], arr[j]) such that i < j
- Minimum number of operations on an array to make all elements 0
- Count the number of rhombi possible inside a rectangle of given size
- Acronym words
- Maximize the sum of products of the degrees between any two vertices of the tree
- Maximum number of segments that can contain the given points
- Maximum length subsequence such that adjacent elements in the subsequence have a common factor
- Find sub-matrix with the given sum
- Modify a binary array to Bitwise AND of all elements as 1
- Count all possible N digit numbers that satisfy the given condition
- Minimum elements to be removed such that sum of adjacent elements is always odd
- Count possible moves in the given direction in a grid
- Minimum number of given operations required to convert a string to another string
- Program for power of a complex number in O(log n)
- Total number of days taken to complete the task if after certain days one person leaves
- Composite numbers with digit sum 1
- Generate a string consisting of characters 'a' and 'b' that satisfy the given conditions
- Length of the longest alternating subarray
- Check if a string can be converted to another string by replacing vowels and consonants
- Minimum replacements to make adjacent characters unequal in a ternary string | Set-2
- 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
- Check whether the point (x, y) lies on a given line
- Count of pairs (x, y) in an array such that x < y
- Maximize the maximum among minimum of K consecutive sub-arrays
- Sum of XOR of all subarrays
- Sum of bitwise AND of all subarrays
- Merge K sorted arrays | Set 3 ( Using Divide and Conquer Approach )
- Find index i such that prefix of S1 and suffix of S2 till i form a palindrome when concatenated
- Find a positive number M such that gcd(N^M, N&M) is maximum
- Minimum index i such that all the elements from index i to given index are equal
- Find the longest Fibonacci-like subarray of the given array
- Find a permutation of 2N numbers such that the result of given expression is exactly 2K
- Queries for number of distinct integers in Suffix
- Given two binary strings perform operation until B > 0 and print the result
- Count primes that can be expressed as sum of two consecutive primes and 1
- Iterating over all possible combinations in an Array using Bits
- Check whether two strings are equivalent or not according to given condition
- Longest subsequence having greater corner values
- Smallest Special Prime which is greater than or equal to a given number
- Ways to form an array having integers in given range such that total sum is divisible by 2
- Minimum number of elements that should be removed to make the array good
- Select numbers in such way to maximize the amount of money
- Minimum removals to make array sum odd
- Check whether the number can be made perfect square after adding 1
- Number of Hamiltonian cycle
- Split the array into odd number of segments of odd lengths
- Maximum Bitwise AND pair from given range
- Sum of all Submatrices of a Given Matrix
- Find whether only two parallel lines contain all coordinates points or not
- Longest sub-sequence of array containing Lucas numbers
- XOR of a submatrix queries
- Find the minimum number of preprocess moves required to make two strings equal
- Minimum LCM and GCD possible among all possible sub-arrays
- Find the Nth term of the series where each term f[i] = f[i - 1] - f[i - 2]
- Maximum product from array such that frequency sum of all repeating elements in product is less than or equal to 2 * k
- Sort the numbers according to their sum of digits
- Minimum possible sum of array elements after performing the given operation
- XOR of XORs of all sub-matrices
- Schedule elevator to reduce the total time taken
- Maximum length subarray with difference between adjacent elements as either 0 or 1
- Find Nth positive number whose digital root is X
- Number of subarrays such that XOR of one half is equal to the other
- Bitwise AND of N binary strings
- Maximum length of the sub-array whose first and last elements are same
- Longest Sub-array with maximum average value
- k-th missing element in an unsorted array
- Maximum occurrence of prefix in the Array
- Count pairs (p, q) such that p occurs in array at least q times and q occurs at least p times
- Number of connected components in a 2-D matrix of strings
- Sum of even values and update queries on an array
- Longest subsequence such that adjacent elements have at least one common digit
- Minimum changes required to make a Catalan Sequence
- Count all elements in the array which appears at least K times after their first occurrence
- Numbers in a Range with given Digital Root
- Count of all even numbers in the range [L, R] whose sum of digits is divisible by 3
- Check if frequency of characters are in Recaman Series
- Replace every consonant sequence with its length in the given string
- Equation of circle when three points on the circle are given
- Count Hexadecimal Number
- Check if product of digits of a number at even and odd places is equal
- Character pairs from two strings with even sum
- Given number of matches played, find number of teams in tournament
- Minimize sum of adjacent difference with removal of one element from array
- Missing even and odd elements from the given arrays
- Maximum subarray sum by flipping signs of at most K array elements
- Group consecutive characters of same type in a string
- Probability of A winning the match when individual probabilities of hitting the target given
- Number of quadruples where the first three terms are in AP and last three terms are in GP
- Deletions of "01" or "10" in binary string to make it free from "01" or "10"
- Minimum length substring with exactly K distinct characters
- Find the first maximum length even word from a string
- Minimum number of letters needed to make a total of n
- Smallest integer > 1 which divides every element of the given array
- Print the balanced bracket expression using given brackets
- Series summation if T(n) is given and n is very large
- Maximize profit when divisibility by two numbers have associated profits
- Encrypt a string by repeating i-th character i times
- Maximum number that can be display on Seven Segment Display using N segments
- Number of ways to remove elements to maximize arithmetic mean
- Maximum average of a subarray of size of atleast X and atmost Y
- Sum of i * countDigits(i)^2 for all i in range [L, R]
- Program to calculate the value of nPr
- Find the modified array after performing k operations of given type
- Check if the given array is mirror-inverse
- Maximize the number of sum pairs which are divisible by K
- Find d to maximize the number of zeros in array c[] created as c[i] = d*a[i] + b[i]
- Sum of elements in an array whose difference with the mean of another array is less than k
- Remove first adjacent pairs of similar characters until possible
- Number of pairs from the first N natural numbers whose sum is divisible by K
- Generate all the binary strings of N bits
- Position of the K-th set bit in a number
- Maximum count of pairs which generate the same sum
- Count integers in a range which are divisible by their euler totient value
- Number of ways to make binary string of length N such that 0s always occur together in groups of size K
- Count sub-arrays whose product is divisible by k
- Find foot of perpendicular from a point in 2 D plane to a Line
- Minimum steps to delete a string by deleting substring comprising of same characters
- Print a number as string of 'A' and 'B' in lexicographic order
- Maximum sum from three arrays such that picking elements consecutively from same is not allowed
- Count of buttons pressed in a keypad mobile
- Find a distinct pair (x, y) in given range such that x divides y
- Largest number N which can be reduced to 0 in K steps
- Sort elements of the array that occurs in between multiples of K
- Find the value of XXXX.....(N times) % M where N is large
- Find the smallest number X such that X! contains at least Y trailing zeros.
- Find 2^(2^A) % B
- Smallest index in the given array that satisfies the given condition
- Print the longest prefix of the given string which is also the suffix of the same string
- Minimum cost to reach end of array array when a maximum jump of K index is allowed
- Minimize the cost to split a number
- Maximum number of continuous Automorphic numbers
- Compute maximum of the function efficiently over all sub-arrays
- Find the maximum number of composite summands of a number
- Given count of digits 1, 2, 3, 4, find the maximum sum possible
- Determine the number of squares of unit area that a given line will pass through.
- Check if product of array containing prime numbers is a perfect square
- Count common characters in two strings
- Minimum value to add to arr[i] so that an array can be split at index i with equal sum
- Uniform Binary Search
- Sum of degrees of all nodes of a undirected graph
- Number of ways to go from one point to another in a grid
- Print last character of each word in a string
- Distinct pairs from given arrays (a[i], b[j]) such that (a[i] + b[j]) is a Fibonacci number
- Maximum number of candies that can be bought
- Total distinct pairs from two arrays such that second number can be obtained by inverting bits of first
- Pairs of strings which on concatenating contains each character of "string"
- Maximum sum possible for a sub-sequence such that no two elements appear at a distance < K in the array
- Total position where king can reach on a chessboard in exactly M moves | Set 2
- Count number of ways to reach a given score in a Matrix
- Find the area of the shaded region formed by the intersection of four semicircles in a square
- Find the original matrix when largest element in a row and a column are given
- Find the number of different numbers in the array after applying the given operation q times
- Length of the longest substring that do not contain any palindrome
- XOR of all the elements in the given range [L, R]
- Arrange given numbers to form the smallest number
- Area of largest Circle inscribe in N-sided Regular polygon
- Maximum Subarray Sum after inverting at most two elements
- Find the number of integers from 1 to n which contains digits 0's and 1's only
- Find the number of jumps to reach X in the number line from zero
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Maximum element in a sorted and rotated array
- Count the number of operations required to reduce the given number
- Find the longest subsequence of an array having LCM at most K
- Sum of two numbers where one number is represented as array of digits
- Count number of binary strings of length N having only 0's and 1's
- Find original numbers from gcd() every pair
- Check if a given number divides the sum of the factorials of its digits
- Count the number of pairs (i, j) such that either arr[i] is divisible by arr[j] or arr[j] is divisible by arr[i]
- Maximum number of people that can be killed with strength P
- Sum of the series Kn + ( K(n-1) * (K-1)1 ) + ( K(n-2) * (K-1)2 ) + ....... (K-1)n
- Length of the smallest number which is divisible by K and formed by using 1's only
- Remove elements to make array sorted
- Find the number of binary strings of length N with at least 3 consecutive 1s
- Find the number of integers x in range (1,N) for which x and x+1 have same number of divisors
- Total number of triangles formed when there are H horizontal and V vertical lines
- Minimum number of given operations required to convert a permutation into an identity permutation
- Count distinct points visited on the number line
- Find the count of sub-strings whose characters can be rearranged to form the given word
- Count all prefixes of the given binary array which are divisible by x
- Reduce the fraction to its lowest form
- Length of the longest increasing subsequence such that no two adjacent elements are coprime
- Find n positive integers that satisfy the given equations
- Maximize the happiness of the groups on the Trip
- Delete odd and even numbers at alternate step such that sum of remaining elements is minimized
- Minimum sub-array such that number of 1's in concatenation of binary representation of its elements is at least K
- Shell-Metzner Sort
- Find the longest sub-string which is prefix, suffix and also present inside the string
- Find the minimum number of operations required to make all array elements equal
- Find missing element in a sorted array of consecutive numbers
- Minimum number of changes such that elements are first Negative and then Positive
- Length of the longest substring with no consecutive same letters
- Find the number of players who roll the dice when the dice output sequence is given
- Predict the winner of the game on the basis of absolute difference of sum by selecting numbers
- Divide a number into two parts
- Program to calculate product of digits of a number
- Print the first and last character of each word in a String
- Divide array into increasing and decreasing subsequence without changing the order
- Queries to answer the number of ones and zero to the left of given index
- Program to find the maximum difference between the index of any two different numbers
- Divide array into two parts with equal sum according to the given constraints
- Remove the first and last character of each word in a string
- Capitalize the first and last character of each word in a string
- Check if two strings are same ignoring their cases
- Find the sum of the number of divisors
- Split the array elements into strictly increasing and decreasing sequence
- Find the sum of digits of a number at even and odd places
- Find the value at kth position in the generated array
- Count the number of sub-arrays such that the average of elements present in the sub-array is greater than that not present in the sub-array
- Largest ellipse that can be inscribed within a rectangle which in turn is inscribed within a semicircle
- Find the lexicographically smallest string which satisfies the given condition
- Find the number of sub arrays in the permutation of first N natural numbers such that their median is M
- Find the number of divisors of all numbers in the range [1, n]
- Queries to check if substring[L...R] is palindrome or not
- Count pairs of non-overlapping palindromic sub-strings of the given string
- Check if matrix A can be converted to B by changing parity of corner elements of any submatrix
- Maximum sum of cocktail glass in a 2D matrix
- Number of triangles possible with given lengths of sticks which are powers of 2
- Count of elements whose absolute difference with the sum of all the other elements is greater than k
- Minimum length of the sub-string whose characters can be used to form a palindrome of length K
- Check whether N is a Dihedral Prime Number or not
- Find minimum positive integer x such that a(x^2) + b(x) + c >= k
- Length of the normal from origin on a straight line whose intercepts are given
- Number of subsequences with zero sum
- Count of sub-strings that do not consist of the given character
- Find the maximum possible value of a[i] % a[j] over all pairs of i and j
- Maximize the maximum subarray sum after removing atmost one element
- Count the pairs of vowels in the given string
- 3-digit Osiris number
- Dudeney Numbers
- Insertion and Deletion in Heaps
- Building Heap from Array
- Sum of elements in 1st array such that number of elements less than or equal to them in 2nd array is maximum
- Calculate the loss incurred in selling the given items at discounted price
- Given a string and an integer k, find the kth sub-string when all the sub-strings are sorted according to the given condition
- Find the kth element in the series generated by the given N ranges
- Check whether the given string is a valid identifier
- Find the nth term of the given series
- Count of sub-strings of length n possible from the given string
- Maximum absolute difference in an array
- Move all zeros to start and ones to end in an Array of random integers
- Find out the minimum number of coins required to pay total amount
- Longest substring of only 4's from the first N characters of the infinite string
- Equation of straight line passing through a given point which bisects it into two equal line segments
- Count different numbers possible using all the digits their frequency times
- Find the minimum of maximum length of a jump required to reach the last island in exactly k jumps
- Print all numbers whose set of prime factors is a subset of the set of the prime factors of X
- Highest power of a number that divides other number
- Count of sub-strings that contain character X at least once
- Area of triangle formed by the axes of co-ordinates and a given straight line
- Distance between two parallel lines
- Check if given two straight lines are identical or not
- Minimum cost to modify a string
- Highest power of 2 that divides a number represented in binary
- Minimum time required to transport all the boxes from source to the destination under the given constraints
- Find sum of factorials in an array
- Count of quadruplets with given Sum | Set 2
- Find the Diameter or Longest chord of a Circle
- Determine the position of the third person on regular N sided polygon
- Length of the chord of the circle whose radius and the angle subtended at the center by the chord is given
- Number of character corrections in the given strings to make them equal
- Reorder the position of the words in alphabetical order
- 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
- Shortest distance from the centre of a circle to a chord
- 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
- Length of direct common tangent between two intersecting Circles
- Shortest distance between a point and a circle
- Count pairs with average present in the same array
- Minimizing array sum by applying XOR operation on all elements of the array
- Maximize the given number by replacing a segment of digits with the alternate digits given
- Queries to answer the X-th smallest sub-string lexicographically
- Count unique numbers that can be generated from N by adding one and removing trailing zeros
- Find an index such that difference between product of elements before and after it is minimum
- Find element with the maximum set bits in an array
- Minimum number of cubes whose sum equals to given number N
- Convert given integer X to the form 2^N - 1
- Generate an array of K elements such that sum of elements is N and the condition a[i] < a[i+1] <= 2*a[i] is met | Set 2
- Calculate score for the given binary string
- Number of positions such that adding K to the element is greater than sum of all other elements
- Count number of 1s in the array after N moves
- Largest even number that can be formed by any number of swaps
- 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
- Minimum increments to convert to an array of consecutive integers
- Make lexicographically smallest palindrome by substituting missing characters
- Minimum deletions required such that any number X will occur exactly X times
- Bellman Ford Algorithm (Simple Implementation)
- Compare sum of first N-1 elements to Nth element of an array
- Program to print an array in Pendulum Arrangement with constant space
- Ratio of the distance between the centers of the circles and the point of intersection of two direct common tangents to the circles
- 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
- Minimum number of given operations required to reduce the array to 0 element
- Program to find the rate percentage from compound interest of consecutive years
- Find prime number K in an array such that (A[i] % K) is maximum
- Check if it is possible to make two martices strictly increasing by swapping corresponding values only
- Count Pairs from two arrays with even sum
- Count the number of primes in the prefix sum array of the given array
- Rearrange the array to maximize the number of primes in prefix sum of the array
- Check whether product of integers from a to b is positive , negative or zero
- Maximum sum such that no two elements are adjacent | Set 2
- 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
- Count squares with odd side length in Chessboard
- Minimum number of sub-strings of a string such that all are power of 5
- Bitwise AND of sub-array closest to K
- Find letter's position in Alphabet using Bit operation
- Optimal Strategy for a Game | Set 2
- Number of edges in mirror image of Complete binary tree
- Find minimum steps required to reach the end of a matrix | Set 2
- Sum of GCDs of each row of the given matrix
- Minimum number of operations on a binary string such that it gives 10^A as remainder when divided by 10^B
- Queries to find the maximum Xor value between X and the nodes of a given level of a perfect binary tree
- Find the index which is the last to be reduced to zero after performing a given operation
- Number of common tangents between two circles if their centers and radius is given
- 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 the time which is palindromic and comes after the given time
- Find the last non repeating character in string
- Find average of two numbers using bit operation
- Find if nCr is divisible by the given prime
- Queries for bitwise AND in the given matrix
- Queries for bitwise OR in the given matrix
- Generate all unique partitions of an integer | Set 2
- Remove elements to make array satisfy arr[ i+1] < arr[i] for each valid i
- Sort an alphanumeric string such that the positions of alphabets and numbers remain unchanged
- Find the sum of numbers from 1 to n excluding those which are powers of K
- Check if a string contains two non overlapping sub-strings "geek" and "keeg"
- Check if the given matrix is increasing row and column wise
- Check if the given Prufer sequence is valid or not
- Print an N x M matrix such that each row and column has all the vowels in it
- Check whether an array can be made strictly increasing by modifying atmost one element
- Find the Jaccard Index and Jaccard Distance between the two given sets
- Count of all possible values of X such that A % X = B
- Queries to find the last non-repeating character in the sub-string of a given string
- Minimize the sum after choosing elements from the given three arrays
- Count the triplets such that A[i] < B[j] < C[k]
- Factorial of an Array of integers
- Find a triplet in an array whose sum is closest to a given number
- Distance of chord from center when distance between center and another equal length chord is given
- Subset with sum closest to zero
- Number of subsets with zero sum
- Check if each element of the given array is the product of exactly K prime numbers
- Find maximum topics to prepare in order to pass the exam
- Number of ways to divide an array into K equal sum sub-arrays
- 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
- Print the node with the maximum degree in the prufer sequence
- Print elements of an array according to the order defined by another array | set 2
- 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 largest possible k-multiple set
- 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
- Check if the two given stacks are same
- Find the smallest positive number missing from an unsorted array : Hashing Implementation
- Find the sum of the ascii values of characters which are present at prime positions
- Count of three non-overlapping sub-strings which on concatenation forms a palindrome
- Maximise array sum after taking non-overlapping sub-arrays of length K
- Sum of XOR of all sub-arrays of length K
- Count the maximum number of elements that can be selected from the array
- Length of the largest substring which have character with frequency greater than or equal to half of the substring
- Sum of all palindrome numbers present in an Array
- Find uncommon characters of the two strings | Set 2
- 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
- Count pairs of characters in a string whose ASCII value difference is K
- Find a way to fill matrix with 1's and 0's in blank positions
- 0-1 knapsack queries
- Count number of distinct substrings of a given length
- 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
- Count pairs of elements such that number of set bits in their AND is B[i]
- Count of adjacent Vowel Consonant Pairs
- Split the given array into K sub-arrays such that maximum sum of all sub arrays is minimum
- Maximum subset sum such that no two elements in set have same digit in them
- Longest prefix in a string with highest frequency
- Number of ways to choose elements from the array such that their average is K
- Length of longest sub-array with maximum arithmetic mean.
- Queries to find the first non-repeating character in the sub-string of a string
- Find the element in the matrix generated by given rules
- 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
- Largest sub-string where all the characters appear at least K times
- Print all the super diagonal elements of the given square matrix
- Find the total number of composite factor for a given number
- Count of substrings which contains a given character K times
- Count Distinct Rectangles in N*N Chessboard
- Number of sub-sequence such that it has one consecutive element with difference less than or equal to 1
- Total number of odd length palindrome sub-sequence around each centre
- Print Lower Hessenberg matrix of order N
- Print Upper Hessenberg matrix of order N
- Count common elements in two arrays containing multiples of N and M
- Number of ways to get a given sum with n number of m-faced dices
- Order of indices which is lexicographically smallest and sum of elements is <= X
- Count pairs of elements such that number of set bits in their OR is B[i]
- Sort the character array based on ASCII % N
- Reverse the Sentence using Stack
- Count number of common elements between two arrays by using Bitset and Bitwise operation
- 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
- Kth smallest element in the array using constant space when array can't be modified
- Minimum deletions required to make GCD of the array equal to 1
- Print first N terms of Lower Wythoff sequence
- Check whether it is possible to convert A into B
- Check whether str1 can be converted to str2 with the given operations
- Number of elements from the array which are reachable after performing given operations on D
- Maximum previous and next element product
- Find the minimum number of elements that should be removed to make an array good
- Find XOR of numbers from the range [L, R]
- Reverse individual words with O(1) extra space
- Count of numbers whose 0th and Nth bits are set
- Find a number containing N - 1 set bits at even positions from the right
- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
- Sentence Case of a given Camel cased string
- Minimum number of adjacent swaps to convert a string into its given anagram
- 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
- Rearrange the given string such that all prime multiple indexes have same character
- Smallest perfect cube in an array
- Maximum element in an array such that its previous and next element product is maximum
- Count substrings that contain all vowels | SET 2
- Number of ways of distributing N identical objects in R distinct groups
- 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 number of paths of length K in a directed graph
- Partiton the string in two parts such that both parts have at least k different characters
- Find the position of the given row in a 2-D array
- Maximum number formed from array with K number of adjacent swaps allowed
- Unbounded Fractional Knapsack
- Minimum number of steps to convert a given matrix into Diagonally Dominant Matrix
- Longest sub-array with equal number of alphabets and numeric characters
- Find distinct characters in distinct substrings of a string
- Count of non-overlapping sub-strings "101" and "010" in the given binary string
- Remove an element to maximize the GCD of the given array
- Count of pairs between two arrays such that the sums are distinct
- Number of Quadruples with GCD equal to K
- Longest Subarray having strictly positive XOR
- Decimal to Binary using recursion and without using power operator
- Minimum and maximum possible length of the third side of a triangle
- Find the volume of rectangular right wedge
- Cost Based Tower of Hanoi
- Count total set bits in all numbers from 1 to n | Set 2
- Check if a string can be obtained by rotating another string d places
- Maximum length palindromic substring such that it starts and ends with given char
- Case-specific sorting of Strings in O(n) time and O(1) space
- Longest subsequence such that every element in the subsequence is formed by multiplying previous element with a prime
- Probability of distributing M items among X bags such that first bag contains N items
- Minimum Bitwise OR operations to make any two array elements equal
- Count pairs in an array such that the absolute difference between them is ≥ K
- Minimum Bitwise XOR operations to make any two array elements equal
- Minimum operations required to convert X to Y by multiplying X with the given co-primes
- Partition the array in K segments such that bitwise AND of individual segment sum is maximized
- Count ways to divide circle using N non-intersecting chord | Set-2
- Count equal pairs from given string arrays
- Check if a number is Fermat Pseudoprime
- Maximum length sub-array which satisfies the given conditions
- Find array such that no subarray has xor zero or Y
- Find the difference of count of equal elements on the right and the left for each element
- Find smallest positive number Y such that Bitwise AND of X and Y is Zero