Leetcode 3346 | Maximum Frequency of an Element After Performing Operations I | Biweekly Contest 143

  Рет қаралды 751

Road To FAANG

Road To FAANG

Күн бұрын

Пікірлер: 9
@sydneystriker5355
@sydneystriker5355 Ай бұрын
Great and simple solution.
@RoadToFAANG1992
@RoadToFAANG1992 Ай бұрын
Glad you like it!
@CongNguyen-og3iz
@CongNguyen-og3iz Ай бұрын
Thanks for the solution! It's really clever
@RoadToFAANG1992
@RoadToFAANG1992 Ай бұрын
Thank you! I’m glad it was helpful
@DEEPAKDESHMUKH-q2r
@DEEPAKDESHMUKH-q2r Ай бұрын
your explanation is best and easy to understand that i can find , please do it regularly for every contest(only 2nd and 3rd question🙂)
@RoadToFAANG1992
@RoadToFAANG1992 Ай бұрын
Thank you! I’m glad it was helpful and will continue to do as many contests as I can
@MohamedElquesni
@MohamedElquesni Ай бұрын
Nice Explanation , However I am still confused how do you handle such cases [88,53] k = 27 numOperations = 2 , this test case focusses on having 2 numbers not reachable through k directly, however could reach each one another through middle num for example here 66 where 88-22 and 53+13 ,as one could not be reached to other directly by applying +/- 27
@RoadToFAANG1992
@RoadToFAANG1992 Ай бұрын
Yea the logic still works for cases like that. The reason is that we are not testing only those numbers, but also all the numbers in between. We will eventually get to 66 and test what numbers we can change to get to 66.
@MohamedElquesni
@MohamedElquesni Ай бұрын
@@RoadToFAANG1992 Got it ..Thanks !!
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
3346. Maximum Frequency of an Element After Performing Operations I (Leetcode Medium)
24:06
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4,2 МЛН
3347. Maximum Frequency of an Element After Performing Operations II (Leetcode Hard)
10:40
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.