Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 코테
- dynamic programming
- Matrix
- Binary Tree
- SQL
- java
- simulation
- Counting
- Number Theory
- Stack
- array
- 자바
- Class
- Binary Search
- Data Structure
- greedy
- hash table
- sorting
- string
- implement
- database
- bit manipulation
- Math
- geometry
- Tree
- Method
- 구현
- two pointers
- 코딩테스트
- 파이썬
Archives
- Today
- Total
목록simulation (62)
코린이의 소소한 공부노트
[LeetCode/Medium] 2221. Find Triangular Sum of an Array
1. Input 1) int 배열 nums 2) nums의 요소는 0부터 9까지의 수 3) (nums[i] + nums[i+1]) % 10의 값을 newNums[i]에 할당 4) newNums의 길이가 1이 될때까지 반복 2. Output 1) 최종 값을 담은 int 변수 3. Constraint 1) 1
코딩테스트 풀이/JAVA
2022. 8. 19. 11:48
[LeetCode/Medium] 2149. Rearrange Array Elements by Sign
1. Input 1) 길이가 짝수인 int 배열 nums 2) nums의 원소들은 양수 또는 음수 2. Output 1) 조건에 맞게 정렬된 int 배열 2) 새 배열을 만들어서 반환해도 상관없음 3) 배열은 양수로 시작해야 함 4) 인접한 원소들은 부호가 반대여야 함 5) 부호가 같은 숫자끼리의 순서는 바뀌면 안 됨 - {1, -1, -3, 2}였다면 정렬 후 {1, -1, 2, -3}이어야 함 - -1이 -3보다 크다고 더 오른쪽에 위치하는 게 아니라, 처음 그대로의 순서를 따라야 한다는 뜻 3. Constraint 1) 2
코딩테스트 풀이/JAVA
2022. 8. 18. 16:40