Alphabet Rangoli [HackerRank] Solution | Python | String | Pattern Printing

preview_player
Показать описание
This video is about Alphabet Rangoli problem from HackeRank.

Problem:

For 1 : 1 Tutoring
WhatsApp contact : 7278222619

Follow us on:
Whatsapp:
Telegram:

For Python homework help visit our sponsor site

WhatsApp contact : 7278222619

For 1 to 1 Python Tutoring

Facebook:

Linkedin:

Instagram:

#HackerRank #Python #AlphabetRangoli #PatterPrinting
Рекомендации по теме
Комментарии
Автор

Thank you for this.

I just wanted to point out a few things which might make it easier for everyone:

1. Using a list to store the lowercase alphabet is not required; you can just use a string.
2. Related to #1, rather than use list(map(chr, range(97, 123))), you can just import string and use the built-in string.ascii_lowercase.

alphabet = string.ascii_lowercase
alphabet_subset = alphabet[size-1::-1] + alphabet[1:size]
width =

for i in range(1, size):
+ alphabet[size-i:size]).center(width, "-"))

for i in reversed(range(1, size + 1)):
+ alphabet[size-i:size]).center(width, "-"))

NateFreestyle
Автор

Thanks so much. Your thinking is so good that half the video I stopped watching it and implemented the solution by my own - following your idea- and it worked.

ricardohincapie
Автор

I never subscribe to any channel but the way you explain the question so simply and also put effort by using a drawing board to explain the concept. Also if you can speak hindi then you should also make content in hindi for the mass indian audience

pranjalchaplot
Автор

while True:
print("Thank You :)")

m_abhijit_
Автор

very useful solution and explanation, thank you sir.

khoaanh
Автор

Thank you,

Sir it is helpful for us to better understanding.

chaitanyaapate
Автор

Thanks a lot. Really helped me. Very well explained

abhijithvs
Автор

such a clear explanation. thanks a lot

mohammedarshad
Автор

Thank you so much mate. It is even better than ChatGPT complicated stupid solution. Keep up the good work buddy.

mohammedriyad
Автор

Why range taken from 97 to 123?
Can you explain please🙏🙏

gokulp
Автор

You have explained it in a simple way. Thank you so much!

mallikarjun
Автор

Thanks bhai...explanation is beautiful

mohdrashidsiddiqui
Автор

thank you i also found that m value will always be 4*n-3

WolverineYt
Автор

Really good explanation bro I am impressed. superb explanation.

rakibulislam
Автор

Excellent way of teaching sir🔥🔥
Hat’s of you sir great 👌👌

mohammedhamza
Автор

sir why u taking n variable and assign it as size

prathmeshrikame
Автор

Thanks a lot, I have been scratching my head thinking about the logic for the pattern and you made it so easy! Liked and Subcribed as well!
One shortcut we can use m=4*n-3 to get the width of the pattern

PriteshsRhymes
Автор

Just wowww explanation
Are you now in Cognizant??

alishakumari
Автор

Difficulty level of this problem is easy?!!

sreeharshams
Автор

Sir why len is applied for join function

krishnakotha