-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
以下のコードでも動作するようですが、Tildaとcustom comparatorを利用する理由は何かあるのでしょうか?
Collections.binarySearch(T, A[i]);
B[i] = ~Collections.binarySearch(T, A[i], (x, y) -> x.compareTo(y) >= 0 ? 1 : -1); |
Ref:
https://atcoder.jp/contests/tessoku-book/submissions/37611040
Metadata
Metadata
Assignees
Labels
No labels