Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 유튜브
- 세션
- 이진 변환 반복하기
- 코딩
- 개발자
- 개발
- 셀레니움
- 프로그래머스
- Programmers
- java
- javascript
- 자바스크립트
- 데이터베이스
- 메모장
- MySQL
- jsp
- n^2 배열 자르기
- 파일 저장
- 자바
- 모바일
- 프로그래밍
- Python
- 함수형 인터페이스
- 크롤링
- jdbc
- 형태소 분석기
- js
- android
- 파이썬
- 입출력
Archives
- Today
- Total
목록키패드 누르기 (1)
개인용 복습공간

*과 #을 숫자값으로 두고 누르기 function solution(numbers, hand) { let lHand = '10' , rHand = '12'; return numbers.reduce((acc, el) => { if(el == 0) { el = 11; }; const temp = el % 3; if(temp == 0){ rHand = el; acc += 'R'; }else if(temp == 1){ lHand = el; acc += 'L'; }else{ const r_position = Math.abs(Math.ceil(el / 3) - Math.ceil(rHand / 3)) + (rHand % 3 == temp ? 0 : 1); const l_position = Math.abs(Math.ce..
programmers
2023. 10. 12. 17:05