일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 타입스크립트
- 코어 자바스크립트
- programmers
- js
- LeetCode
- 토익 900
- codestates
- 타임어택
- 2주 프로젝트
- 회고
- 토익
- 손에 익히며 배우는 네트워크 첫걸음
- HTTP
- 제로초
- 리액트
- 렛츠기릿 자바스크립트
- 자바스크립트
- 4주 프로젝트
- 정재남
- 프로그래머스
- Async
- javascript
- 타입스크립트 올인원
- SQL 고득점 Kit
- 리덕스
- 파이썬
- 알고리즘
- 코드스테이츠
- 백준
- til
- Today
- Total
목록Problem Solving/Algorithm 문제 풀기 (164)
Jerry
input_data = input().split(' ') a = int(input_data[0]) b = int(input_data[1]) if a > b: print('>') elif a < b: print('
input_data = input().split() print(len(input_data))
input_data = input().split(' ') a = int(input_data[0]) b = int(input_data[1]) print(a / b)
input_data = input().split(' ') a = int(input_data[0]) b = int(input_data[1]) print(a - b)
function solution(M, N) { return M*N-1; }
function solution(num, total) { let start = 0; let test = new Array(num).fill(0).map((e, i) => i).reduce((a, c) => a + c, 0); while (test !== total) { if (test i + start).reduce((a, c) => a + c, 0); } return new Array(num).fill(0).map((e, i) => i + start); }
function solution(common) { let answer = 0; let len = common.length; let diff = common[1] - common[0]; let divide = common[1] / common[0]; if (common[1] - common[0] === common[2] - common[1]) { // 등차수열 return common[len - 1] + diff; } else { // 등비수열 // if (common[1] - common[0] !== common[2] - common[1]) { return common[len - 1] * divide; // return common[len - 1] * divide; } }
function solution(A, B) { let cnt = 0; if (A === B) return 0; let temp = A; for (let x = 0; x < A.length; x++) { if (temp === B) { cnt = x; break; } temp = temp[A.length - 1] + temp.slice(0, A.length - 1); } return !!cnt ? cnt : -1; }