【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;

做自己该做的事情,做自己喜欢做的事情,安静做一枚有思想的技术媛。
版权声明,转载请注明出处:https://www.cnblogs.com/happyamyhope/
原文地址:https://www.cnblogs.com/happyamyhope/p/13321689.html