Skip to content

Commit 24cf7ba

Browse files
Merge pull request #1747 from CodingTestStudy2/이진희
[이진희] Day05
2 parents 9ef0f6e + 0d1e028 commit 24cf7ba

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
3+
1. 아이디어 : 조건에 맞는 nums2 배열 만들기
4+
두개의 조건이 주어지지만, 특정 원소를 한번만 써야한다는 보장이 없기때문에, 어떤 배열이던 nums2 만들기 가능
5+
6+
2. 시간복잡도 : O(1)
7+
8+
3. 자료구조/알고리즘 : 아이디어
9+
10+
*/
11+
12+
class Solution {
13+
public boolean uniformArray(int[] nums1) {
14+
15+
// int oddCnt = 0;
16+
// int evenCnt = 0;
17+
// for(int i=0; i<nums1.length; i++) {
18+
// if(nums1[i]%2==0) evenCnt++;
19+
// else oddCnt++;
20+
// }
21+
22+
return true;
23+
}
24+
}

0 commit comments

Comments
 (0)