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 | 31 |
Tags
- Data Structure
- Number Theory
- dynamic programming
- sorting
- implement
- array
- simulation
- database
- Method
- Binary Search
- Class
- Math
- Stack
- two pointers
- Binary Tree
- 코테
- hash table
- 자바
- 코딩테스트
- greedy
- Matrix
- bit manipulation
- java
- geometry
- string
- Tree
- 파이썬
- Counting
- SQL
- 구현
Archives
- Today
- Total
코린이의 소소한 공부노트
[프로그래머스/Lv.0] 배열 두배 만들기 본문
1. Input
1) 정수 배열 numbers
2. Output
2) numbers의 각 원소에 두배한 원소를 가진 배열
3. Constraint
1) -10000 <= numbers의 원소 <= 10000
2) 1 <= numbers의 길이 <= 1000
4. Example
Input: numbers={1,2,3,4,5} -> Output: {2,4,6,8,10}
5. Code
1) 첫 코드(2022/10/18)
for(int i=0 ; i<numbers.length ; i++)
numbers[i] *= 2;
return numbers;
'코딩테스트 풀이 > JAVA' 카테고리의 다른 글
[프로그래머스/Lv.0] 중앙값 구하기 (0) | 2022.10.18 |
---|---|
[프로그래머스/Lv.0] 나머지 구하기 (0) | 2022.10.18 |
[프로그래머스/Lv.0] 분수의 덧셈 (0) | 2022.10.18 |
[프로그래머스/Lv.0] 숫자 비교하기 (0) | 2022.10.18 |
[프로그래머스/Lv.0] 두 수의 나눗셈 (0) | 2022.10.18 |