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

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

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

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

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

150 โจทย์
ง่าย

Replace Spaces With Dashes

Turn spaces into dashes to make a URL-style slug.

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

Longest Common Subsequence Length

A subsequence is formed by deleting zero or more elements while preserving the order of the remaining elements.

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

Fizz Buzz

สร้างลำดับโดยใช้การหารด้วย 3 และ 5

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

นับจำนวนคำ

นับจำนวนคำในประโยคที่กำหนด

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

Readability Grade

Estimate the school grade needed to read a text.

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

Acronym Generator

Create an acronym from the first letter of every word, in uppercase.

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

เลขหลักที่มากที่สุด

หาค่าเลขหลักฐานสิบที่มากที่สุดของจำนวนเต็มบวกที่กำหนด

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

สตริงพาลินโดรม

ตรวจสอบว่าข้อความอ่านเหมือนกันทั้งจากซ้ายไปขวาและขวาไปซ้ายหรือไม่

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

Sliding Window Maximum

Report the maximum of every window of k numbers.

AdvancedCompetitive-programmingSliding-window
ยังไม่มีวิธีแก้
ปานกลาง

Can We Split Into Two Teams?

Decide whether people can be assigned to two teams so that each listed pair is on opposite teams.

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

กลับลำดับสตริง

คืนค่าตัวอักษรของสตริงโดยเรียงลำดับย้อนกลับ.

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

ปีอธิกสุรทิน

ตรวจสอบว่าปีใดเป็นปีอธิกสุรทินตามกฎปฏิทินเกรกอเรียนหรือไม่

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

นับจำนวนสระ

นับจำนวนสระในข้อความที่กำหนด

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

ตรวจสอบอะแนแกรม

ตรวจสอบว่าสองวลีใช้ตัวอักษรชุดเดียวกันหรือไม่

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

คี่, คู่ หรือไม่ใช่ทั้งสองอย่าง

จัดประเภทตัวเลขว่าเป็นจำนวนเต็มคี่ จำนวนเต็มคู่ หรือไม่ใช่ทั้งสองอย่าง

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

ผลรวมของหลักตัวเลข

หาผลรวมของหลักตัวเลขในจำนวนเต็มบวกหนึ่งจำนวน

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

Nearest Smaller Value to the Left

For each number, find the closest earlier position containing a strictly smaller number.

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

ตัวคูณร่วมน้อยที่สุด

หาค่าบวกที่น้อยที่สุดที่หารด้วยทั้งสองค่าลงตัว

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