To-do Hello Coding 그림으로 개념을 이해하는 알고리즘 읽고 정리(분할 정복, 퀵정렬, 빅오 복습, 해시테이블, 너비 우선 탐색, 다익스트라 알고리즘) OPic 1h 공부 Today was... 여행에서 다녀온 뒤로 약간의 슬럼프. 그렇지만 아주 조금씩이라도 매일매일 하는게 중요하다고 생각한다. 오픽을 2주 정도 준비하고 시험을 치려고 한다. 매일 1h 씩 투자할 생각이다. 기왕 하는거니 AL을 목표로 잡겠다. 정보처리기사도 접수할 생각이다. 멀티캠퍼스 수업에 들어가기 전에 시간이 좀 있을 때에 필기 공부를 해놓는게 수월할 것 같아서이다. 티스토리는 마크다운을 지원하기 시작했는데, 코드블럭 내의 코드가 너무 안 예쁘다... 그래도 기존에 타이포라로 쓸 때처럼 복붙은 안해도 되니까 편해졌다. ..
문제 첫 번째 글자가 자음일 경우 문자의 맨 뒤로 보낸다. 앞글자가 모음이 될 때까지 반복한 뒤에 "ay"를 붙인다. 첫 번째 글자가 모음일 경우 문자 맨 뒤에 "way"를 붙인다. 예시 translatePigLatin("glove") should return "oveglay". 내가 푼 답 function translatePigLatin(str) { if((/[aeiou]/).test(str[0])) { return str + "way"; } if(!(/[aeiou]/).test(str)) { return str + "ay"; } while(!(/[aeiou]/).test(str[0])) { var result = str.substring(1) + str[0]; str = result; } return..
To-do Udemy Java The for Statement For Loop Recap Sum 3 and 5 Chanllenge 코딩연습 13: Sum odd The While and Do While Statement freeCodeCamp 알고리즘 복습 알고리즘 문제 2개 이상 풀기 Today was... loop는 js나 java나 문법이 똑같아서 간단하게 듣고 넘겼다. 오늘 밤에 여행을 떠나기 때문에 다음 TIL은 다음 주가 될 것 같다! Do Next 여행가서 잘 쉬기
문제 첫 번째 패러미터는 객체들을 원소로 하는 배열이다. 두 번째 패러미터는 객체이다. 두 번째 패러미터인 객체의 key와 value를 똑같이 포함하고 있는 있는 객체들만 남겨서 리턴하라. 예시 whatIsInAName([{ "apple": 1, "bat": 2 }, { "bat": 2 }, { "apple": 1, "bat": 2, "cookie": 2 }], { "apple": 1, "bat": 2 }) // should return [{ "apple": 1, "bat": 2 }, { "apple": 1, "bat": 2, "cookie": 2 }]. 내가 푼 답 function whatIsInAName(collection, source) { // What's in a name? var sou..
문제 Compare two arrays and return a new array with any items only found in one of the two given arrays, but not both. 예시 diffArray(["andesite", "grass", "dirt", "pink wool", "dead shrub"], ["diorite", "andesite", "grass", "dirt", "dead shrub"]) // should return ["diorite", "pink wool"]. 내가 푼 답 function diffArray(arr1, arr2) { return [...arr1.filter(n => arr2.indexOf(n) === -1), ...arr2.filter(n =..
문제 We'll pass you an array of two numbers. Return the sum of those two numbers plus the sum of all the numbers between them. The lowest number will not always come first. 예시 sumAll([1, 4]) // should return 10. sumAll([10, 5]) // should return 45. 내가 푼 답 function sumAll(arr) { var sorted = [].concat(arr).sort((a,b) => a-b); var result = 0; for(var i = sorted[0] ; i
Terminal ls 현재 있는 디렉토리에 있는 리스트 pwd 현재 있는 디렉토리 확인 cd 이동 cd Desktop/practice: Desktop의 prctice로 이동 cd .. : 상위 폴더로 이동 cd / : root 디렉토리로 이동 cd ~ : user 디렉토리로 이동 open . 현재 위치한 디렉토리 오픈 mkdir sth 현재 위치한 디렉토리에 sth이라는 폴더 생성 touch index.html 현재 위치한 디렉토리에 index.html 파일 생성 open index.html 현재 위치한 디렉토리의 index.html 파일 오픈 open -a "Sublime Text" index.html 앱 서브라임 텍스트를 열고, 이것으로 index.html 파일 오픈 mv index.html abou..
- Total
- Today
- Yesterday
- til
- 알고리즘
- linkedlist
- oracle
- getter
- Redux
- jQuery
- rxjs
- 인스턴스
- GIT
- 개발 공부
- youtube data api
- 자바
- Prefix Sums
- CSS
- this
- useEffect
- package.json
- 리덕스
- Conflict
- Data Structure
- Java
- SQL
- c언어
- 깃
- JavaScript
- 제네릭스
- 포인터 변수
- Session
- react
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |