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

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

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

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

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

150 โจทย์
ง่าย

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

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

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

Largest of Three

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

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

Island Perimeter

Measure the coastline of land cells in a grid.

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

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

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

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

Swap First and Last

Exchange the first and last items of a list.

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

นับจำนวนระเบิดรอบเซลล์ในเกม Minesweeper

ใส่หมายเหตุให้กระดานสี่เหลี่ยมผืนผ้า

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

Sum of Odd Numbers

Add every odd number up to a limit.

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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

Cart Total With Discount

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

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

Hotel Room Allocation

Assign arriving groups in order.

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

ยกกำลังแบบเวียนเกิด (Recursive Power)

คำนวณการยกกำลังด้วยวิธีเวียนเกิดโดยการหารเลขชี้กำลังครึ่งหนึ่งในแต่ละรอบ

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

Body Mass Index

Compute BMI from weight and height.

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

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

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

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

Ticket Price by Age

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

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

Countdown to Liftoff

Count down from a number and end with Liftoff!

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

Triangle Classification

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

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

Count Positive Numbers

Count the values greater than zero in a list.

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