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

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

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

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

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

40 โจทย์
ง่าย

Distance Between Points

Compute the straight-line distance between two points.

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

Gradebook Top Student

Find the student with the highest average score.

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

Count Islands

Count groups of connected land cells in a grid.

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

Every Other Character

Keep the characters at even positions.

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

หารครึ่งจนเหลือหนึ่ง

นับจำนวนครั้งที่ต้องหารครึ่งเพื่อให้ตัวเลขเหลือ 1

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

Min and Max Together

Find the smallest and largest value in one pass.

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

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

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

Days in a Month

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

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

นับคู่ที่มีผลรวมเท่ากับค่าที่กำหนด

นับจำนวนคู่ของตำแหน่งที่ค่ารวมกันได้เท่ากับเป้าหมายที่กำหนด

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

First Negative Index

Find where the first negative number appears.

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

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

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

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

Average of Three

Average three whole numbers.

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

Simple Interest

Find the total amount after simple interest.

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

Cart Total With Discount

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

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

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

BeginnerLearning-pathVariables
ง่าย

Count Uppercase Letters

Count the capital letters in a text.

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

Swap First and Last

Exchange the first and last items of a list.

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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