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

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

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

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

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

150 โจทย์
ง่าย

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

BeginnerLearning-pathVariables
ง่าย

Triangle Classification

Classify three side lengths as invalid, equilateral, isosceles, or scalene.

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

Swap First and Last

Exchange the first and last items of a list.

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

Island Perimeter

Measure the coastline of land cells in a grid.

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

Robot Command Simulator

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

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

ค่าที่มากกว่าค่าเฉลี่ย

เก็บเฉพาะค่าที่มากกว่าค่าเฉลี่ย

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

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

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

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

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

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

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

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

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

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

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

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

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

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

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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

Sum of Odd Numbers

Add every odd number up to a limit.

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

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

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

Largest of Three

Pick the largest of three numbers without a built-in max.

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

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

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

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

Count Positive Numbers

Count the values greater than zero in a list.

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

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

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

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