Тёмный

206 - Zig Zag Sequence | Debugging | Hackerrank Solution | Python 

Hackers Realm
Подписаться 24 тыс.
Просмотров 9 тыс.
50% 1

⭐️ Content Description ⭐️
In this video, I have explained on how to debug zig zag sequence problem in hackerrank. This hackerrank problem is a part of Problem Solving | Practice | Algorithms | Debugging | Zig Zag Sequence and solved in python.
🔔 Subscribe: bit.ly/hackersr...
🗓️ 1:1 Consultation with Me: calendly.com/h...
📷 Instagram: / aswintechguy
🔣 Linkedin: / aswintechguy
🎯 GitHub: github.com/asw...
🎬 Share: • 206 - Zig Zag Sequence...
⚡️ Data Structures & Algorithms tutorial playlist: bit.ly/dsatutorial
😎 Hackerrank problem solving solutions playlist: bit.ly/hackerra...
🤖 ML projects tutorial playlist: bit.ly/mlprojec...
🐍 Python tutorial playlist: bit.ly/python3p...
💻 Machine learning concepts playlist: bit.ly/mlconcepts
✍🏼 NLP concepts playlist: bit.ly/nlpconcepts
🕸️ Web scraping tutorial playlist: bit.ly/webscrap...
Make a small donation to support the channel 🙏🙏🙏:-
🆙 UPI ID: hackersrealm@apl
💲 PayPal: paypal.me/hack...
#zigzagsequence #hackerranksolutions #hackersrealm #hackerrank #python #debugging #howtosolve #problemsolving #tutorial #algorithms #datastructures #programming #coding #codinginterview #education #aswin

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@mookeeman
@mookeeman 2 года назад
Thanks, this is great. Had to check your solution, as it wouldn't accept mine, despite the output was correct. Apparently, it was because I also optimized in line 8 replacing >= with > , as there is no need to swap an element with itself when indices are equal. That violated the three lines modification constraint.
@vinci_irl
@vinci_irl 2 года назад
Isn't [1,2,5,4,3] the smallest zig-zag sequence lexicographically?
@pavitrasingh2292
@pavitrasingh2292 Год назад
thank you sir
@leonidasastoxos919
@leonidasastoxos919 10 месяцев назад
Greeting, great video. Do you have any suggestions on how to do that with PhP?
@YasinAnatoli
@YasinAnatoli Год назад
Mil GRACIAS
@TheRottenMindOfFunky
@TheRottenMindOfFunky Год назад
Does anyone know why it doesn't have any code in other languages like Javascript? there is no 'code' to fix
@HackersRealm
@HackersRealm Год назад
In earlier days of hackerrank, there won't be any code for any languages. It's much better if we take the input from the console and solve it, so we can do some customization on the input level itself...
@gregoriofaerman
@gregoriofaerman 2 года назад
i don't understand why you decrement by 2 (3:19)
@leonardorutz
@leonardorutz 2 года назад
using the given example 1 2 3 4 5 6 7 to explain - it's because you have already switched the middle element [3]=4 with the last one [6]=7 at line 3, and if you keep decrement by 1 (ed = n -1) you will switch the last element again and its not what we want, we wanna switch [4]=5 with [5]=6
@swastik07
@swastik07 Год назад
The solution is not working
@HackersRealm
@HackersRealm Год назад
As you could see, it's working in the video. Please check for any logical errors and print statements to debug the code
@swastik07
@swastik07 Год назад
@@HackersRealm ok