Skip to content

Commit

Permalink
Added 06-11-2024 Question
Browse files Browse the repository at this point in the history
Added 06-11-2024 Question
  • Loading branch information
madhurimarawat authored Nov 6, 2024
1 parent 8f1852d commit 9652507
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions 06-11-2024/Question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
### **Base 7 String Representation**

**Difficulty Level:** 🟢 Beginner
**Domain:** Number Systems and Base Conversions

### **Objective:**

Given an integer, return its base 7 **string representation**.

### **Problem Description:**

We need to convert a given integer into its base 7 representation. This can be achieved by repeatedly dividing the integer by 7 and recording the remainders. These remainders, when read in reverse order, will provide the base 7 representation.

### **Input:**

- A single integer `n` (0 ≤ n ≤ 10^6).

### **Output:**

- A string representing the number in base 7.

### **Example:**

#### Input:

```plaintext
100
```

#### Output:

```plaintext
202
```

### **Note:**

- If the input number is 0, the output should be "0".
- This problem can be solved using simple arithmetic operations and loops.

0 comments on commit 9652507

Please sign in to comment.