꾸준한 개발일기

  • 홈
  • 태그
  • 방명록

자료구조 1

큐 기본 구현

큐 기본구조 큐 삽입 (add) //add at the rear public void enqueue(T newElem) { // TODO Auto-generated method stub LLNode newNode = new LLNode(newElem, null); if (rear == null) //Boundary Case: Empty인 경우 rear.getNextN는 null이므로 아래의 statement를 수행할 필요가 없다 front = newNode; else rear.setNextN(newNode); rear = newNode; size++; } 큐 삭제 (poll) /*poll(remove) at the front*/ @Override public T dequeue() { if (rear ==..

자료구조 2022.07.01
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (69)
    • 개발 (4)
    • 깃 (0)
    • 스터디 (2)
      • 알고리즘 스터디 (2)
    • Today I Learned (7)
    • 알고리즘 (40)
      • 알고리즘 개념 정리 (1)
      • Dynamic Programming (2)
      • Greedy Approach (1)
      • Backtracking (3)
      • 자료구조 (3)
      • 논리적표현의 구현방법 (1)
      • 구현 (6)
      • 정렬 (1)
      • 완전탐색 (7)
      • 그래프 (1)
      • 삼성 SW 역량테스트 (1)
      • 파라매트릭 서치 (2)
    • 자바 (1)
    • 자료구조 (1)
    • WEB (1)
      • Spring (1)

Tag

Union-find, 다익스트라, 자바, 알고리즘, 그래프, 방문노드control, 그래프탐색, 0-1BFS 상태, Dijkstra, 완전탐색, dfs, BFS, 0-1bfs, 최단경로, Disjoint-set,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바