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

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

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

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

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

150 โจทย์
ง่าย

คะแนนตัวอักษรในคำ

บวกค่าคะแนนของแต่ละตัวอักษรในคำหนึ่งคำ

Lookup-tablesStrings
ยังไม่มีวิธีแก้
ยาก

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

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

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

ค่ามัธยฐานของลิสต์

หาค่ากลางของลิสต์หลังจากเรียงลำดับแล้ว

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

Count Uppercase Letters

Count the capital letters in a text.

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

Running Sum

Replace each value with the total so far.

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

Letter Grade

Turn a test score into a letter grade.

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

Robot Command Simulator

Move a robot using L (turn left 90 degrees), R (turn right 90 degrees), and A (advance one step).

SimulationState-machines
ยังไม่มีวิธีแก้
ง่าย

Multiplication Table Row

List the first multiples of a number.

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

Absolute Value Without abs

Compute an absolute value with a condition.

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

แปลงอาร์เรย์ 2 มิติให้เป็นอาร์เรย์เดียว

รวมแถวของอาร์เรย์จำนวนเต็ม 2 มิติให้เป็นอาร์เรย์เดียว

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

Initials From a Name

Build uppercase initials from a full name.

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

ลำดับคอลลาทซ์ (Collatz Sequence)

ทำตามกฎหารสองหรือคูณสามบวกหนึ่งจนกว่าจะถึง 1

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

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

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

เลขฟีโบนัชชี

คืนค่าเลขฟีโบนัชชีลำดับที่ n

BeginnerLoopsSequencesStudent-beginner
ยังไม่มีวิธีแก้
ง่าย

Point Quadrant

Find which quadrant a point lies in.

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

การคำนวณเศษส่วนอย่างแม่นยำ

ดำเนินการกับเศษส่วนและคืนค่าเศษส่วนที่ย่อส่วนแล้ว

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

Tree Diameter

A tree is a connected undirected graph with no cycles.

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

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

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

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