Back to all patterns

Array / Design

1 problems • Practice on LeetCode to earn credits

About This Pattern

Master the Array / Design pattern by practicing these problems organized by difficulty.Focus on the Key Signals - these are the indicators that tell you when to use this pattern.

Medium (1)

Shuffle an Array

Design an algorithm to shuffle an array and reset it to original configuration.

Key Signals:

Random shufflingFisher-YatesReset functionality