일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- mongodb
- Blog
- Django Blog
- MYSQL
- Bookmark
- 장고 개발 순서
- 프로젝트
- 알고리즘
- 북마크앱
- JavaScript
- 타사인증
- 자바스크립트
- 북마크만들기
- passport.js
- 개발
- ART_Cinema
- Django
- 파이썬 웹프로그래밍 장고
- 장고 프로젝트 순서
- 장고
- 독립영화플랫폼
- python
- MyPick31
- Exercism
- join()
- 장고 프로젝트
- Node.js
- Algorithm
- 예술영화추천
- til
- Today
- Total
목록split() (2)
Juni_Dev_log

▶Reverse String (Problem) Introduction Reverse a string For example: input: "cool" output: "looc" - 주어진 문자열을 거꾸로 출력하도록 해보자. (Tip) - split() 으로 주어진 문자열을 쪼개서 배열로 만든다. - 배열에서 요소들을 거꾸로 만들 수 있는 reverse()를 이용한다. - 거꾸로 만든 배열을 다시 붙인다. join() 을 이용한다. (Solution) 1 2 3 4 5 export const reverseString = (string) => { var reverse_string = string.split('').reverse().join(''); return reverse_string; }; Colored ..

▶ Matrix (Problem) Introduction Given a string representing a matrix of numbers, return the rows and columns of that matrix. So given a string with embedded newlines like: 9 8 7 5 3 2 6 6 7 representing this matrix: 1 2 3 |--------- 1 | 9 8 7 2 | 5 3 2 3 | 6 6 7 your code should be able to spit out: A list of the rows, reading each row left-to-right while moving top-to-bottom across the rows, A ..