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

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

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

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

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

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

K-th Smallest Element

Find the k-th smallest value without fully sorting.

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

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

Game of Life Step

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

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

Course Schedule Order

Order courses so every prerequisite comes first.

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

Longest Path in a DAG

Find the heaviest path in a task dependency graph.

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

Word Break

Decide whether text can be split into dictionary words.

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

Strongly Connected Components

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

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

Island Perimeter

Measure the coastline of land cells in a grid.

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

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

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

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

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

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

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

Trapping Rain Water

Compute how much rain water an elevation map holds.

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

Matrix Chain Multiplication

Find the cheapest order to multiply a chain of matrices.

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

Sliding Window Maximum

Report the maximum of every window of k numbers.

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