Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ main
Method
main
Java/Leetcode/Leetcode442.java:6–10 ·
view source on GitHub ↗
(String[] args)
Source
from the content-addressed store, hash-verified
4
5
public
class
Leetcode442 {
6
public
static
void
main(String[] args) {
7
int
arr[]={4,3,2,7,8,2,3,1};
8
List<Integer> ans=duplicate(arr);
9
System.out.println(ans);
10
}
11
12
13
static
List<Integer> duplicate(
int
[] arr){
Callers
nothing calls this directly
Calls
1
duplicate
Method · 0.95
Tested by
no test coverage detected