← Flipkart questions

Arrange Deck of Cards for Equal Probability

Filed under Flipkart

Design an algorithm to shuffle or arrange a deck of cards such that any possible permutation (sequence) has an equal probability of appearance (i.e., a uniform random permutation).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.