## Count how many times the given digital clock shows identical digits

Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock… Read More »

- Practice for cracking any coding interview
- How to get rid of Java TLE problem
- How can one become good at Data structures and Algorithms easily?
- Burst Balloon to maximize coins
- Understanding The Coin Change Problem With Dynamic Programming
- Subset array sum by generating all the subsets
- Reach the numbers by making jumps of two given lengths
- Make all numbers of an array equal
- Some useful C++ tricks for beginners in Competitive Programming
- Check if a number is perfect square without finding square root
- Sum of similarities of string with all of its suffixes
- Find triplets in an array whose AND is maximum
- Length of the longest Subarray with only Even Elements
- Sum of the first N Prime numbers
- Sort the array of strings according to alphabetical order defined by another string
- Check if it is possible to reach a number by making jumps of two given length
- How can competitive programming help you get a job?
- Print matrix in snake pattern from the last column
- Sum of XOR of all subarrays
- Minimum changes required to make two arrays identical
- Number of array elements derivable from D after performing certain operations
- Make Binary Search Tree
- Minimum number of sets with numbers less than Y
- Smallest Pair Sum in an array
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Find two numbers whose divisors are given in a random order
- Maximum of all Subarrays of size k using set in C++ STL
- Sum of the multiples of two numbers below N
- Minimum number of increasing subsequences
- Operations required to make the string empty

Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock… Read More »

Given the position of the queen (qX, qY) and the opponent (oX, oY) on a chessboard. The task is to determine whether the queen can… Read More »

Given two arrays of N integers. Consider an array C, where the i-th integer will be d*a[i] + b[i] where d is any arbitrary real… Read More »

Given an array of N integers and an integer K. The task is to print the maximum number of pairs(a[i]+a[j]) possible which are divisible by… Read More »

Given four integers a, b, c and d which signifies the number of four types of brackets. “((“ “()” “)(“ “))” The task is to… Read More »

Given an array arr[] and two integers X and Y. The task is to find a sub-array of size of atleast X and atmost Y… Read More »

Given five integers N, A, B, X and Y. The task is to find the maximum profit obtained from the numbers from the range [1,… Read More »

Given a sequence whose nth term is T(n) = n2 – (n – 1)2 The task is to evaluate the sum of first n terms… Read More »

Given two integer N and M, the task is to find the number of distinct numbers having N 0’s and M 1’s with no leading… Read More »

Given an array arr[] of N integers and an integer X. Element arr[i] in array denotes the cost to use 2i. The task is to… Read More »

Given a five digit number N. The task is to find the last five digits of the given number raised to the power of 5… Read More »

Given an array arr[], the task is to compute the sum of (max{A} – min{A}) for every non-empty subset A of the array arr[]. Examples:… Read More »

Given an array arr[], the task is to find the number of ways to remove elements from the array so as to maximize the arithmetic… Read More »

Given an integer N, the task is to find the count of all N digit numbers such that num + Rev(num) = 10N – 1… Read More »

Given an array arr[], the task is to find the smallest possible integer (other than 1) which divides every element of the given array. Examples:… Read More »