Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ swap
Method
swap
java/0347-top-k-frequent-elements.java:86–90 ·
view source on GitHub ↗
(int[] array, int i1, int i2)
Source
from the content-addressed store, hash-verified
84
}
85
86
private
void
swap(
int
[] array,
int
i1,
int
i2) {
87
int
temp = array[i1];
88
array[i1] = array[i2];
89
array[i2] = temp;
90
}
91
}
92
class
Solution3 {
93
/**
Callers
1
partition
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected