We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df5c6a1 commit 28be2e7Copy full SHA for 28be2e7
scripts/algorithms/C/Closest Room/Closest Room.java
@@ -1,3 +1,4 @@
1
+// Runtime: 164 ms (Top 39.53%) | Memory: 127.2 MB (Top 83.72%)
2
class Solution {
3
public int[] closestRoom(int[][] rooms, int[][] queries) {
4
int n = rooms.length, k = queries.length;
@@ -29,4 +30,4 @@ int searchClosetRoomId(TreeSet<Integer> treeSet, int preferredId) {
29
30
}
31
return ans;
32
-}
33
+}
0 commit comments