【leetcode_easy】1470. Shuffle the Array

leetcode_easy_array

problem

1470. Shuffle the Array

solution #1:

code

 

solution #2:

code

 

注意:

1. vector;

first, last
Input iterators to the initial and final positions in a range. The range used is [first,last), which includes all the elements between first and last, including the element pointed by first but not the element pointed by last.
The function template argument InputIterator shall be an input iterator type that points to elements of a type from which value_type objects can be constructed.

 

2. 

参考

1. leetcode_1470. Shuffle the Array;

2. cplusplus_vector;

posted on 2020-10-28 08:08  鹅要长大  阅读(144)  评论(0编辑  收藏  举报

导航