โจทย์เขียนโค้ดเรื่องLearning-path

ฝึกLearning-pathด้วยโจทย์เขียนโค้ด 40 ข้อ ตั้งแต่ง่ายไปจนถึงยาก ทุกโจทย์รันในเบราว์เซอร์ พร้อมการทดสอบทันที รีวิวโค้ดจาก AI และคำตอบจากชุมชนให้เปรียบเทียบ

ง่าย · 35 ปานกลาง · 5

ทักษะที่จะได้ฝึก: ลิสต์การนับลิสต์ 2 มิติสร้างสตริงสูตรเลขคณิตDFS แบบ recursiveFlood fillกฎของปฏิทินกฎส่วนลดกรณีฐานการกรอง
  • Python · C++ · C#
  • ทดสอบอัตโนมัติ
  • รีวิวโค้ดโดย AI
  • แนวทางจากชุมชน
226
โจทย์
2
วิธีแก้ที่แชร์
3
ภาษา

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

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

40 โจทย์
ง่าย

Distance Between Points

Compute the straight-line distance between two points.

คุณจะได้เรียนรู้ ทฤษฎีบทพีทาโกรัสรากที่สอง
BeginnerFunctionsLearning-pathmath
ยังไม่มีวิธีแก้
ปานกลาง

Count Islands

Count groups of connected land cells in a grid.

คุณจะได้เรียนรู้ Flood fillDFS แบบ recursive
BeginnerGridsLearning-pathRecursion
ยังไม่มีวิธีแก้
ปานกลาง

Gradebook Top Student

Find the student with the highest average score.

คุณจะได้เรียนรู้ ลิสต์ 2 มิติค่าเฉลี่ย
BeginnerFunctionsGridsLearning-path
ยังไม่มีวิธีแก้
ง่าย

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

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

คุณจะได้เรียนรู้ คู่ดัชนีหลีกเลี่ยงการนับซ้ำ
ArraysBeginnerLearning-pathNested-loops
ยังไม่มีวิธีแก้
ง่าย

สามเหลี่ยมตัวเลข

สร้างสามเหลี่ยมที่มีตัวเลขเพิ่มขึ้นในแต่ละแถว

คุณจะได้เรียนรู้ แถวที่ยาวขึ้นตัวนับข้ามแถว
BeginnerLearning-pathNested-loopsPatterns
ยังไม่มีวิธีแก้
ง่าย

Average of Three

Average three whole numbers.

คุณจะได้เรียนรู้ เลขคณิตการหาร
BeginnerLearning-pathVariables
ง่าย

Pyramid Rows

Draw a right-aligned pyramid of # blocks.

คุณจะได้เรียนรู้ รูปแบบสตริงการเว้นวรรค
BeginnerLearning-pathNested-loopsPatterns
ยังไม่มีวิธีแก้
ง่าย

Rectangle Perimeter

Compute the perimeter of a rectangle from its sides.

คุณจะได้เรียนรู้ เลขคณิตค่าที่คืนกลับ
BeginnerLearning-pathVariables
ปานกลาง

Recursive Palindrome

Check a palindrome recursively, ignoring case and punctuation.

คุณจะได้เรียนรู้ กรณีฐานทำความสะอาดสตริง
BeginnerLearning-pathRecursionStrings
ยังไม่มีวิธีแก้
ง่าย

Hollow Square

Draw the outline of a square with * characters.

คุณจะได้เรียนรู้ ตรวจขอบสร้างสตริง
BeginnerLearning-pathNested-loopsPatterns
ยังไม่มีวิธีแก้
ง่าย

Days in a Month

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

คุณจะได้เรียนรู้ กฎของปฏิทินฟังก์ชันช่วย
BeginnerConditionsFunctionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Celsius to Fahrenheit

Convert a temperature from Celsius to Fahrenheit.

คุณจะได้เรียนรู้ สูตรลำดับความสำคัญของตัวดำเนินการ
BeginnerLearning-pathVariables
ยังไม่มีวิธีแก้
ปานกลาง

Tic-Tac-Toe Winner

Decide the result of a tic-tac-toe board.

คุณจะได้เรียนรู้ เงื่อนไขชนะแนวทแยง
BeginnerConditionsGridsLearning-path
ยังไม่มีวิธีแก้
ง่าย

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

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

คุณจะได้เรียนรู้ ลูป whileการนับ
BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

Multiplication Grid

Build a full multiplication table.

คุณจะได้เรียนรู้ ลิสต์ 2 มิติดัชนีแถวและคอลัมน์
BeginnerLearning-pathNested-loops
ยังไม่มีวิธีแก้
ง่าย

Min and Max Together

Find the smallest and largest value in one pass.

คุณจะได้เรียนรู้ ไล่รอบเดียวคืนหลายค่า
ArraysBeginnerFunctionsLearning-path
ยังไม่มีวิธีแก้
ปานกลาง

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

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

คุณจะได้เรียนรู้ แบ่งเลขชี้กำลังครึ่งหนึ่งแบ่งแยกและเอาชนะ
BeginnerLearning-pathRecursion
ยังไม่มีวิธีแก้
ง่าย

Simple Interest

Find the total amount after simple interest.

คุณจะได้เรียนรู้ ร้อยละโจทย์ปัญหา
BeginnerLearning-pathVariables
ยังไม่มีวิธีแก้