# Tag Archives: base-conversion

A number system can be considered as a mathematical notation of numbers using a set of digits or symbols. In simpler words, the number system… Read More
Given an integer X and an array of strings str which represents numbers in any base ranging from [2, 36], the task is to check… Read More
Given a natural number N, the task is to find the largest N digit Octal number which is a perfect square.Examples:   Input: N = 1 Output:… Read More
Given a number N in decimal base, the task is to find the sum of digits of the number in any base B. Examples:   Input: N… Read More
Given a number A in decimal base, the task is to find the Nth digit from last in base BExamples:  Input: A = 100, N… Read More
Given a range [L, R]. The task is to find the total number of Hexadecimal alphabets that are required to write every number in the… Read More
Given a binary number as string, find its decimal equivalent. Examples:  Input :  binary = “101”Output :   5 Input :  binary = “1111”Output :… Read More
Given a decimal number as input, the task is to write a Python program to convert the given decimal number into an equivalent binary number.Examples… Read More
Given an integer N, the task is to find the sum of the digits of the number N written in all the bases from 2… Read More
Given a decimal number N, the task is to check if a number has consecutive zeroes or not after converting the number to its K-based… Read More
Given a Hexadecimal number, the task is to convert it into an Octal number.Examples:  Input: Hexadecimal = 1AC Output: Binary = 0654 Explanation: Equivalent binary… Read More
Given an Octal number as input, the task is to convert that number to Binary number. Examples:  Input : Octal = 345Output : Binary =… Read More
In this post, a general method of finding complement with any arbitrary base is discussed. Remember: It is recommended to go through below as follows: One’s… Read More
Given an Octal number N. The task is to write a program to check if the Decimal representation of the given octal number N is… Read More
Given a number as a string and a base, check if the given number is in the given base or not. Examples:  Input : str… Read More