Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 34165d1

Browse files
solve: 문자열 뒤집기
1 parent a71f867 commit 34165d1

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

‎Level0/PRO181905.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Solution 1
2+
function solution(my_string, s, e) {
3+
const myCharList = my_string.split('');
4+
const partOfCharList = my_string
5+
.slice(s, e + 1)
6+
.split('')
7+
.reverse();
8+
9+
partOfCharList.forEach((char, index) => (myCharList[s + index] = char));
10+
11+
return myCharList.join('');
12+
}

‎README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,14 @@
326326
| 24.01.08. | `Level 0` | [배열 조각하기](https://school.programmers.co.kr/learn/courses/30/lessons/181893) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181893.js) |
327327
| 24.01.27. | `Level 0` | [수열과 구간 쿼리 3](https://school.programmers.co.kr/learn/courses/30/lessons/181924) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181924.js) |
328328

329-
### 2024년 01월
329+
### 2024년 02월
330330

331331
| 날짜 | 난이도 | 문제 | JS 풀이 |
332332
| :-------: | :-------: | :-----------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
333333
| 24.02.11. | `Level 0` | [조건 문자열](https://school.programmers.co.kr/learn/courses/30/lessons/181934) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181934.js) |
334+
335+
### 2024년 03월
336+
337+
| 날짜 | 난이도 | 문제 | JS 풀이 |
338+
| :-------: | :-------: | :-------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
339+
| 24.03.21. | `Level 0` | [문자열 뒤집기](https://school.programmers.co.kr/learn/courses/30/lessons/181905) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181905.js) |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /