Skip to content

Tag Archives: Numbers

Given a string M consisting of letters, digits and symbols, the task is to convert the string to a valid mobile number by removing all… Read More
Given an integer N, the task is to find the path from the Nth node to the root of a Binary Tree of the following… Read More
Given two positive integers N and K, the task is to find the smallest number whose sum of digits is N and every distinct digit… Read More
Given two arrays L[] and R[] of sizes Q, the task is to find the number of composite magic numbers i.e numbers which are both… Read More
Given a positive integer N, the task is to find the smallest positive number made up of distinct digits having sum of its digits equal… Read More
Given two integers N and M, the task is to count all possible pair of integers (i, j) (1 ≤ i ≤ N, 1 ≤… Read More
Given a numeric string S of length N and a digit K, the task is to find the maximum number of distinct strings having a… Read More
Given an integer N, the task is to find the smallest positive integer, which when multiplied by N, has sum of digits equal to the… Read More
Given a positive integer N, the task is to generate two arrays of length N such that the same-indexed elements of both the arrays are… Read More
Given a range of numbers, the task is to write a Python program to find numbers divisible by 7 and multiple of 5. Example: Input:Enter… Read More
Given two octal numbers, the task is to write a Python program to compute their sum. Examples: Input: a = "123", b = "456" Output:… Read More
Given two hexadecimal numbers, write a Python program to compute their sum. Examples: Input: a = "01B", b = "378" Output: 393 Explanation: B (11… Read More
Given three positive integers N, X, and Y, the task is to count N-digit numbers containing of X or Y only as digits and the… Read More
Given integer N and integer S, the task is to find the smallest number greater than or equal to N such that the sum of… Read More
Given an integer N, the task is to find the closest palindromic number which is smaller than N. Examples: Input: N = 4000Output: 3993Explanation:3993 is… Read More

Start Your Coding Journey Now!