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 56beee5

Browse files
committed
biweekly-51
Signed-off-by: ashKIK <ashutheprogrammer@gmail.com>
1 parent 9fc05a0 commit 56beee5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎biweekly-51/ClosestRoom.java‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
public class ClosestRoom {
88

9-
// We sort queries by the decreasing of its minSize order.
10-
// We sort rooms by the decreasing of its size order.
11-
// We initialize roomIdsSoFar TreeSet,
12-
// this includes all room ids which have size >=minSize of current query so far.
9+
// sort queries by the decreasing of its minSize order.
10+
// sort rooms by the decreasing of its size order.
11+
// roomIdsSoFar treeSet includes all room ids which have size >=minSize of current query so far.
1312
// For each query:
1413
// - Add all room ids which have size >=minSize of current query.
1514
// - Query floor and ceiling of q[0] (preferredId) from roomIdsSoFar

0 commit comments

Comments
(0)

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