ㅁ 내 풀이
class Solution {
public int solution(int n, int t) {
for(int i=0; i<t; i++){
n*=2;
}
return n;
}
}
'코딩테스트 > 프로그래머스 Lv.0' 카테고리의 다른 글
[코테/0레벨] 문자열 뒤집기 (0) | 2025.02.07 |
---|---|
[코테/0레벨] 특정 문자 제거하기 (0) | 2025.02.03 |
[코테/0레벨] 편지 (0) | 2025.02.03 |
[코테/0레벨] 최댓값 만들기 (1) (0) | 2025.02.03 |
[코테/0레벨] 배열 뒤집기 (0) | 2025.01.31 |