Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c40cec9

Browse files
more debug... who overwrote!
1 parent 4bb9bd4 commit c40cec9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎c/000-099/33-search-in-rotated-sorted-array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ int search(int *nums, int numsSize, int target) {
4949
return -1;
5050
}
5151

52-
void test(int except, const char *nums, int target) {
52+
void test(int expect, const char *nums, int target) {
5353
arrayEntry *e = arrayParse1D(nums, ARRAY_INT);
5454

55-
EXPECT_EQ_INT(except, search(arrayValue(e), arraySize(e), target));
55+
EXPECT_EQ_INT(expect, search(arrayValue(e), arraySize(e), target));
5656

5757
arrayFree(e);
5858
}

‎c/700-799/704-binary-search.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ int search(int *nums, int numsSize, int target) {
2626
return -1;
2727
}
2828

29-
void test(int except, char *nums, int target) {
29+
void test(int expect, char *nums, int target) {
3030
arrayEntry *e = arrayParse1D(nums, ARRAY_INT);
3131

32-
EXPECT_EQ_INT(except, search(arrayValue(e), arraySize(e), target));
32+
EXPECT_EQ_INT(expect, search(arrayValue(e), arraySize(e), target));
3333

3434
arrayFree(e);
3535
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /