Types of Graph | Data Structure
5:51
Пікірлер
@naveencog123
@naveencog123 13 сағат бұрын
Alternate using list - from math import gcd num1=int(input("Enter the no to check: ")) list1=[] for i in range(1,num1): list1=[j for j in range(1,i+1) if gcd(num1,j)==1] print(list1)
@gotnovibesman
@gotnovibesman 23 сағат бұрын
Bruh thank you so much
@SantoshKumar-gt9mu
@SantoshKumar-gt9mu Күн бұрын
Comeback op!❤
@bgmiyt3964
@bgmiyt3964 Күн бұрын
The Best Teacher🧡💯
@chinmaythapliyal
@chinmaythapliyal 2 күн бұрын
for i in range(1,5): for s in range(4,i-1,-1): print(" ",end='') for j in range(1,i*2): if((i==2 and j==2)or (i==3 and j==2)or (i==3 and j==3)or (i==3 and j==4)): print(" ",end='') else: print("*",end='') print() what about this one?
@RKMeena-bh5wj
@RKMeena-bh5wj 2 күн бұрын
you can also click the new file option on idle it must be more easy
@nireesha5494
@nireesha5494 2 күн бұрын
Hey, i was looking for a perfect DSA in Python no one has made this instead of you.
@gaganawasthi01
@gaganawasthi01 3 күн бұрын
what a gauges voice
@MrUmesh49
@MrUmesh49 3 күн бұрын
Can I get the source code for last one q.append((2,"a")) and for the pop() function. and what if the priority is same for both?
@bishtjohn38
@bishtjohn38 4 күн бұрын
Mam logic is correct but code is wrong
@suyakisaneeshwar8506
@suyakisaneeshwar8506 5 күн бұрын
Madam ..pls upload scipy full tutorial pls🙏🙏
@Prajwal_KV
@Prajwal_KV 5 күн бұрын
Hi Amulya, long time no seeing.how are u? Glad u r back.✨✨✨
@jithendra5322
@jithendra5322 6 күн бұрын
class BST: def __init__(self,key): self.key=key self.rchild=None self.lchild=None def insert(self,data): if self.key is None: self.key=data if self.key>data: if self.lchild: self.lchild.insert(data) else: self.lchild=BST(data) else: if self.rchild: self.rchild.insert(data) else: self.rchild=BST(data) def search(self,data): if self.key==data: print("Node is found") return if data<self.key: if self.lchild: self.lchild.search(data) else: print("Node is not present in the Tree") else: if self.rchild: self.rchild.search(data) else: print("node is not present in the tree") def preorder(self): print(self.key) if self.lchild: self.lchild.preorder() if self.rchild: self.rchild.preorder() root =BST(10) list1=[6,3,1,6,98,3,7] for i in list1: root.insert(i) root.preorder()
@mubasirmk8987
@mubasirmk8987 6 күн бұрын
n = 8 m = n+1 for i in range(n//2-1): for j in range(m): if i == n//2-2 and (j == 0 or j == m-1): print("*", end=" ") elif j <= m//2 and ((i+j == n//2-3 and j <= m//4) \ or (j-i == m//2-n//2+3 and j > m//4)): print("*", end=" ") elif j > m//2 and ((i+j == n//2-3+m//2 and j < 3*m//4) \ or (j-i == m//2-n//2+3+m//2 and j >= 3*m//4)): print("*", end=" ") else: print(" ", end=" ") print() for i in range(n//2-1, n): for j in range(m): if (i-j == n//2-1) or (i+j == n-1+m//2): print('*', end=" ") elif i == n//2-1: if j == m//2: print('A', end=" ") elif j == m//2+1: print('B', end=" ") elif j == m//2+2: print('C', end=" ") else: print(' ', end=" ") else: print(' ', end=" ") print() output is * * * * * * * * * * A B C * * * * * * * * this will print like this can you simplify this
@jithendra5322
@jithendra5322 6 күн бұрын
class BST: def __init__(self,key): self.key=key self.rchild=None self.lchild=None def insert(self,data): if self.key is None: self.key=data if self.key>data: if self.lchild: self.lchild.insert(data) else: self.lchild=BST(data) else: if self.rchild: self.rchild.insert(data) else: self.rchild=BST(data) def search(self,data): if self.key==data: print("Node is found") return if data<self.key: if self.lchild: self.lchild.search(data) else: print("Node is not present in the Tree") else: if self.rchild: self.rchild.search(data) else: print("node is not present in the tree")
@jaswanthjaswanth9366
@jaswanthjaswanth9366 7 күн бұрын
🎉❤
@jithendra5322
@jithendra5322 7 күн бұрын
class BST: def __init__(self,key): self.key=key self.rchild=None self.lchild=None def insert(self,data): if self.key is None: self.key=data return if self.key==data: return if self.key>data: if self.lchild: self.lchild.insert(data) else: self.lchild=BST(data) else: if self.rchild: self.rchild.insert(data) else: self.rchild=BST(data) root=BST(10) list1=[20,4,30,4] for i in list1: root.insert(i)
@mubasirmk8987
@mubasirmk8987 7 күн бұрын
num = int(input("enter any number:")) msg= (input("enter any message:")) l = len(msg) n = num//2 for i in range(n): print(" "*(n-i-1) + "* "*(i+1),end="") if num%2==0: for j in range(2*(n-i-1)): print(" ",end ="") else: for j in range(2*(n-i-1)+1): print(" ",end="") for j in range(i+1): print("* ",end ="") print() print("* "*((num-1)//2) + " ".join(msg) + "* "*((num-1)//2) ) for i in range(num,0,-1): print(" "*(num-i) + "* "*(i)) is there any mistake i am getting extra one star after in 5th row
@oplegend0073
@oplegend0073 8 күн бұрын
thankyou.....(gulabi dil)
@user-yt8st8sw3d
@user-yt8st8sw3d 8 күн бұрын
Super explanation sister thank you so much 😁☺️
@aravindhan9183
@aravindhan9183 10 күн бұрын
this program wont work when the tree is like preorder--20 15 10 7 17 16 when we delete 15 from the tree
@farmme6623
@farmme6623 10 күн бұрын
welcome back mam ❤❤ sorry if it is sudden but I have a request, please also upload tutorial for python request module 😊😊 Thank you, this is the only channel that help me to understand DSA especially linked list which is the first data structure that I learned except array/list. ❤❤❤
@Novelsvibes-hub
@Novelsvibes-hub 10 күн бұрын
Wah wah Meri bhn .....
@AlokDhoke
@AlokDhoke 11 күн бұрын
Promotion regarding baat karne thi aapse reply
@Sandip_Vegad_789
@Sandip_Vegad_789 12 күн бұрын
list = [ ] number = int(input("enter the element of number = ")) for i in range(number): element = int(input("enter the number of list = ")) list.append(element) print(list) for i in range(len(list)): min_value = min(list[i:]) min_ind = list.index(min_value,i) list[i],list[min_ind] = list[min_ind],list[i] print(list)
@bgmiyt3964
@bgmiyt3964 13 күн бұрын
super Explanation
@user-om3yn4zo1m
@user-om3yn4zo1m 13 күн бұрын
simple and easy explaination I watched so many videos to understand this concept but this was the best
@pravyn350
@pravyn350 13 күн бұрын
🎉
@user-ts1rf7ck6h
@user-ts1rf7ck6h 14 күн бұрын
Thank you mam for your explanation.....It is really helpful💌
@dhaneshmohun6239
@dhaneshmohun6239 14 күн бұрын
you sound cute...like my little brother
@pgkgaming4229
@pgkgaming4229 15 күн бұрын
Osm ,nice explanation ❤❤❤
@pgkgaming4229
@pgkgaming4229 15 күн бұрын
Nice explanation osm ❤❤❤
@prionto6148
@prionto6148 15 күн бұрын
I cannot imagine I am getting this amazing explainations for free, thanks a lot. Please keep up the good work.
@Hello_darkworld
@Hello_darkworld 15 күн бұрын
Thanks mam:))
@Manishamkapse
@Manishamkapse 15 күн бұрын
Madam dictionary also ordered aftet python version 3.7
@Manishamkapse
@Manishamkapse 15 күн бұрын
Explanation good but tuple is immutable
@abhinayi
@abhinayi 15 күн бұрын
Hello sister, can you make videos on explaining HackerRank python questions, that will give us more real-time based experience for interviews.
@Anasalkhteeb-dr2hv
@Anasalkhteeb-dr2hv 15 күн бұрын
شكراً لك يا اخي❤❤
@Clickz.of.karthik
@Clickz.of.karthik 16 күн бұрын
HENCE, FINALLY RETURN BACK
@aarthim3842
@aarthim3842 16 күн бұрын
Super explanation 🤩
@vigneshk5193
@vigneshk5193 17 күн бұрын
Thank you mam. I felt easy learning data structure by watching your videos
@anilkumarpaidi31
@anilkumarpaidi31 17 күн бұрын
Thank u madam😊
@Dattu-yv4tj
@Dattu-yv4tj 18 күн бұрын
Good to see you back...!
@TheaccountIuseformystudies
@TheaccountIuseformystudies 18 күн бұрын
If you want to take input for this shape use this: num = int(input()) for row in range(num): for col in range(num): if row+col==(num-1)/2 or col-row==(num-1)/2 or row-col==(num-1)/2 or row+col == 3*(num-1)/2: print("*", end="") else: print(" ", end="") print()
@paulprasadbabu
@paulprasadbabu 18 күн бұрын
thank you madam, good explanation
@HarshPatel-it7ig
@HarshPatel-it7ig 18 күн бұрын
Hindi bolo please
@rajachoudhary51
@rajachoudhary51 18 күн бұрын
ur voice and teaching style are ultimate.
@gangstar-ny4oz
@gangstar-ny4oz 18 күн бұрын
Your voice so nice
@prionto6148
@prionto6148 18 күн бұрын
It is the best channel out there for explaining python data structures, thanks a lot for making these videos.
@korthiwadasathwika3186
@korthiwadasathwika3186 18 күн бұрын
mam iam getting this type of error how can i resolve it, AttributeError: partially initialized module 'turtle' has no attribute 'Turtle' (most likely due to a circular import). Did you mean: 'turtle'?