Update 剑指offer3数组中重复的数.md

pull/26/head
MoriSummer 2021-05-20 17:19:44 +08:00 committed by GitHub
parent 19b8ca6a04
commit d1dee7d48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ C++ Code:
class Solution {
public:
int findRepeatNumber(vector<int>& nums) {
if(nums.empty()) return 0;
if(nums.empty()) return 0;
int n = nums.size();
for(int i = 0; i < n; ++i){
while(nums[i] != i){