Skip to content

About

This will be my repo for course 2110211 Introduction to Data Structure AY2026 S1 (So cooked as 3CP TwT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

2110211 Introduction to Data Structure

Coursework, lecture code-alongs, and grader problem solutions for 2110211 Introduction to Data Structure (Intania 108, Chulalongkorn University).

Everything here is written in C++, built with clang, and organized to mirror the course's teaching order: C++ fundamentals → pair/vector → set/map → stack/queue/priority_queue → competitive-programming (CP) style pair/vector patterns.


Repository Structure

.
├── CP211 Data Structure Lectures/     # In-class code-alongs, organized by lecture
│   ├── Lecture 02 Vector Set Pair (Word Count Example)
│   ├── Lecture 03 Pair Vector
│   ├── Lecture 04 Set Map
│   ├── Lecture 05 Stack
│   ├── Lecture 06 Queue
│   ├── Lecture 07 Priority Queue
│   ├── Lecture 08 CP Pair
│   └── Lecture 09 CP Vector
│
├── CP211 Grader Problems/             # Solved grader (online judge) problems, by topic
│   ├── Part 00 C++ Intro
│   ├── Part 00 COMP PROG Problems
│   ├── Part 01 STD Pair & Vector
│   ├── Part 02_01 STD Set & Map
│   ├── Part 02_SP STD Set & Map & Vector
│   ├── Part 03 STD Stack Queue PriorityQueue
│   ├── Part 04 CP Pair
│   ├── Quiz 0 Preparation
│   └── Quiz 1 Preparation
│
├── CP211 Quiz 0-4 2569/               # Past quiz problems, academic year 2569
├── CP211 Midterm Preparation/         # Midterm review material
└── .vscode/                           # clang build/debug config

Each problem/lecture folder generally contains:

  • one .cpp source file (named after the grader code, e.g. d62_q1a_vote.cpp)
  • an output/ folder with the compiled binary and its .dSYM debug symbols (macOS), generated by the VS Code C++ debugger — safe to ignore/regenerate, not meant to be hand-edited.

Building & Running

This workspace is set up for VS Code + the C/C++ extension on macOS (see .vscode/tasks.json). To build any single file manually:

clang -g "path/to/file.cpp" -o "path/to/file"
./path/to/file

Or just open a .cpp file in VS Code and hit Run/Debug — the default build task (C/C++: clang build active file) handles it.


Grader Problem List

The full master checklist (difficulty, status, notes) is tracked here:

📋 tinyurl.com/datastructureproblemlist

The table below reflects what's actually solved in this repo, organized the same way as the folders above. Difficulty follows the grader's own scale (0.5 = easiest → 4.5 = hardest).

Part 00 — C++ Intro

Difficulty Problem Grader Code
0.5 CPP Basics 01 — C++ Basics —
0.5 CPP Basics 02 — Vector, Set, Pair, Func & Iterator —
0.5 CPP Basics 03 — Vector Iterator —
0.5 CPP Basics 04 — Map, Sort, Lower/Upper Bound, Max/Min —
0.5 CPP Basics 05 — Stack —
0.5 CPP Basics 06 — Queue —
0.5 CPP Basics 07 — Priority Queue & Operator Overloading —
0.5 CPP Basics 08 — Unique Numbers —
0.5 Min Max Ex00E2
0.5 Time After Ex00E1
1.0 Check Mapping Ex00E3
1.0 Quick Sum a59_q1
1.0 Rope a60b mid p2

Plus Part 00 COMP PROG Problems — CP101 review problems (Nested List, past exam papers) used as a refresher before the STL-heavy material starts.

Part 01 — STD Pair & Vector

Difficulty Problem Grader Code
0.5 Remove Even d57_q0
0.5 Reverse Vector I ds_00
0.5 Vector Operation d62_q1c
1.0 Chocolate Truffle da67_m
1.0 Intersection ds02
1.0 Reverse Vector II ds00
1.0 Vector Intersection d62_q1c
1.0 Vector Punch d62_q1a
1.5 Interval Count d63_q1b
1.5 Line Paint da66_m1
1.5 Member Multiply d65_q1a
1.5 Multi Insert d63_q1a
1.5 Pair Sum ds01
1.5 Shoe Sizing d67_q0a
1.5 Vector Swap d59_q0
2.0 Cross 2D d65_q1b
2.0 Vector List Erase d63_q1b

Part 02_01 — STD Set & Map

Difficulty Problem Grader Code Status
1.0 CUCAS Rating d58_q0 ✅
1.0 Count Value in Map da68_m ✅
1.0 Histogram d57_q0 ✅
1.0 Vector Intersection d62_q1c ✅
1.0 Vector to Map d60_q0 ✅
1.0 Vote d62_q1a ✅
1.5 Password d64_q1b ✅
2.0 Booking d66_q1a ✅
2.0 Grandfather d62_q1b ✅
2.0 Ice Cream d65_q1c 🟡 Not Full
2.0 Inside Interval d63_qx ✅
2.5 Hiatus d63_q1b ✅

Part 02_SP — STD Set & Map & Vector (Special/Mixed)

Difficulty Problem Grader Code Status
1.5 Auction ex00m2 ⬜ Not Done
1.5 Line Monopoly da66_m1 🟡 Not Full
1.5 Sort Position d67_q1a ✅
1.5 Zipcode d60_q0 ✅
2.0 CPU Reservation d67_q1a ✅
2.0 Company Department d66_q1c ✅
3.0 Zuma d57_q3 🔥 Cooked

Part 03 — STD Stack, Queue, Priority Queue

Difficulty Problem Grader Code
1.5 Second Min d64_q1a
1.5 Stack Concatenate d59_q0
2.0 Evaluate Postfix d57_q1

Part 04 — CP Pair

Difficulty Problem Grader Code
1.0 Pair GTE ⭐ Must d63_q2a
1.0 CUCAS Rating (CP Pair) d58_q0

Quiz Preparation

Quiz Difficulty Problem Grader Code
Quiz 0 Prep 1.0 Dancing Ceremony d68_q0
Quiz 0 Prep 1.0 Wolf Eat Goat d68_q0
Quiz 0 Prep 1.5 Shoe Sizing d67_q0
Quiz 1 Prep — Even Odd d68_q1a
Quiz 1 Prep — KV Database d68_q1b
Quiz 1 Prep — Warzone d68_q1a

Past Quizzes (Academic Year 2569)

Quiz Problem Grader Code
Quiz 0 CV Detection d69_q0
Quiz 0 Partial Score d69_q0

Legend: ✅ Solved  ·  🟡 Not Full (partially working)  ·  ⬜ Not Done  ·  🔥 Cooked (nailed it)


Lecture Code-Alongs

Live-coded examples from lecture, kept for reference alongside the grader problems:

Lecture Topic
02 Vector, Set, Pair (Word Count example)
03 Pair & Vector
04 Set & Map
05 Stack (incl. Infix → Postfix conversion)
06 Queue (incl. Radix Sort with Queue)
07 Priority Queue & Operator Overloading
08 CP-style Pair
09 CP-style Vector

About

This will be my repo for course 2110211 Introduction to Data Structure AY2026 S1 (So cooked as 3CP TwT)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages