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

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

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

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

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

150 โจทย์
ยาก

Word Break

Decide whether text can be split into dictionary words.

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

Count Islands

Count groups of connected land cells in a grid.

BeginnerGridsLearning-pathRecursion
ยังไม่มีวิธีแก้
ง่าย

จัดประเภทตัวเลขตามตัวหารของมัน

จัดประเภทจำนวนเต็มบวกว่าเป็น perfect, abundant หรือ deficient

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

Flatten Arbitrarily Nested Lists (Recursion)

Practice recursion by flattening arbitrarily nested lists while skipping null entries.

Data-structuresRecursion
ยังไม่มีวิธีแก้
ง่าย

นับจำนวนการจับมือ

นับจำนวนการจับมือเมื่อทุกคู่ของคนจับมือกันครั้งเดียว

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

นับจำนวนเส้นทางในกริด

นับจำนวนเส้นทางจากมุมหนึ่งไปอีกมุมหนึ่งในกริดสี่เหลี่ยม โดยสามารถเดินได้เฉพาะทางขวาหรือทางล่างเท่านั้น

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

อัศวินสองตัวที่ไม่โจมตีกัน

นับจำนวนวิธีวางอัศวินสองตัวอย่างปลอดภัยในแต่ละขนาดกระดานสี่เหลี่ยมจัตุรัส

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

Min and Max Together

Find the smallest and largest value in one pass.

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

Days in a Month

Return how many days a month has, including leap years.

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

ตัดสี่เหลี่ยมผืนผ้าให้เป็นสี่เหลี่ยมจัตุรัส

หาจำนวนครั้งในการตัดตรงที่น้อยที่สุดเพื่อให้ได้แต่สี่เหลี่ยมจัตุรัสเท่านั้น

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

First Negative Index

Find where the first negative number appears.

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

การเพิ่มจำนวนเมล็ดข้าวบนกระดานหมากรุก

คำนวณจำนวนเมล็ดข้าวบนช่องที่ระบุ และผลรวมของเมล็ดข้าวบนทั้ง 64 ช่อง

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

Hotel Room Allocation

Assign arriving groups in order.

Segment-treesSimulation
ยังไม่มีวิธีแก้
ยาก

Mini Stack-Language Interpreter

Evaluate a small stack language.

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

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

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

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

Strongly Connected Components

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

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

Simple Interest

Find the total amount after simple interest.

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

Power by Repeated Multiplication

Raise a number to a power with a loop.

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