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

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

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

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

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

25 โจทย์
ง่าย

Pangram Check

A pangram contains every English letter at least once.

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

ค่าตัวเลขโรมัน

แปลงเลขโรมันเป็นตัวเลขจำนวนเต็ม

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

Word Break

Decide whether text can be split into dictionary words.

AdvancedDynamic-programmingHackathonStrings
ยังไม่มีวิธีแก้
ง่าย

คะแนนตัวอักษรในคำ

บวกค่าคะแนนของแต่ละตัวอักษรในคำหนึ่งคำ

Lookup-tablesStrings
ยังไม่มีวิธีแก้
ง่าย

Every Other Character

Keep the characters at even positions.

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

Count Uppercase Letters

Count the capital letters in a text.

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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

Initials From a Name

Build uppercase initials from a full name.

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

Readability Grade

Estimate the school grade needed to read a text.

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

Find Many Patterns in Text

For each requested pattern, decide whether it appears as a contiguous substring anywhere in the shared text.

Pattern-matchingStringsTries
ยังไม่มีวิธีแก้
ง่าย

ความถี่ของตัวอักษร

นับจำนวนครั้งที่ตัวอักษรแต่ละตัวปรากฏขึ้น

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

Hamming Distance

Compare two DNA strings position by position and count the differences.

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

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

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

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

Title Case

เปลี่ยนตัวอักษรตัวแรกของแต่ละคำให้เป็นตัวพิมพ์ใหญ่

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

ตัวอักษรที่ไม่ซ้ำตัวแรก

หาตัวอักษรตัวแรกที่ปรากฏเพียงครั้งเดียว

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

คำที่ยาวที่สุด

หาคำที่ยาวที่สุดในประโยค

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

นับจำนวนคำ

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

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