일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 컴퓨터공학
- Hill Climbing
- 코드
- Search Algorithm
- multer-s3
- node.js
- 철학
- 알고리즘
- 문자열처리
- CS
- lightsailor
- computerscience
- typescript
- 컴퓨터과학
- 배포
- Local Search
- Simulated Annealing
- 파이썬
- AWS
- 문자열
- node배포
- Today
- Total
목록전체 글 (59)
지식의모듈화
function solution(clothes) { var answer = 1; let obj={}; for(let i=0; i< clothes.length;i++){ obj[clothes[i][1]]= (obj[clothes[i][1]] ||1 )+1; } for(let key in obj){ answer *= obj[key]; } return answer-1; } let key in obj 로 봐서는 object 의 key값이 in에서 설정되는 대상같다..! 쉬운 문제였으니까 빨리좀 풀자..
let input= require('fs').readFileSync('./input.txt').toString().trim().split('\n');; // console.log(input); let index=Number(input[0]); let adjacentMatrix=[]; for(let i=0; i
''' 22/01/17 Choi Deletes 5 consecutive lines of text that starts with specific string. ''' import os #acquire lowest directroy name #ex) home/sample -> sample fullpath=os.getcwd() ls=fullpath.split(os.path.sep) w1pbtxt=ls[-1]+"_w1.pbtxt" w2pbtxt=ls[-1]+"_w2.pbtxt" print(w1pbtxt) check=0 # used as a sign of indication when deleting 5 consecutive lines iter=3 #first three text starting with "libr..