Skip to content

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 = 345 Output : Binary =… Read More
One’s Complement of an Integer 1’s and 2’s complement of a Binary Number In this post, a general method of finding complement with any arbitrary… 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 string and a base, check if given number is in given base or not.Examples:   Input : str = "1010", base =… Read More

Start Your Coding Journey Now!