satrKombinatsiyasi
a va b satrlar berilgan bo`lib ularning istalgan birining uzunligi ikkinchisinikidan qisqa. Shu satrlardan foydalangan holda yangi kalta+uzun+kalta formadagi yangi satr qaytaring. Satrlar bir xil uzunlikda bo`lmaydi lekin bo`sh bo`lishi mumkin.
String-1 > nonStart
prev | next | chance
Given 2 strings, return their concatenation, except omit the first char of each. The strings will be at least length 1.
Boshsiz
Ikkita satr berilgan har ikkala satrning birinchi elementini olib tashlab ularning qo`shilishidan hosil bo`lgan yangi satr qaytaring. Satrlarning uzunligi kamida 1 ga teng bo`ladi.
|
String-1 > right2
prev | next | chance
Given a string, return a "rotated right 2" version where the last 2 chars are moved to the start. The string length will be at least 2.
o`ngga2
Satr berilgan bo`lib uning oxirgi ikkita belgisini satrning boshiga ko`chirilgan holatdagi yangi satr qaytaring. Masalan: “Java” dan “vaJa” hosil bo`ladi. Bunda satr uzunligi kamida 2 ga teng bo`ladi.
|
String-1 > theEnd
prev | next | chance
Given a string, return a string length 1 from its front, unless front is false, in which case return a string length 1 from its back. The string will be non-empty.
Tamom
Berilgan satrning qiymati true bo`lsa sart boshidan bitta belgi agar false bo`lsa satr oxiridan bitta belgi qaytaring. Berilgan satr bo`sh bo`lmaydi.
|
String-1 > withouEnd2
prev | next | chance
Given a string, return a version without both the first and last char of the string. The string may be any length, including 0.
Yakunsiz.
Berilgan satrning bosh va oxiridan bittadan belgini olib tashlagan holdagi yangi satr hosil qiling. Satr uzunligi 0 qiymatni o`z ichiga olgan holda istalagan uzunlikda bo`lishi mumkin.
|
String-1 > middleTwo
prev | next | chance
Given a string of even length, return a string made of the middle two chars, so the string "string" yields "ri". The string length will be at least 2.
O`rtadagi2.
Juft uzunlikdagi satr berilgan bo`lib, uning o`rtadagi ikkita simvolidan hosil bo`lgan satr qaytaring. Masalan: “TUIT” so`zidan “UI” so`zi hosil bo`ladi. Bunda satr uzunligi kamida 2 ga teng bo`ladi.
|
String-1 > endsLy
prev | next | chance
Given a string, return true if it ends in "ly".
OxiriLy.
|
Do'stlaringiz bilan baham: |