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
- Method
- Tree
- greedy
- 코테
- Matrix
- Stack
- geometry
- hash table
- Counting
- SQL
- implement
- string
- bit manipulation
- java
- 코딩테스트
- Number Theory
- 자바
- Data Structure
- sorting
- array
- Class
- Binary Tree
- 구현
- simulation
- Math
- database
- Binary Search
- 파이썬
- dynamic programming
- two pointers
Archives
- Today
- Total
코린이의 소소한 공부노트
[프로그래머스/Lv.0] 문자열 뒤집기 본문
1. Input
1) 문자열 my_string
2. Output
1) my_string을 뒤집은 문자열
3. Constraint
1) 1 <= my_string의 길이 <= 1000
4. Example
Input: my_string=“bread” -> Output: “daerb”
5. Code
1) 첫 코드(2022/10/18)
String answer = "";
for(int i=my_string.length()-1 ; i>=0 ; i--)
answer += my_string.charAt(i) + "";
return answer;
'코딩테스트 풀이 > JAVA' 카테고리의 다른 글
[프로그래머스/Lv.0] 짝수 홀수 개수 (0) | 2022.10.21 |
---|---|
[프로그래머스/Lv.0] 직각삼각형 출력하기 (0) | 2022.10.21 |
[프로그래머스/Lv.0] 배열 뒤집기 (0) | 2022.10.20 |
[프로그래머스/Lv.0] 나이 출력 (0) | 2022.10.20 |
[프로그래머스/Lv.0] 아이스 아메리카노 (0) | 2022.10.20 |