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

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

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

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

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

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

40 โจทย์
ง่าย

Password Rules Check

Check a password against simple strength rules.

คุณจะได้เรียนรู้ การตรวจสอบความถูกต้องแฟล็กบูลีน
BeginnerConditionsLearning-pathStrings
ยังไม่มีวิธีแก้
ง่าย

Every Other Character

Keep the characters at even positions.

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

Sum of Odd Numbers

Add every odd number up to a limit.

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

Power by Repeated Multiplication

Raise a number to a power with a loop.

คุณจะได้เรียนรู้ ผลคูณสะสมเลขชี้กำลังศูนย์
BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

Body Mass Index

Compute BMI from weight and height.

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

Letter Grade

Turn a test score into a letter grade.

คุณจะได้เรียนรู้ สายโซ่ if/elifช่วงของค่า
BeginnerConditionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

Multiplication Table Row

List the first multiples of a number.

คุณจะได้เรียนรู้ พหุคูณสร้างลิสต์
BeginnerLearning-pathLoops
ยังไม่มีวิธีแก้
ง่าย

Row Sums

Add up every row of a grid.

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

Swap First and Last

Exchange the first and last items of a list.

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

Absolute Value Without abs

Compute an absolute value with a condition.

คุณจะได้เรียนรู้ การกลับเครื่องหมายไม่ใช้ฟังก์ชันในตัว
BeginnerConditionsLearning-path
ยังไม่มีวิธีแก้
ง่าย

First Negative Index

Find where the first negative number appears.

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

Countdown to Liftoff

Count down from a number and end with Liftoff!

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

Point Quadrant

Find which quadrant a point lies in.

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

Ticket Price by Age

Choose a cinema ticket price from the visitor's age.

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

Cart Total With Discount

Total a shopping cart and apply a discount above a threshold.

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

Largest of Three

Pick the largest of three numbers without a built-in max.

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

Initials From a Name

Build uppercase initials from a full name.

คุณจะได้เรียนรู้ แยกสตริงตัวพิมพ์ใหญ่
BeginnerLearning-pathStrings
ยังไม่มีวิธีแก้
ง่าย

Replace Spaces With Dashes

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

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