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".
|
Do'stlaringiz bilan baham: |