Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 329 Bytes

File metadata and controls

20 lines (16 loc) · 329 Bytes

Decimal To Any Base

Easy


  1. You are given a decimal number n.
  2. You are given a base b.
  3. You are required to convert the number n into its corresponding value in base b.

Example 1:

Input:  57 2
Output:  111001

Example 2:

Input:  694 8
Output:  1266