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?
@jigneshrathod4714 жыл бұрын
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.
@mohammadfraz4 жыл бұрын
Yes, sure. Thanks for the suggestions 😊
@devops__guy89092 жыл бұрын
@@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."
@reallifegambits3 жыл бұрын
isn't example in 5:50 invalid? as given length will be always even.
@rahulchaubey52274 жыл бұрын
Perfectly explained. Subscribed to channel.
@koustavsarkar61022 жыл бұрын
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 Жыл бұрын
There can be repetition of elements i.e. same number can be pair with multiple numbers,, you have to keep trac of visited numbers...
@palakgupta37923 жыл бұрын
Thanks for keeping us motivated.
@mohammadfraz3 жыл бұрын
Always :)
@adityagoswami68814 жыл бұрын
at 12:04 what will the equation return if n value is -4 and k=3
@mohammadfraz4 жыл бұрын
watch from kzbin.info/www/bejne/q4evoWSqoLlnhLc
@TechTalesByAmrutPatil2 жыл бұрын
what? it will fail if k=2
@rishabhsinha37134 жыл бұрын
How much time did it took you to come up with this awesome logic?
@mohammadfraz4 жыл бұрын
Okay 😄😄. Next time some similar problem comes even you won't take more than a min 😉
@narendratechguy71403 жыл бұрын
the time required to understand others solutions
@bugresolver42652 жыл бұрын
what will be the idea if i have to found total pairs whose product is divisble by k
@pepetikesavasiddhardha78522 жыл бұрын
wow nice logic
@ankitkumarrouniyar9044 жыл бұрын
Can we do this problem using sliding window as well ?
@mohammadfraz4 жыл бұрын
How ?
@ankitkumarrouniyar9044 жыл бұрын
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
@ankitkumarrouniyar9044 жыл бұрын
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
@ankitkumarrouniyar9044 жыл бұрын
Btw thank you for the explanation! It was great !
@tilakrajrao27534 жыл бұрын
@@ankitkumarrouniyar904 ya bro even i got same problem . only 75 test cases are passed using sliding window .
@Gauravkr00714 жыл бұрын
great man
@rohankumarshah56792 жыл бұрын
perfect !!
@parthavatulkumarpatel9063 жыл бұрын
This s giving out error. please stop putting wrong solutions
@nathann42913 жыл бұрын
finally u made it click for me; whats ur cash app id? :)
@mohammadfraz3 жыл бұрын
Thanks a lot Nathan N. I am glad it helped you ☺️. Please keep watching my videos