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

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

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

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

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

10 โจทย์
ยาก

Shortest Delivery Tour

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

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

ค่ามัธยฐานของสองอาเรย์ที่เรียงลำดับแล้ว

หาค่ามัธยฐานของลิสต์ที่เรียงลำดับสองลิสต์เมื่อนำมารวมกัน

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

K-th Smallest Element

Find the k-th smallest value without fully sorting.

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

Strongly Connected Components

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

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

Count Inversions

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

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

สี่เหลี่ยมผืนผ้าที่ใหญ่ที่สุดในฮิสโตแกรม

หาสี่เหลี่ยมผืนผ้าที่ใหญ่ที่สุดที่สามารถวางอยู่ใต้ฮิสโตแกรมได้

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

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

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

Trapping Rain Water

Compute how much rain water an elevation map holds.

AdvancedArraysCompetitive-programmingGreedy
ยังไม่มีวิธีแก้
ยาก

Sliding Window Maximum

Report the maximum of every window of k numbers.

AdvancedCompetitive-programmingSliding-window
ยังไม่มีวิธีแก้