저장소

  • 홈
  • 태그
  • 방명록

Study/Data Structure 3

[Data Structure] HashTable C++로 만들기

// Hash.cpp : This file contains the 'main' function. Program execution begins and ends there.//#include #include #define HASH_TABLE_COUNT 11class HashTable{ public: struct stData { int ID; int value; stData* next; stData() { ID = 0; value = 0; next = NULL; } }; stData* hashList[HASH_TABLE_COUNT]; int Ge..

Study/Data Structure 2024.10.10

[Data Structure] Tree C++로 만들기

#include #include #include #include #include using namespace std;struct Node{ int value; int depth; Node* child[2]; // 0 - left, 1 - right int sibiling; // 같은 depth에서 좌측부터 부여된 index Node() { depth = 0; value = 0; sibiling = 0; child[0] = child[1] = NULL; }};Node* root = NULL;bool valueComp(Node* i, Node* j){ return i->value value;}bool DepthComp(Node* i, Node* j){ re..

Study/Data Structure 2024.10.10

[Data Structure] List C++로 만들기

#include #include #include using namespace std;struct Node{ int value; Node* prev; Node* next; void Init() { value = 0; prev = NULL; next = NULL; }};Node* list1 = NULL;Node* list1End = NULL;void pushFrontToList(Node* addNode){ printf("push Front : %d\n", addNode->value); if (list1 != NULL) { list1->prev = addNode; addNode->next = list..

Study/Data Structure 2024.10.10
이전
1
다음
더보기
프로필사진

저장소

  • 분류 전체보기 (23)
    • Unity (12)
    • Unreal Engine (1)
      • 이득우의 언리얼 프로그래밍 Part3 (0)
      • 이득우의 언리얼 프로그래밍 Part4 (0)
      • Unreal Engine (0)
    • Study (3)
      • Data Structure (3)
      • Network (2)
      • Graphics (2)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바