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

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

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

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

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

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

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
ยังไม่มีวิธีแก้
ง่าย

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

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

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

Count Inversions

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

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

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
ยังไม่มีวิธีแก้
ง่าย

Distance Between Points

Compute the straight-line distance between two points.

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

Shortest Delivery Tour

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

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

Hollow Square

Draw the outline of a square with * characters.

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

Pangram Check

A pangram contains every English letter at least once.

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

ค่าตัวเลขโรมัน

แปลงเลขโรมันเป็นตัวเลขจำนวนเต็ม

BeginnerLookup-tablesStringsStudent-beginner
ยังไม่มีวิธีแก้
ปานกลาง

Game of Life Step

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

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

Course Schedule Order

Order courses so every prerequisite comes first.

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

ผลรวมเลขยกกำลังตำแหน่ง

นำแต่ละหลักมายกกำลังตามตำแหน่งจากซ้าย แล้วบวกผลลัพธ์เข้าด้วยกัน

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

รากดิจิทัล

บวกตัวเลขแต่ละหลักซ้ำไปเรื่อย ๆ จนเหลือเพียงหลักเดียว

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

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

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

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