일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 장고 프로젝트
- Bookmark
- join()
- 개발
- ART_Cinema
- 장고 프로젝트 순서
- JavaScript
- MyPick31
- 장고
- 예술영화추천
- passport.js
- 북마크앱
- Django
- Algorithm
- Django Blog
- 장고 개발 순서
- 독립영화플랫폼
- python
- Blog
- 타사인증
- Node.js
- 자바스크립트
- til
- 파이썬 웹프로그래밍 장고
- Exercism
- 북마크만들기
- 프로젝트
- mongodb
- MYSQL
- 알고리즘
- Today
- Total
목록CodingTest/Exercism (18)
Juni_Dev_log
▶ Collatz Conjecture (Problem) Introduction The Collatz Conjecture or 3x+1 problem can be summarized as follows: Take any positive integer n. If n is even, divide n by 2 to get n / 2. If n is odd, multiply n by 3 and add 1 to get 3n + 1. Repeat the process indefinitely. The conjecture states that no matter which number you start with, you will always reach 1 eventually. Given a number n, return ..
▶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 ..
▶ Leap (Problem) Introduction Given a year, report if it is a leap year. The tricky thing here is that a leap year in the Gregorian calendar occurs: on every year that is evenly divisible by 4 except every year that is evenly divisible by 100 unless the year is also evenly divisible by 400 For example, 1997 is not a leap year, but 1996 is. 1900 is not a leap year, but 2000 is. 윤년을 계산해보는 코드를 작성해보..
▶ 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 ..