MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / reset

Method reset

Array/ShuffleAnArray.py:47–52  ·  view source on GitHub ↗

Resets the array to its original configuration and return it. :rtype: List[int]

(self)

Source from the content-addressed store, hash-verified

45 self.nums = nums
46
47 def reset(self):
48 """
49 Resets the array to its original configuration and return it.
50 :rtype: List[int]
51 """
52 return self.nums
53
54 def shuffle(self):
55 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected