Skip to content

Commit e2300c6

Browse files
authored
Update README.md
1 parent 4a32c1c commit e2300c6

File tree

1 file changed

+1
-1
lines changed
  • lcof/面试题03. 数组中重复的数字

1 file changed

+1
-1
lines changed

lcof/面试题03. 数组中重复的数字/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Solution {
7575
class Solution {
7676
public:
7777
int findRepeatNumber(vector<int>& nums) {
78-
sort(nums.begin(), nums.end());
78+
sort(nums.begin(), nums.end());//冒泡
7979
for (int i = 0;; ++i) {
8080
if (nums[i] == nums[i + 1]) {
8181
return nums[i];

0 commit comments

Comments
 (0)