## Check the divisibility of Hexadecimal numbers

Given a string S consisting of a large hexadecimal number, the task is to check its divisibility by a given decimal number M. If divisible… Read More »

- Sum of digits with even number of 1's in their binary representation
- Count total set bits in all numbers from 1 to n | Set 2
- Reduce number to a single digit by subtracting adjacent digits repeatedly
- Equal Sum and XOR of three Numbers
- Append a digit in the end to make the number equal to the length of the remaining string
- Count of integers in a range which have even number of odd digits and odd number of even digits
- Check whether a number can be represented as sum of K distinct positive integers
- Menu Driven Program to convert MKS to CGS and CGS to MKS
- Recursive program to find all Indices of a Number
- Probability of getting more heads than tails when N biased coins are tossed
- Generate all unique partitions of an integer | Set 2
- Count numbers in given range such that sum of even digits is greater than sum of odd digits
- Find two integers A and B such that A ^ N = A + N and B ^ N = B + N
- Find sum of inverse of the divisors when sum of divisors and the number is given
- First N terms whose sum of digits is a multiple of 10
- Generate N integers satisfying the given conditions
- Maximum number of people that can be killed with strength P
- Find the sum of numbers from 1 to n excluding those which are powers of K
- Maximum possible elements which are divisible by 2
- Find the maximum sum of digits of the product of two numbers
- Sum of all second largest divisors after splitting a number into one or more parts
- Find average of two numbers using bit operation
- Check whether product of integers from a to b is positive , negative or zero
- Number of ways of distributing N identical objects in R distinct groups with no groups empty
- Largest and smallest digit of a number
- Find number from its divisors
- Multiply a number by 15 without using * and / operators
- Number of ways of distributing N identical objects in R distinct groups
- Count number of bits to be flipped to convert A to B | Set-2
- Maximum number of region in which N non-parallel lines can divide a plane

Given a string S consisting of a large hexadecimal number, the task is to check its divisibility by a given decimal number M. If divisible… Read More »

Given a number N, the task is to clear the K-th bit of this number N. If K-th bit is 0, then set it to… Read More »

Given a number N, the task is to clear the K-th bit of this number N. If K-th bit is 1, then clear it to… Read More »

Given an integer N and an infinite table where ith row and jth column contains the value i *j. The task is to find the… Read More »

Given a floating point number N, the task is to check whether it is palindrome or not. Input: N = 123.321 Output: Yes Input: N… Read More »

Given four integers a, b, c and d. The task is to check whether it is possible to pair them up such that they are… Read More »

Given a Fibonacci number N, the task is to find the previous Fibonacci number. Examples: Input: N = 8 Output: 5 5 is the previous… Read More »

Given an integer N, the task is to represent N as the sum of two composite integers. There can be multiple ways possible, print any… Read More »

Given an integer N, the task is to find the count of N-bit binary numbers without leading zeros. Examples: Input: N = 2 Output: 2… Read More »

Given a level L. The task is to find the sum of all the integers present at the given level in Pascal’s triangle . A… Read More »

Given an integer N. The task is to find the Nth odd Fibonacci number. The odd number fibonacci series is as: 1, 1, 3, 5,… Read More »

Given two integers M and N, the task is to create a list of M non-negative integers whose sum is N. In case when more… Read More »

Given two integers N and M and the task is to convert N to M with the following operations: Multiply N by 2 i.e. N… Read More »

Given a string str representing a number, the task is to find whether the number is valid or not if it made topsy-turvy i.e upside-down.… Read More »

Given an integer N, the task is to generate an array of size N with the following properties: No two elements divide each other. Every… Read More »