Leetcode with dani – Telegram
Leetcode with dani
1.31K subscribers
197 photos
14 videos
56 files
240 links
Join us and let's tackle leet code questions together: improve your problem-solving skills
Preparing for coding interviews
learning new algorithms and data structures
connect with other coding enthusiasts
Download Telegram
use the comment section to give your solution
👍4
Forwarded from Bitanya
def even(n):
ctr=0
for i in range (1,n):
if i%2==0:
ctr +=1
print(i)
print(f“we have {ctr} even numbers”)
even(10)
Forwarded from ᴀʜᴍᴇᴅ
Leetcode with dani
def even(n): ctr=0 for i in range (1,n): if i%2==0: ctr +=1 print(i) print(f“we have {ctr} even numbers”) even(10)
n = int(input('number: '))
total = 0
for i in range(2,n,2):
print(i)
total +=1
print(f'we have {total} even numbers')
write a  program that generate 7 random number in the form of  list from one ab to 9.
from the comments
#in the form of list
import random
def easy():
lis = []
i = 0
while i < 7:
   lis.append(random.randint(1,9))
   i+=1
print(lis)
easy()
write a program that count number of odd number in the given number.
example:- input=3687 .#output=2
Leetcode with dani
write a program that count number of odd number in the given number. example:- input=3687 .#output=2
n=int(input('number:'))
num=0
if n < 0:
    n=-n
while n > 0:
    no=n%10
    if no % 2 != 0:
        num+=1
    n=n//10
print(num)
👍3
print(5 ** 2 // 7 == (not(2 // 5 == 5)))
#out put == ?
Anonymous Quiz
32%
True
42%
False
25%
Error
print(10//9==(not(2//5==5)))
#out put=?
Anonymous Quiz
35%
True
41%
False
24%
Error
print(4 * 3 / 2 * 2 ** 2)
#out put==?
Anonymous Quiz
9%
12.0
26%
1.5
9%
0.75
57%
24.0
❤‍🔥3👎2
T1=(2,3)
a,b=T1
T2=(b,T1) print(T2) #output=?
Anonymous Quiz
13%
(3,2,3)
53%
(3,(2,3))
15%
(T1,2,3)
18%
error
Leetcode with dani pinned «T1=(2,3)
a,b=T1
T2=(b,T1) print(T2) #output=?
»
Forwarded from 🇪🇹Ethio Apps Store 📀 (𝐉ƲDͩѦƝƝѦⴼ)
Python_4.2.21_Pro.apk
14.5 MB
🦋#Share🦋
👩‍💻 @ethioapps1👨‍💻
👍3
kemejemria jmro python memar mefelgu sewoch ke first message gemrachu mayet techlalachu keza betechemari be mangnawm seat erdata kefelegachu conatct argugn https://news.1rj.ru/str/zprogramming_bot
❤‍🔥7
🇪🇹Ethio Apps Store 📀
Python_4.2.21_Pro.apk
be slk lemetemaru kesr yalwn tetekemu yelayegnaw kalseralachu
#code_challenge write a code for a Given a string containing just the characters '(', ')', '{', '}', '[', and ']', determine if the input string is valid. An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order
you can submit your answers via https://news.1rj.ru/str/zprogramming_bot
seletemechegn nw share yarekut
Forwarded from Dani
አትጠይቅ (?)

"አትመርምር ፣ አትጠይቅ ፣
ልብህ ቢያስብ እንኳን ፣ ምላስህን ጠብቅ፣
"ዝም በል" የሚሉት ቃል ፦
ተመራምሮ ላየው ፣ ብዙ ያስጠይቃል ።

ሲጀመር ፦
አስተዋይ አዋቂ ፣ ጠያቂ...አዕምሮ፣
ከነፍስ ባህርይ፣ በሥጋ አንጎል ቋጥሮ፣
አምላክ ከፈጠረ
ስለምን ዝም ይበል፣ የተመራመረ ?

ሲቀጥል ፦
ልብ የጠየቀውን ፣ አንደበት አውጥቶ ስላልተናገረ፣
የልብብ ሚያውቅ አምላክ፣ እንዳልተጠየቀ እንዴት ተቆጠረ?

ባጭሩ ፦
የሰነፍ አንደበት ፣ ለመልስ ሲቸግረው፣
መርማሪ አዕምሮን፣ "በአትጠይቅ" አሰረው ።

መላኩ አላምረው
5🔥1