You have three stacks of cylinders where each cylinder has the same diameter, but they may vary in height. You can change the height of a stack by removing and discarding its topmost cylinder any number of times. Find the maximum possible height of the stacks such that all of the stacks are exactly the same height. This means you must remove zero or more cylinders from the top of zero or more of..
Stack이란? 스택(stack)은 제한적으로 접근할 수 있는 나열 구조 그 접근 방법은 언제나 목록의 끝에서만 일어난다. 끝먼저내기 목록(Pushdown list)이라고도 한다. 스택은 한 쪽 끝에서만 자료를 넣거나 뺄 수 있는 선형 구조(LIFO - Last In First Out)으로 되어 있다. 꺼내지는 자료는 가장 최근에 보관한 자료부터 나오게 된다. (출처 : Wikipedia - 스택) Push : 스택에 데이터 추가 Pop : 스택에서 데이터 빼기 Top : 스택의 최상단을 의미. 이걸 넘어가면 Stack overflow 발생 스택에 더 이상 뺄 것이 없을 때 pop을 하면 Stack underflow 발생 스택의 구현방법 배열(배열을 이용할 경우 메모리 낭비가 발생할 수 있음) 스택을 선..
- Total
- Today
- Yesterday
- 운영체제
- javascript
- Array
- 타입스크립트
- 컴퓨터공학
- 구간합
- js
- Props
- greedyAlgorithm
- sort
- 웹팩
- Webpack
- 리액트
- 배치처리시스템
- 배열
- React
- 시분할시스템
- 1day1algorithm
- reduce()
- 알고리즘
- redux-saga
- 우아한테크러닝
- OS
- 프로그래머스
- 자료구조
- sort()
- 자바스크립트
- 멀티프로그래밍
- Algorithm
- Typescript
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |