Logo
TGCATALOG
Catalog Collections Blog
Kotlin | LeetCode

Kotlin | LeetCode

Задачи LeetCode и решения на Kotlin.

No ratings
110
10.09.2026
110
10.09.2026
No ratings
110
10.09.2026
Safe redirect via bot
О канале

Задачи LeetCode и решения на Kotlin.

Подписчиков 1,706
Тематика Technology
Язык English
Ссылка t.me/easy_kotlin_task

We also recommend

Kekaton AI | Voiceover and voice clone
Kekaton AI | Voiceover and voice clone
Bot

AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.

Description

Решения LeetCode задач на Kotlin. Оптимизированный код для мобильных разработчиков и алгоритмистов.

Latest posts

Kotlin | LeetCode
Kotlin | LeetCode
🔒Открыть пост
и посмотреть медиа
Задача: 1480. Running Sum of 1d Array Сложность: easy Дан массив nums. Мы определяем текущую сумму массива как runningSum[i] = сумма(nums[0]…nums[i]). Верните массив текущих сумм для nums. Пример: Input: nums = [1,2,3,4] Output: [1,3,6,10] Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4]. 👨💻 Алгоритм: 1⃣Инициализация: Определите массив result. Инициализируйте первый элемент массива result первым элементом входного массива nums. 2⃣Вычисление текущих сумм: На индексе i добавьте сумму элемента nums[i] и предыдущей текущей суммы result[i - 1] в массив result. 3⃣Повторение для всех индексов: Повторите шаг 2 для всех индексов от 1 до n-1. 😎 Решение: class Solution { fun runningSum(nums: IntArray): IntArray { val result = IntArray(nums.size) result[0] = nums[0] for (i in 1 until nums.size) { result[i] = result[i - 1] + nums[i] } return result } } Ставь 👍 и забирай 📚 Базу знаний
Kotlin | LeetCode
Subscriber dynamics
+-0.1% last 30 days
Current
1,706
Month ago
1,707
Average growth
+0 / day
Updated
17 hours ago

Reviews for channel Kotlin | LeetCode

Log in to leave a review

Only registered users can share their opinion.

No reviews yet

Be the first to share your impression of this resource!

Similar resources

A channel with firmware, useful files and fresh news about technologies. Perfect for mobile enthusiasts.

Channel

Moon Wallet Signals: Daily Analysis of BTC and CallsAltcoins 🌚.

Channel

A community of experts shares signals, analysis and tips for trading onBinanceandKuCoin.

Channel
Switch to Light Theme
Home Catalog Collections Blog Login