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

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

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

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

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

150 โจทย์
ยาก

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

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

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

Running Sum

Replace each value with the total so far.

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

Letter Grade

Turn a test score into a letter grade.

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

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

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

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

ยกกำลังจำนวนจริงด้วยเลขชี้กำลังเศษส่วน

ยกจำนวนจริงบวกให้กับเลขชี้กำลังที่เป็นเศษส่วน (เลขตรรกยะ)

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

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

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

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

Multiplication Table Row

List the first multiples of a number.

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

Initials From a Name

Build uppercase initials from a full name.

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

Absolute Value Without abs

Compute an absolute value with a condition.

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

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

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

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

Tic-Tac-Toe Winner

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

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

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

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

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

Point Quadrant

Find which quadrant a point lies in.

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

หาจำนวนที่หายไป

หาจำนวนหนึ่งจำนวนที่หายไปจากช่วง 0..n

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

Tree Diameter

A tree is a connected undirected graph with no cycles.

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

หาผลรวมของอาเรย์

หาผลรวมของค่าทั้งหมดในลิสต์

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

หาค่าน้อยสุดในอาเรย์

หาค่าที่น้อยที่สุดในลิสต์

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