Skip to content

Convert Decimal Numbers to Binary Numbers

We use the modulo and division method, and we calculate the binary representation of a decimal number. Let’s represent the binary by considering the remainder column from bottom to top.

Gopi Gorantala
Gopi Gorantala
6 min read

Related Posts

Members Public

Leetcode 238: Product Of Array Except Self

Members Public

Leetcode 217: Contains Duplicate

This lesson will teach you how to find the duplicate element using a hashing algorithm.

Members Public

Leetcode 121: Best Time To Buy and Sell Stock

Leetcode 121: Best Time To Buy and Sell Stock