Shuffle a given array | GeeksforGeeks

preview_player
Показать описание

This video is contributed by Aditi Bainss

Please Like, Comment and Share the Video among your friends.

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

rand() with O(1) ? Do the lib. provided rand() have O(1)? If not, I think it's good idea to take Date and create random number. Any better idea?

rajeshdansena
Автор

Can anyone please explain why the value of i cannot be equal to zero in the for-loop condition check?

pjac
Автор

it's hard for beginners to understand this method ):

rowdy
Автор

this can shuffle itself. need to check if i not equal to zero. to be more readable, instead of using i and j, use more meaningful name.

spicytuna
Автор

Bhai Collections.shuffle method se ek Random Number aa gaya ab is random number ko next Random number se Multiply kaise kare aur Jo result aayega usko next random number se Multiply kaise kare plzz bhai bata do yrr koi fas gaya main 😭😭

deepakkumaar
Автор

Who the heck disliked this video? It's really concise and good.

fatalvampire