Shuffle a Deck of 52 Cards

Asked at CrowdStrike · Coding Questions · Difficulty: Medium

Design an algorithm to shuffle a standard deck of 52 playing cards, assuming all cards are unique. After shuffling, each card should have an equal probability of appearing in any position. Provide implementation details of the algorithm, complexity analysis, and test cases.

Loading the problem…