# Tag Archives: base-conversion

## Largest N digit number in Base B

Given a positive interger N and base B, the task is to find the largest N-digit numbers of Base B in decimal form.Examples:   Input: N… Read More »

## BCD or Binary Coded Decimal

Binary Coded Decimal, or BCD, is another process for converting decimal numbers into their binary equivalents. It is a form of binary encoding where each… Read More »

## Digitally balanced numbers

Given two integers N and B, the task is to check N is a Digitally balanced number in base B. Digitally balanced numbers in the… Read More »

## Hexadecimal equivalents in Binary Valued Graph

Given a binary valued undirected graph with V vertices and E edges, the task is to find the hexadecimal equivalents of all the connected components… Read More »

## C program to count zeros and ones in binary representation of a number

Given a number N, the task is to write C program to count the number of 0s and 1s in the binary representation of N.… Read More »

## Add two integers of different base and represent sum in smaller base of the two

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 »

## Maximum decimal equivalent possible among all connected components of a Binary Valued Graph

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… Read More »

## BCD addition of given Decimal numbers

Given two numnbers A and B, the task is to perform BCD Addition of the given numbers. Examples: Input: A = 12, B = 20… Read More »

## Octal equivalents of connected components in Binary valued graph

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 »

## Program to convert Hexa-Decimal Number to its equivalent BCD

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… Read More »

## Program to convert a BCD to Hexa-Decimal Number

Given a BCD (Binary Coded Decimal) Number, the task is to convert this Binary Coded Decimal number to its equivalent Hexa-Decimal Number. Examples: Input: 100000101111… Read More »

## Convert the given BCD to its equivalent Binary form

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… Read More »

## Program to Convert BCD number into Decimal number

Given a BCD (Binary Coded Decimal) number, the task is to convert the BCD number into it’s equivalent Decimal number. Examples: Input: BCD = 100000101000… Read More »

## Convert a given Decimal number to its BCD representation

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… Read More »

## Find the Largest N digit perfect square number in Base B

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:… Read More »