본문 바로가기 메뉴 바로가기

긍정탁의 IT 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

긍정탁의 IT 블로그

검색하기 폼
  • 분류 전체보기 (325)
    • IT (258)
      • mac OS (16)
      • JAVA (24)
      • PYTHON (3)
      • Raspberry Pi (3)
      • Android (8)
      • [Framework] Proframe (12)
      • [WAS] JEUS (3)
      • [TP] Tmax (2)
      • 백준알고리즘[JAVA] (16)
      • 프로그래머스 (4)
      • Embedded Software (23)
      • Computer Network (7)
      • ROS programming (3)
      • ORACLE_DB_SQL (20)
      • 데이터베이스 (9)
      • Linux command (33)
      • 자료 구조 (17)
      • 리눅스 마스터 1급 (19)
      • kubernetes (1)
      • Synology (2)
      • etc (32)
    • 파생상품투자자문인력 (18)
    • 일상 (45)
  • 방명록

기본 코드 (1)
[데이터 구조]queue 기본 코드/초간단 이해!

#include #include #define SZ 5 int queue[SZ]; int front = 0; int rear = 0; int isEmpty() { return (rear == front); } int isFull() { return ((rear + 1) % SZ == front); } void enque(int n) { if (isFull() == 1) { return; } queue[rear] = n; rear = (rear + 1) % SZ; return; } int deque() { if (isEmpty() == 1) { return -999; } int temp = queue[front]; front = (front + 1) % SZ; return temp; } int main(v..

IT/자료 구조 2020. 4. 11. 12:36
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Proxy
  • 속초
  • 자료구조
  • Linux
  • 청라점심
  • 파생상품투자자문인력
  • Java
  • 속초여행
  • Algorithm
  • dll
  • 부모경로제외
  • queue
  • 코로나
  • 리눅스마스터2차
  • httpd.conf
  • 을왕리
  • 알고리즘
  • wsl파일접근
  • SLL
  • 리눅스마스터1급
  • 리눅스
  • 코로나19
  • 홈치
  • 루메나h3
  • 리눅스마스터
  • sqlplus
  • 응용문제
  • stack
  • 소스코드
  • 데이터구조
more
«   2025/05   »
일 월 화 수 목 금 토
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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바