17 subscribers
38 photos
16 videos
2 files
139 links
Download Telegram
​​🏆 #Masalalar

#masala11 #leetcode #ortacha

Sizga berilgan massiv(array) va number(son) . Agar massivdi birinchi uchragan ikkita elementlar yig'indisi
numberga teng bo'lsa , òsha elementlarning index massiv ko'rinishida chiqaring .

Input: nums = 2,7,11,15, target = 9
Output: 0,1
Output: Chunki nums0 + nums1 == 9, bizga qaytaradi 0, 1.
——————————————————————————————
#masala12 #oson
Sonni murrakab son ekanligini aniqlang , murakkab son bo'lsa true bòlmasa false chiqaring ?

——————————————————————————————
#masala13 #qiyin

Kiritilgan sonni rim raqami ko'rinishida chiqaring ?

belgi qiymat
I 1
V 5
X 10
L 50
C 100
D 500
M 1000

input: n = 1234
output: result = "MCCXXXIV"

——————————————————————————————
#masala14 #ortacha

Sizga berilgan string Agar stringda "yomon" so'zi bo'lsa o'shani "yaxshi" so'ziga almashtiring ,
bo'lmasa false qaytaring.

Mn : string= "Komindant yomon"
bizaga qayatrsin :
result = "Komindant yaxshi"

———————————————————————————————-
#masala15
Sizga number beriladi O'sha numberdi nechi xonali ekanligini aniqlang ?
Mn: number = 1234
output = 4;

Agar masalalar yuzasida savollar tug'ilsa @akbaronlinebot va commnetlaga berishingiz mumkin .

Hammaga omad🤓

Kanalga ulanish @DasturlashMasalalar