Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ swap
Method
swap
src/class133/ShowDetails.java:49–53 ·
view source on GitHub ↗
(int a, int b)
Source
from the content-addressed store, hash-verified
47
}
48
49
public
static
void
swap(
int
a,
int
b) {
50
double[] tmp = mat[a];
51
mat[a] = mat[b];
52
mat[b] = tmp;
53
}
54
55
public
static
void
print(
int
n) {
56
for
(
int
i = 1; i <= n; i++) {
Callers
1
gauss
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected