SalomIsm String formatida ism berilgan, masalan “Otabek”,ismdan foydlanib “Salom Otabek!” ko`rinishidagi qiymat qaytarilsin


Download 110 Kb.
bet5/8
Sana08.01.2022
Hajmi110 Kb.
#234790
1   2   3   4   5   6   7   8
Bog'liq
CodingBat String 1

Istalgan uzunlikdagi satr berilgan bo`lib, satrning oxirgi ikkita belgisini o`rnini almashtirgan holatdagi yangi satr qaytaring. Masalan: “coding”dan “codign” satri qaytadi.


String-1 > seeColor 
prev  |  next  |  chance

Given a string, if the string begins with "red" or "blue" return that color string, otherwise return the empty string.

rangTop.

Agar berilgan satr “red” yoki “blue” so`zlari bilan boshlansa bu rangni satr holatda qaytaring, aks holda bo`sh satr qaytaring.


String-1 > frontAgain 
prev  |  next  |  chance

Given a string, return true if the first 2 chars in the string also appear at the end of the string, such as with "edited".


Download 110 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling