- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Sum of Digits in Base K | LeetCode 1837 | Easy C++ Solution 🚀
Solve the Sum of Digits in Base K problem from LeetCode using a simple beginner-friendly math approach.
💡 Approach:
Convert the number into base k using modulo and division.
Add all digits obtained during conversion.
⚡ Time Complexity: O(logₖ n)
⚡ Space Complexity: O(1)
🔗 GitHub: https://github.com/HARSHILL2023
🔗 LeetCode Profile: https://leetcode.com/u/trFRJmWPQm/
🔗 LinkedIn: https://www.linkedin.com/in/harshil-patel-b00063395/
#leetcode #sumofdigitsinbasek #dsa #cpp #codingforbeginners #math #leetcodeeasy 🚀
Видео Sum of Digits in Base K | LeetCode 1837 | Easy C++ Solution 🚀 канала Harshil Patel
💡 Approach:
Convert the number into base k using modulo and division.
Add all digits obtained during conversion.
⚡ Time Complexity: O(logₖ n)
⚡ Space Complexity: O(1)
🔗 GitHub: https://github.com/HARSHILL2023
🔗 LeetCode Profile: https://leetcode.com/u/trFRJmWPQm/
🔗 LinkedIn: https://www.linkedin.com/in/harshil-patel-b00063395/
#leetcode #sumofdigitsinbasek #dsa #cpp #codingforbeginners #math #leetcodeeasy 🚀
Видео Sum of Digits in Base K | LeetCode 1837 | Easy C++ Solution 🚀 канала Harshil Patel
Комментарии отсутствуют
Информация о видео
Вчера, 14:13:13
00:00:57
Другие видео канала





















