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

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

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

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

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

150 โจทย์
ปานกลาง

Shortest Weighted Routes

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

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

K-th Smallest Element

Find the k-th smallest value without fully sorting.

AdvancedCompetitive-programmingSorting
ยังไม่มีวิธีแก้
ง่าย

นับคู่ที่มีผลรวมเท่ากับค่าที่กำหนด

นับจำนวนคู่ของตำแหน่งที่ค่ารวมกันได้เท่ากับเป้าหมายที่กำหนด

ArraysBeginnerLearning-pathNested-loops
ยังไม่มีวิธีแก้
ปานกลาง

Tournament Standings

Rank teams from match records.

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

Distance Between Points

Compute the straight-line distance between two points.

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

ตัวประกอบเฉพาะที่มากที่สุด

หาตัวเลขเฉพาะที่มากที่สุดซึ่งหารจำนวนเต็มบวกหนึ่งจำนวนได้ลงตัว

AlgorithmsNumber-theory
ยังไม่มีวิธีแก้
ยาก

Find Many Patterns in Text

For each requested pattern, decide whether it appears as a contiguous substring anywhere in the shared text.

Pattern-matchingStringsTries
ยังไม่มีวิธีแก้
ง่าย

สามเหลี่ยมตัวเลข

สร้างสามเหลี่ยมที่มีตัวเลขเพิ่มขึ้นในแต่ละแถว

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

Count Inversions

Count the out-of-order pairs in a list.

AdvancedCompetitive-programmingSorting
ยังไม่มีวิธีแก้
ยาก

Shortest Delivery Tour

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

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

List Primes With a Sieve

Find primes up to a limit by marking composite multiples.

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

Multiplication Grid

Build a full multiplication table.

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

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

BeginnerLearning-pathNested-loopsPatterns
ยังไม่มีวิธีแก้
ปานกลาง

Gradebook Top Student

Find the student with the highest average score.

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

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

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

Game of Life Step

ดำเนินเกมชีวิตของคอนเวย์ไปข้างหน้าอีกหนึ่งเจเนอเรชัน

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

Hollow Square

Draw the outline of a square with * characters.

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

Course Schedule Order

Order courses so every prerequisite comes first.

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