Complete Weekly Contest 298 | Leetcode 2310 Sum of Numbers With Units Digit K | Live coding 🔥🔥

preview_player
Показать описание
Here is the solution to "Sum of Numbers With Units Digit K" leetcode question. Hope you have a great time going through it.

💯 Leetcode 2312 Selling Pieces of Wood

💯 Leetcode 2311 Longest Binary Subsequence Less Than or Equal to K

💯 Leetcode 2310 Sum of Numbers With Units Digit K

💯 Leetcode 2309 Greatest English Letter in Upper and Lower Case

Check this out 🔽🔽🔽🔽

🔥🔥🔥🔥👇👇👇 For discussion/feedback/humour/doubts/new openings

👉 Solutions

🔥🔥🔥🔥👇👇👇 For discussion/feedback/humour/doubts/new openings

🔴 Checkout the series: 🔥🔥🔥

🔥🔥🔥 Leetcode Monthly Contest Playlist

Рекомендации по теме
Комментарии
Автор

💯 Leetcode 2312 Selling Pieces of Wood

💯 Leetcode 2311 Longest Binary Subsequence Less Than or Equal to K

💯 Leetcode 2310 Sum of Numbers With Units Digit K

💯 Leetcode 2309 Greatest English Letter in Upper and Lower Case

CodeWithSunchitDudeja
Автор

Thank you, for such a clean explanation!

piyushbhudolia
Автор

I got some understanding after viewing second time...
We just care about unit digit , so we are checking greedily from i = 1 to i == 10
what minimum unit digits can we take and (nums - i * k) % 10 that means we got
our smallest i and we are free now to insert any number at tens or hundreds place
like digits to add .
And we want only size to return

prathmeshadsod
Автор

Give this guy a Medal 🥇,
Suggestion : pls use digital pen
Doubt: if num would be greater then 100, still atmost 10 sets will be generated!!

adityarout
Автор

Sanchit, I didn't really understand. It's my bad though because others were able to get it. How could you split it into 9 + 10X ? Can you please let me know

Also, recommendation for connecting digital pen to Mac. Well, you can use it if you can install third party drivers. If you are blocked from installing those, then the pen would just behave as a mouse.

rajeshseptember
Автор

how this T - ( K * i ) = 10 * ( x+y+z+....+..+..k-times) formula came ? please reply

_danishranjan
Автор

Sir ji, ab toh digital pen lelo pls. Ab to muj jaise garib ne bhi leetcode premium le liya.

mayankkumarthakur
Автор

When num is 58 and k is 8 the output is 1 why please explain anybody

DANISHKHAN-exdv
welcome to shbcf.ru