Skip to content · ⁨דלג לתוכן⁩

Palindrome · ⁨פלינדרום⁩

English

Palindrome

Return 1 if a C-string reads the same in both directions, otherwise 0 — in C there's no bool by default, so we use the integers 1 and 0. Compare characters from the two ends moving inward.

עברית

פליندרום

החזר 1 אם מחרוזת C קוראת אותו דבר בשני הכיוונים, אחרת 0 — ב-C אין bool ברירת מחדל, לכן אנו משתמשים בשלמים 1 ו0. השווה תווים משני הקצוות ונע פנימה.

Log in or create account · ⁨היכנס או צור חשבון⁩

IGCSE, A-Level & AP