Tag Archives: base-conversion

Given two numbers N, M in the bases X, Y and another base P. The task is to find the product of N and M… Read More
N-Base modified Binary Search is an algorithm based on number bases that can be used to find an element in a sorted array arr[]. This… Read More
Given a Romal numeral, the task is to find its corresponding decimal value. Example :  Input: IX Output: 9 IX is a Roman symbol which… Read More
Given a Romal numeral, the task is to find its corresponding decimal value. Example :  Input: IX Output: 9 IX is a Roman symbol which… Read More
Given a Romal numeral, the task is to find its corresponding decimal value. Example :  Input: IX Output: 9 IX is a Roman symbol which… Read More
Given a Romal numeral, the task is to find its corresponding decimal value. Example :  Input: IX Output: 9 IX is a Roman symbol which… Read More
Given a Romal numeral, the task is to find its corresponding decimal value. Example :  Input: IX Output: 9 IX is a Roman symbol which… Read More
Given three positive integers X, Y, and B, where X and Y are Base-B integers, the task is to find the value of X –… Read More
Given two strings S and T, S being lexicographically greater than T, the task is to generate a lexicographically increasing sequence of strings starting from… Read More
Given an integer N, the task is to find base -2 representation of the number N in the form of a string, such that S0… Read More
Given a positive integer N, the task is to count the number of different bases in which, when N is represented, the most significant bit… Read More
Given two positive integers A and B and a string S of size N,  denoting a number in base A, the task is to convert… Read More
Given an array arr[] consisting of N floating-point numbers, the task is to print the decimal representation of the binary array constructed from the absolute… Read More
Given a binary string S, the task is to print all distinct decimal numbers that can be obtained by generating all permutations of the binary… Read More
Given an array arr[] consisting of N integers, the task is to modify the array by replacing each array element with the number obtained by… Read More