Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Manvityagi/PW-Skills-Java-Course-Codes
/ swap
Method
swap
Lecture 42 Quick Sort/src/Main.java:7–11 ·
view source on GitHub ↗
(int[] arr, int x, int y)
Source
from the content-addressed store, hash-verified
5
}
6
}
7
static
void
swap(
int
[] arr,
int
x,
int
y){
8
int
temp = arr[x];
9
arr[x] = arr[y];
10
arr[y] = temp;
11
}
12
static
int
partition(
int
[] arr,
int
st,
int
end){
13
int
pivot = arr[st];
14
int
cnt = 0;
Callers
1
partition
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected