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

ฝึกทักษะการแก้ปัญหาด้วยโจทย์กลางที่รองรับ 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
ยังไม่มีวิธีแก้
ปานกลาง

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

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

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

Multiplication Table Row

List the first multiples of a number.

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

Body Mass Index

Compute BMI from weight and height.

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

Count Uppercase Letters

Count the capital letters in a text.

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

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

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

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

Tree Diameter

A tree is a connected undirected graph with no cycles.

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

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

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

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

Countdown to Liftoff

Count down from a number and end with Liftoff!

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

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

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

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

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

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

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

Letter Grade

Turn a test score into a letter grade.

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

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

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

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

Initials From a Name

Build uppercase initials from a full name.

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

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

หาค่าที่มากที่สุดในลิสต์

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

ตรวจสอบจำนวนเฉพาะ

ตัดสินว่าตัวเลขเป็นจำนวนเฉพาะหรือไม่

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