Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- screencapture
- Packet Network
- css framework
- react
- Git
- nodejs
- express
- Google Refund
- OverTheWire
- Digital Ocean
- springboot
- Camera Movement
- docker
- critical rendering path
- rpg server
- Spring Boot
- SDK upgrade
- draganddrop
- mongoDB
- --watch
- MySQL
- java
- unity
- spread 연산자
- linux
- Camera Zoom
- Unity Editor
- Unity IAP
- server
- Google Developer API
Archives
- Today
- Total
목록2025/03/19 (1)
우당탕탕 개발일지
[프로그래머스] Level 4. 도둑질
https://school.programmers.co.kr/learn/courses/30/lessons/42897 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 이전에 레벨3에서 똑같은?문제를 풀었던것같아서 쉽게풀었다. 그래도 첫 Level 4다 ㅎㅎ F(N) 을 생각해보면, n번째를 선택하는경우와 선택하지 않는경우 2가지가있다.만약 선택한다면, n-1번째는 선택되지 않아야한다. n-1이 선택되지않으면서 최대값을 유지하는것은 F(n-2) 이므로,n번째를 선택하는 경우 => F(n-2) + money[n] n번째를 선택하지 않을 경우는 F(n-1) 과 동일할것이다. 따라서 F(n) = max (F(n-1..
Algorithm(c++)/Level 4
2025. 3. 19. 10:09