โจทย์ เขียนโปรแกรม

ฝึกทักษะการแก้ปัญหาด้วยโจทย์กลางที่รองรับ Python, C++ และ C# ทุกคำตอบจะถูกตรวจสอบอัตโนมัติและรีวิวโดย AI

  • Python · C++ · C#
  • ทดสอบอัตโนมัติ
  • รีวิวโค้ดโดย AI
  • แนวทางจากชุมชน
เส้นทางการเรียนรู้
150
โจทย์
0
วิธีแก้ที่แชร์
3
ภาษา

โจทย์ทั้งหมด

ค้นหาตามหัวข้อ ภาษา หรือระดับความยาก

150 โจทย์
ยาก

Shortest Delivery Tour

Visit every city once and return home as cheaply as possible.

AdvancedBitmasksCompetitive-programmingDynamic-programming
ยังไม่มีวิธีแก้
ง่าย

Distance Between Points

Compute the straight-line distance between two points.

BeginnerFunctionsLearning-pathmath
ยังไม่มีวิธีแก้
ปานกลาง

Shortest Weighted Routes

Find the minimum total route cost from city 1 to each city.

GraphsPriority-queuesShortest-path
ยังไม่มีวิธีแก้
ยาก

Minimum Network Connection Cost

Choose undirected links so that every vertex can reach every other vertex, with minimum total cost.

Disjoint-setsGraphsMinimum-spanning-tree
ยังไม่มีวิธีแก้
ปานกลาง

Count Islands

Count groups of connected land cells in a grid.

BeginnerGridsLearning-pathRecursion
ยังไม่มีวิธีแก้
ปานกลาง

Flatten Arbitrarily Nested Lists (Recursion)

Practice recursion by flattening arbitrarily nested lists while skipping null entries.

Data-structuresRecursion
ยังไม่มีวิธีแก้
ปานกลาง

List Primes With a Sieve

Find primes up to a limit by marking composite multiples.

Number-theorySieve
ยังไม่มีวิธีแก้
ยาก

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
ยังไม่มีวิธีแก้
ยาก

Mini Stack-Language Interpreter

Evaluate a small stack language.

InterpretersParsingStacks
ยังไม่มีวิธีแก้
ง่าย

หารครึ่งจนเหลือหนึ่ง

นับจำนวนครั้งที่ต้องหารครึ่งเพื่อให้ตัวเลขเหลือ 1

BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

BeginnerLearning-pathVariables
ยังไม่มีวิธีแก้
ยาก

Word Break

Decide whether text can be split into dictionary words.

AdvancedDynamic-programmingHackathonStrings
ยังไม่มีวิธีแก้
ยาก

Course Schedule Order

Order courses so every prerequisite comes first.

AdvancedGraphsHackathonTopological-sort
ยังไม่มีวิธีแก้
ยาก

Strongly Connected Components

นับกลุ่มของโหนดที่ทุกโหนดสามารถเข้าถึงกันและกันได้ทั้งหมด

AdvancedCompetitive-programmingGraphs
ยังไม่มีวิธีแก้
ปานกลาง

Gradebook Top Student

Find the student with the highest average score.

BeginnerFunctionsGridsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Simple Interest

Find the total amount after simple interest.

BeginnerLearning-pathVariables
ยังไม่มีวิธีแก้
ยาก

รางวัลสูงสุดจากโปรเจกต์

เลือกโปรเจกต์ที่ไม่ทับซ้อนกันเพื่อให้ได้รางวัลรวมมากที่สุด

Dynamic-programmingScheduling
ยังไม่มีวิธีแก้
ง่าย

Days in a Month

Return how many days a month has, including leap years.

BeginnerConditionsFunctionsLearning-path
ยังไม่มีวิธีแก้