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
- 알고리즘
- jpa
- 스프링 핵심 원리
- JDBC
- Android
- db
- 스프링 핵심 기능
- 그리디
- Greedy
- Servlet
- 백준
- 스프링
- Thymeleaf
- springdatajpa
- kotlin
- Exception
- 김영한
- http
- 인프런
- pointcut
- Proxy
- 자바
- AOP
- spring
- JPQL
- java
- SpringBoot
- QueryDSL
- transaction
- Spring Boot
Archives
- Today
- Total
목록스택 (1)
개발자되기 프로젝트
Stack 구현
1. Stack 특징 Last In Last Out 가장 최근의 자료를 찾아오거난 게임에서 히스토리 유지하면서 무를 때 ㅋㅋㅋ 함수의 메모리는 호출 순서에 따른! Stack 구조 jdk : Stack 2. Stack 구현 이미 Array를 구현했으니, 구현한 Array를 활용하자. top은 size를 의미하며 마지막 index + 1 과 같다. pop : top에 있는 data를 꺼내고 array에서 삭제 peek : top에 있는 data 조회. public class MyArrayStack { MyArray arrayStack; int top; public MyArrayStack() { top = 0; arrayStack = new MyArray(); } public MyArrayStack(int s..
Java/자료구조
2021. 10. 24. 19:33