No video

Leetcode 1497. Check If Array Pairs Are Divisible by k

  Рет қаралды 15,450

Fraz

Fraz

Күн бұрын

leetcode.com/p...

Пікірлер: 32
@alexandreabarbosa
@alexandreabarbosa 5 ай бұрын
You rock. Because you were the only one that managed to understand and explain how to take advantage of modulos and a complement for a common pairs that are divisible by the divisor! Thank you! Would you mind how did you manage to realize or find out the solution or if you took advantage of Math operations with logic?
@jigneshrathod471
@jigneshrathod471 4 жыл бұрын
Great explanation but what will also help is how you can talk about how you arrive at such solution/thought process if you are seeing it for the first time.
@mohammadfraz
@mohammadfraz 4 жыл бұрын
Yes, sure. Thanks for the suggestions 😊
@devops__guy8909
@devops__guy8909 2 жыл бұрын
@@mohammadfraz If possible paste a link or reply here itself on "how you can talk about how you arrive at such solution/thought process if you are seeing it for the first time."
@reallifegambits
@reallifegambits 3 жыл бұрын
isn't example in 5:50 invalid? as given length will be always even.
@rahulchaubey5227
@rahulchaubey5227 4 жыл бұрын
Perfectly explained. Subscribed to channel.
@koustavsarkar6102
@koustavsarkar6102 2 жыл бұрын
Why the brute force method is not working for the problem. bool canArrange(vector& arr, int k) { int c=0; for(int i=0;i
@souravbera1465
@souravbera1465 Жыл бұрын
There can be repetition of elements i.e. same number can be pair with multiple numbers,, you have to keep trac of visited numbers...
@palakgupta3792
@palakgupta3792 3 жыл бұрын
Thanks for keeping us motivated.
@mohammadfraz
@mohammadfraz 3 жыл бұрын
Always :)
@adityagoswami6881
@adityagoswami6881 4 жыл бұрын
at 12:04 what will the equation return if n value is -4 and k=3
@mohammadfraz
@mohammadfraz 4 жыл бұрын
watch from kzbin.info/www/bejne/q4evoWSqoLlnhLc
@TechTalesByAmrutPatil
@TechTalesByAmrutPatil 2 жыл бұрын
what? it will fail if k=2
@rishabhsinha3713
@rishabhsinha3713 4 жыл бұрын
How much time did it took you to come up with this awesome logic?
@mohammadfraz
@mohammadfraz 4 жыл бұрын
Okay 😄😄. Next time some similar problem comes even you won't take more than a min 😉
@narendratechguy7140
@narendratechguy7140 3 жыл бұрын
the time required to understand others solutions
@bugresolver4265
@bugresolver4265 2 жыл бұрын
what will be the idea if i have to found total pairs whose product is divisble by k
@pepetikesavasiddhardha7852
@pepetikesavasiddhardha7852 2 жыл бұрын
wow nice logic
@ankitkumarrouniyar904
@ankitkumarrouniyar904 4 жыл бұрын
Can we do this problem using sliding window as well ?
@mohammadfraz
@mohammadfraz 4 жыл бұрын
How ?
@ankitkumarrouniyar904
@ankitkumarrouniyar904 4 жыл бұрын
No I'm asking is there any way ! Coz i did using sliding window only 75 test cases passed so ! I thought i might be missing something
@ankitkumarrouniyar904
@ankitkumarrouniyar904 4 жыл бұрын
No I'm asking is there any way ! Coz i did using sliding window only 75 test cases passed so ! I thought i might be missing something
@ankitkumarrouniyar904
@ankitkumarrouniyar904 4 жыл бұрын
Btw thank you for the explanation! It was great !
@tilakrajrao2753
@tilakrajrao2753 4 жыл бұрын
@@ankitkumarrouniyar904 ya bro even i got same problem . only 75 test cases are passed using sliding window .
@Gauravkr0071
@Gauravkr0071 4 жыл бұрын
great man
@rohankumarshah5679
@rohankumarshah5679 2 жыл бұрын
perfect !!
@parthavatulkumarpatel906
@parthavatulkumarpatel906 3 жыл бұрын
This s giving out error. please stop putting wrong solutions
@nathann4291
@nathann4291 3 жыл бұрын
finally u made it click for me; whats ur cash app id? :)
@mohammadfraz
@mohammadfraz 3 жыл бұрын
Thanks a lot Nathan N. I am glad it helped you ☺️. Please keep watching my videos
Leetcode 217. Contains Duplicate
14:32
Fraz
Рет қаралды 10 М.
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН
王子原来是假正经#艾莎
00:39
在逃的公主
Рет қаралды 25 МЛН
Night LIVE with Vijendra #57 Day|| IIT JAM 2025|| JEE 2025 #study #jee
Aapka Vijendra [IIT KGP]
Рет қаралды 209
Count pairs in array divisible by K | GeeksforGeeks Problem of The Day
11:08
Leetcode 1499. Max Value of Equation
11:23
Fraz
Рет қаралды 12 М.
Leetcode 1641. Count Sorted Vowel Strings
10:07
Fraz
Рет қаралды 17 М.
A Day At Google Office (For Food Lovers) | Google Hyderabad Visit
7:05
lifestylewithpalak
Рет қаралды 96 М.
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 90 МЛН