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

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

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

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

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

25 โจทย์
ยาก

Find Many Patterns in Text

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

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

Pangram Check

A pangram contains every English letter at least once.

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

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

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

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

Every Other Character

Keep the characters at even positions.

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

DNA to RNA Transcription

Build an RNA string by replacing every DNA character with its partner.

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

Word Break

Decide whether text can be split into dictionary words.

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

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

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

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

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

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

Count Uppercase Letters

Count the capital letters in a text.

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

Initials From a Name

Build uppercase initials from a full name.

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

Minimum Window Substring

Find the shortest piece of text containing all required characters.

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

Replace Spaces With Dashes

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

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

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

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

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

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

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

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

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

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

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

Password Rules Check

Check a password against simple strength rules.

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

Acronym Generator

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

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

Hamming Distance

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

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