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

# Tag Archives: Numbers

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: 393Explanation:3993 is… Read More

Given a floating-point number in the form of a string N, the task is to convert the given floating-point number into fractions. Enclosed sequence of… Read More

Given an alphanumeric string S of length N, the task is to check if the given string represents a hexadecimal number or not. Print Yes… Read More

Given an integer N, the task is to print a sequence of length N consisting of alternate odd and even numbers in increasing order such… Read More

Given two integer N and K, the task is to print all positive numbers made up of N digits whose difference between the first and… Read More

Given three integers N, X, and Y, the task is to check if it is possible to reduce N to 0 or less by the… Read More

Given two natural numbers N and M, Create a graph using these two natural numbers using relation that a number is connected to its largest… Read More

Given two integers N and K, the task is to find the Nth Subset from the sequence of subsets generated from the powers of K… Read More

Given a positive number N, the task is to check whether the given number N can be expressed in the form of ax + by… Read More