분류 전체보기 50

String primitive, String object, valueOf(), template literal ...

정리 할 링크 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String String The String object is used to represent and manipulate a sequence of characters. developer.mozilla.org https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf Object.prototype.valueOf() valueOf() 메서드는 특정 객체의 원시 값을 반환합니다. developer.mozilla.org https://develope..

[BOJ1208] 부분수열의 합 2

1. 문제 https://www.acmicpc.net/problem/1208 2. Note 2.1. Subset sum problem Subset sum 문제라고 생각하여 O(nS)으로 해결하려 했습니다. 그러나 원소가 음수도 될 수 있다는 걸 간과하여 런타임 에러가 발생하였고, 이를 해결하기 위해 배열의 인덱스를 보정하여 접근하는 방식을 구현했지만 메모리 초과를 받았습니다. 2.2. 분할 정복의 아이디어 한 시간 넘게 해결하지 못하여 해법을 검색해봤는데 DP가 아닌 분할 정복으로 해결할 수 있다는 사실을 알게 되었습니다.

Problem Solving 2020.06.30

[EloquentJS] Ch19. Project: A Pixel Art Editor

Project: A Pixel Art Editor The material from the previous chapters gives you all the elements you need to build a basic web application. In this chapter, we will do just that. Components We will structure the editor interface as a number of components, objects that are responsible for a piece of the DOM and that may contain other components inside them. 에디터 인터페이스는 여러 개의 컴포넌트로 이루어 지는데, 이 컴포넌트는 하..

[EloquentJS] Ch15. Handling Events

Handling Events Some programs work with direct user input, such as mouse and keyboard actions. That kind of input isn’t available as a well-organized data structure—it comes in piece by piece, in real time, and the program is expected to respond to it as it happens. 마우스나 키보드의 액션같은 유저 입력은 실시간으로 조각조각 들어오고 바로 처리되길 기대한다. Event handlers Imagine an interface where the only way to find out whether a ke..