Skip to content

Tag Archives: base-conversion

Given two integers X, Y in base B1 and B2 respectively, the task is to find the sum of integers X and Y and represent… Read More
Given a binary-valued Undirected Graph with V vertices and E edges, the task is to find the maximum decimal equivalent among all the connected components… Read More
Given two numbers A and B, the task is to perform BCD Addition of the given numbers. Examples:  Input: A = 12, B = 20 Output:… Read More
Given a binary valued undirected graph with V vertices and E edges, the task is to find the octal equivalents of all the connected components… Read More
Given a HexaDecimal Number N, the task is to convert the number to its equivalent Binary Coded Decimal.Examples:   Input: 11F Output: 0001 0001 1111 Explanation: Binary of 1… Read More
Given a Binary Number, the task is to convert this Binary number to its equivalent Hexa-Decimal Number.Examples:  Input: 100000101111 Output: 82F Explanation: Dividing the number into chunks of… Read More
Given a BCD (Binary Coded Decimal), the task is to convert this to its equivalent Binary number. Examples:  Input: 1001000 Output: 110000 Explanation: Integer value of the given BCD… Read More
Given a BCD (Binary Coded Decimal) number, the task is to convert the BCD number into its equivalent Decimal number.  Examples:   Input: BCD = 100000101000 Output:… Read More
Given a decimal number N, the task is to convert N to it’s Binary Coded Decimal(BCD) form.Examples:   Input: N = 12 Output: 0001 0000 Explanation: Considering 4-bit concept: 1… Read More
Given two integers N and B, the task is to find the largest N digit numbers of Base B which is a perfect square.Examples:  Input:… Read More
Given two positive integers X and Y, the task is to find the MSB of X, in the given base Y.Examples: Input: X = 55,… Read More
Given a binary number N, and a range represented by L, and R, the task is to convert the given binary number in all the… Read More
Given two integers N and B, the task is to find the count of natural numbers of Base B up to N digits. Examples:   Input:… Read More
Given three colors, such as R, G, and B, convert these RGB color to a hex color code. If the conversion is not possible, print… Read More
Given the integers a, b, N, the task is to find the largest number x such that is an N-digit number of base b. Examples:   Input:… Read More

Start Your Coding Journey Now!