leetcode384

package
v0.0.0-...-5261e5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solution

type Solution struct {
	// contains filtered or unexported fields
}

Solution for leetcode 384

func Constructor

func Constructor(nums []int) Solution

Constructor a Solution struct

func (*Solution) Reset

func (s *Solution) Reset() []int

Reset - Resets the array to its original configuration and return it.

func (*Solution) Shuffle

func (s *Solution) Shuffle() []int

Shuffle - Returns a random shuffling of the array.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL