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