Skip to content

Commit 2b5631d

Browse files
committed
Fixed sonar
1 parent 22b3598 commit 2b5631d

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/g0101_0200/s0138_copy_list_with_random_pointer

1 file changed

+1
-1
lines changed

src/main/kotlin/g0101_0200/s0138_copy_list_with_random_pointer/Solution.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Solution {
2626
}
2727
cur = head
2828
while (cur != null) {
29-
val copy: Node = hashMap.get(cur)!!
29+
val copy: Node = hashMap[cur]!!
3030
copy.next = hashMap[cur.next]
3131
copy.random = hashMap[cur.random]
3232
cur = cur.next

0 commit comments

Comments
 (0)