No video

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

  Рет қаралды 9,284

Hackers Realm

Hackers Realm

2 жыл бұрын

⭐️ 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/hackersrealm
🗓️ 1:1 Consultation with Me: calendly.com/hackersrealm/con...
📷 Instagram: / aswintechguy
🔣 Linkedin: / aswintechguy
🎯 GitHub: github.com/aswintechguy
🎬 Share: • 206 - Zig Zag Sequence...
⚡️ Data Structures & Algorithms tutorial playlist: bit.ly/dsatutorial
😎 Hackerrank problem solving solutions playlist: bit.ly/hackerrankplaylist
🤖 ML projects tutorial playlist: bit.ly/mlprojectsplaylist
🐍 Python tutorial playlist: bit.ly/python3playlist
💻 Machine learning concepts playlist: bit.ly/mlconcepts
✍🏼 NLP concepts playlist: bit.ly/nlpconcepts
🕸️ Web scraping tutorial playlist: bit.ly/webscrapingplaylist
Make a small donation to support the channel 🙏🙏🙏:-
🆙 UPI ID: hackersrealm@apl
💲 PayPal: paypal.me/hackersrealm
#zigzagsequence #hackerranksolutions #hackersrealm #hackerrank #python #debugging #howtosolve #problemsolving #tutorial #algorithms #datastructures #programming #coding #codinginterview #education #aswin

Пікірлер: 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
@YasinAnatoli
@YasinAnatoli Жыл бұрын
Mil GRACIAS
@leonidasastoxos919
@leonidasastoxos919 9 ай бұрын
Greeting, great video. Do you have any suggestions on how to do that with PhP?
@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
207 - Smart Number | Debugging | Hackerrank Solution | Python
4:06
Hackers Realm
Рет қаралды 2,1 М.
How I Would Learn Python FAST in 2024 (if I could start over)
12:19
Thu Vu data analytics
Рет қаралды 156 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 16 МЛН
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 28 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 126 МЛН
HackerRank Interview Prep - Problem 7: New Year Chaos
12:29
Brian Dyck
Рет қаралды 12 М.
Flipping the Matrix | HackerRank | Solution Explained - Python
11:38
Tech and Navid
Рет қаралды 31 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 233 М.
Zig Zag Sequence | HackerRank | Solution Explained - Python
8:15
Tech and Navid
Рет қаралды 8 М.
Why Do Bubbles Form In Glasses Of Water?
12:33
Joe Scott
Рет қаралды 81 М.
204 - Prime Dates | Debugging | Hackerrank Solution | Python
10:17
Hackers Realm
Рет қаралды 2 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 16 МЛН