Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is written as II in Roman numeral, just two one's added together. 12 is written as XII, which is simply X + II. The number 27 is written as XXVII, which is XX + V + II. Roman numerals are usually written largest to smallest from left to right. Howeve..
Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward. For example, 121 is a palindrome while 123 is not. 현재 숫자를 거꾸로 해서 현재 숫자와 값이 같으면 true를 반환, 다르면 false를 반환하는 예제이다 var isPalindrome = function(x) { const stringX = String(x).split("").reverse().join(""); if (x === parseInt(stringX)) { return true; } return false; }; 먼저 x를..
Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You must write an algorithm with O(log n) runtime complexity. 아래 문제가 내가 푼 답이다 (시간복잡도를 고려하지 않고 푼 문제..하지만 문제를 보면 O(log n)으로 풀라고 작성되어있다.) var searchInsert = function(nums, target) { const numsArray = [...nums]; if (numsArray...
Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. The relative order of the elements may be changed. Since it is impossible to change the length of the array in some languages, you must instead have the result be placed in the first part of the array nums. More formally, if there are k elements after removing the duplicates, then the first k elements..
일단 노드 환경이라는 전제하에 test debugger하는 방법을 작성한다 jest test 패키지를 설치했다면 node_modules라는 폴더에도 생성되었을 것이다 local install이기 때문에 .bin 파일에 생성되었다 node_modules/.bin/jest 브라우저 chrome://inspect 로 들어간 뒤 Open dedicated DevTools for Node 누름. 누르면 인스펙터 가 나온다 vscode(내가 쓰는 코드 에디터..)에서 debugger을 원하는 위치에 넣는다 node --inspect node_modules/.bin/jest --watch --runInBand 하면 jest test debugger이 크롬에서 확인이 가능하다! 물론 디버거 안하면서 test돌리면 좋겠..
dependencies는 의존성이다 해당 프로젝트를 개발할 때 필요한 의존성을 devDependencies에 정의하고 그렇지 않은 의존성은 dependencies에 정의한다 dependencies는 아무 옵션을 주지 않으면 리스트에 추가가 된다 dependencies : 어플리케이션 운용에 필요하다, 실제 상품에서 사용할 패키지(런타임에도 계속 쓰이는 것) devDependencies : 로컬 개발 및 테스트에만 필요한 개발용 패키지(어떤 Library가 프로젝트의 컴파일(빌드) 타임에 필요시)
- removeEventListener
- 객체의 참조값
- MDN 참조
- 무조건 비공개..
- 지뢰찾기 게임도 못하는데
- var과 let의 차이
- .map
- 복수는 한번에 안댐
- 중복숫자찾기
- 생성자함수에서의 this
- 한번에 받는건 id로 받기
- 이 쉬운걸 4시간동안....
- tcpschool
- .fill
- if문 중첩없애기
- debugger라도 해서 다풀어버리자
- while문활용
- 프로토타입 체인
- 모던자바스크립트
- 화살표함수에서 this의 바인딩
- 배열단순값 객체엔 속성값
- react 공식문서
- 메서드오버라이드
- 1일차
- 문자열실수변경
- 무조곤 비공개
- 콜백함수에서의 this
- 게임은 더못만든다
- 틀리면 말씀해주세요
- 고차함수
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |