From 9652507ac93b81c3b47db4cc872f68ca725ac32a Mon Sep 17 00:00:00 2001 From: Madhurima Rawat <105432776+madhurimarawat@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:39:56 +0530 Subject: [PATCH] Added 06-11-2024 Question Added 06-11-2024 Question --- 06-11-2024/Question.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 06-11-2024/Question.md diff --git a/06-11-2024/Question.md b/06-11-2024/Question.md new file mode 100644 index 0000000..3b54988 --- /dev/null +++ b/06-11-2024/Question.md @@ -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.