Загрузка...

Max Sum of a Pair With Equal Sum of Digits - Leetcode 2342 - Python | Soumil Speaks

In this video, I have solved Leetcode problem 2342. Max Sum of a Pair With Equal Sum of Digits (Medium). Given an array of positive integers, we need to find the maximum sum of a pair where both numbers have the same digit sum. Watch the full explanation in Tamil to understand the solution!

🔹 Problem Overview:

We are given an array of numbers.
We need to find two numbers with the same sum of digits.
The goal is to return the maximum sum of such a pair.
If no such pair exists, return -1.
📌 Example:
✅ Input: [18,43,36,13,7]
✅ Output: 54

📢 Stay tuned for daily Leetcode solutions in Tamil!
🔥 Subscribe to Soumil Speaks for more coding videos!

#LeetcodeTamil #SoumilSpeaks #Coding #TamilProgramming

Видео Max Sum of a Pair With Equal Sum of Digits - Leetcode 2342 - Python | Soumil Speaks канала Soumil Speaks
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять