Skip to content

Commit af33ba1

Browse files
Update searching.md
1 parent 2008737 commit af33ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎searching.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ for (int i = 0; i < (1<<n); ++i)
2626
{
2727
if (x&1) take(pos);
2828
pos++;
29-
x <<= 1;
29+
x >>= 1;
3030
}
3131
// process permutation
3232
}

0 commit comments

Comments
(0)