## Check if the sum of digits of N is palindrome

Given an integer N, the task is to check whether the sum of digits of N is palindrome or not. Example: Input: N = 56… Read More »

- Coin Change | BFS Approach
- Program to find the last two digits of x^y
- Count substrings that contain all vowels | SET 2
- Find maximum xor of k elements in an array
- Partition an array of non-negative integers into two subsets such that average of both the subsets is equal
- Count of integers of length N and value less than K such that they contain digits only from the given set
- Find the smallest positive number missing from an unsorted array | Set 3
- Program to find the Nth Prime Number
- Find a triplet in an array whose sum is closest to a given number
- Find the minimum number of elements that should be removed to make an array good
- Find XOR of numbers from the range [L, R]
- Count total set bits in all numbers from 1 to n | Set 2
- Card Shuffle Problem | TCS Digital Advanced Coding Question
- Count pairs with given sum | Set 2
- Append a digit in the end to make the number equal to the length of the remaining string
- Find a subarray whose sum is divisible by size of the array
- Find the Nth term divisible by a or b or c
- Maximum subsequence sum such that all elements are K distance apart
- Find the Nth Mosaic number
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Remove Nth node from end of the Linked List
- Count pairs in an array such that the absolute difference between them is ≥ K
- Puzzle | Disclosing Secret
- Square root of a number without using sqrt() function
- Make the list non-decreasing by changing only one digit of the elements
- Check if the sum of digits of number is divisible by all of its digits
- Find two vertices of an isosceles triangle in which there is rectangle with opposite corners (0, 0) and (X, Y)
- Count of integers that divide all the elements of the given array
- Quadruplet pair with XOR zero in the given Array
- Number of Subsequences with Even and Odd Sum

Given an integer N, the task is to check whether the sum of digits of N is palindrome or not. Example: Input: N = 56… Read More »

Given an integer N, the task is to count all the integers less than or equal to N that follow the property where the sum… Read More »

Given a range [L, R], the task is to print all the perfect squares from the given range. Examples: Input: L = 2, R =… Read More »

Given an array arr[] of N positive elements, the task is to find a pair in the array such that the digit sum of elements… Read More »

Given two integer N and K, the task is to find the value of N XOR N XOR N XOR … XOR N (K times).… Read More »

In some of the games, it is possible to reduce the size of the payoff matrix by eliminating rows (or columns) which are dominated by… Read More »

Given an odd number N, the task is to find if the number can be represented as the sum of 3 prime numbers. Examples: Input:… Read More »

This article discusses how to solve a game by the dominance property with mixed strategy. Consider the below game: Solution: Find out the row minimum… Read More »

Given a large integer N, the task is to find all the possible remainders when N is divided by all the positive integers from 1… Read More »

Given an integer N, the task is to find the count of all the primes below N which can be expressed as the sum of… Read More »

Given N vertices of the polygon, the task is to find the centroid of the polygon Examples: Input: ar = {{0, 0}, {0, 8}, {8,… Read More »

Given an infinite matrix filled with the natural numbers as shown below: 1 2 4 7 . . . 3 5 8 . . .… Read More »

Given a matrix of size M * N, the task is to find the count of the minimum number of cells that must be flipped… Read More »

Given two years Y1 and Y2 where 103 ≤ Y1 ≤ Y2 ≤ 106, the task is to find and print all the dates which… Read More »

Given two integers N and M. At each operation, choose K cells of a 2D grid of size N * M and arrange them. If… Read More »