andreyka26_se
Daily 435th day streak Pretty hard problem (to build intuition for). Implementation is quite easy. It is pretty unique, apart from one nice math trick you would learn here. Otherwise no pattern I would not recommend. The math trick will be shown separately…
Interesting thing that I knew about combinations - is that you can precompute them using pascal triangle.
Generally the formula is:
Pascal triangle formula is:
===
It is nice, cause I always keep forgetting combinations formula, and it is very hard for me to recreate it from the simple examples.
Now on the interview I can just state: there is formula, I don't remember but I know Pascal triangle will do the job.
#leetcode #datastructures #math
Generally the formula is:
C(n, k) = n! / (k! · (n − k)!)Pascal triangle formula is:
C(n, k) = C(n−1, k−1) + C(n−1, k)===
It is nice, cause I always keep forgetting combinations formula, and it is very hard for me to recreate it from the simple examples.
Now on the interview I can just state: there is formula, I don't remember but I know Pascal triangle will do the job.
#leetcode #datastructures #math
👍3❤1
Daily 436th day streak
Easy, 1 min codding. Thanks, leetcode, I'll have free Monday😁.
No pattern though.
https://leetcode.com/problems/find-target-indices-after-sorting-array/description/?envType=daily-question&envId=2026-10-19
#daily #easy #nopattern
Easy, 1 min codding. Thanks, leetcode, I'll have free Monday😁.
No pattern though.
https://leetcode.com/problems/find-target-indices-after-sorting-array/description/?envType=daily-question&envId=2026-10-19
#daily #easy #nopattern
❤4
Daily 437th day streak
A bit bullshit problem, no real pattern is here, pretty unique problem.
I would not recommend
https://leetcode.com/problems/sum-of-sortable-integers/description/?envType=daily-question&envId=2026-10-20
#daily #hard #nopattern
A bit bullshit problem, no real pattern is here, pretty unique problem.
I would not recommend
https://leetcode.com/problems/sum-of-sortable-integers/description/?envType=daily-question&envId=2026-10-20
#daily #hard #nopattern
❤4
This media is not supported in your browser
VIEW IN TELEGRAM
I just like them, sorry. Today was really close distance. Tempting to feed, but I didnt have food
❤3
This media is not supported in your browser
VIEW IN TELEGRAM
Omg, legendary. I was 6 when I played it
I cannot even explain feelings I have when watching this “help double agent escape from prison” mission🤤
I cannot even explain feelings I have when watching this “help double agent escape from prison” mission🤤
❤11
andreyka26_se
Revolut is on gcp?) quite interesting choice.
From Snow that is cross cloud: the worst is azure😆 the best is aws, and gcp is something different 😆😆😆
❤4
Daily 438th day streak
Typical bullshit question. Not hard. No pattern, just some greedy rules you need to apply after thinking about bunch of edge cases for.
I do NOT recommend
https://leetcode.com/problems/minimum-operations-to-sort-a-string/description/?envType=daily-question&envId=2026-10-21
#daily #medium #nopattern
Typical bullshit question. Not hard. No pattern, just some greedy rules you need to apply after thinking about bunch of edge cases for.
I do NOT recommend
https://leetcode.com/problems/minimum-operations-to-sort-a-string/description/?envType=daily-question&envId=2026-10-21
#daily #medium #nopattern