Тёмный

Zig Zag Sequence | HackerRank | Solution Explained - Python 

Tech and Navid
Подписаться 756
Просмотров 9 тыс.
50% 1

Zig Zag Sequence | HackerRank | 1 Week Preparation Kit
Thanks for watching! Please hit the like and subscribe! It would mean a lot :)
Social Media
_______________________
Linkedin - / navidmisaghian
Discord - honcho#5006
_______________________
#leetcode #leetcodequestionandanswers #programming #coding #python #interviewpreparation #faang

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

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@mahdibakkar7446
@mahdibakkar7446 Год назад
The methodology (Your analysis) is amazing!
@bhalatr9098
@bhalatr9098 Год назад
Thanks a lot @techandnavid8449, I was literally gone mad on what needs to be updated/modified. You saved my day and here is the Java implementation who're in need of may be: import java.util.*; import java.lang.*; import java.io.*; import java.math.*; public class Main { public static void main (String[] args) throws java.lang.Exception { Scanner kb = new Scanner(System.in); int test_cases = kb.nextInt(); for(int cs = 1; cs
@The_Special_Educator
@The_Special_Educator Год назад
Thanks for explaining what a ZigZag is. I had no idea what the explanation was asking. Trying on my own before watching the solution..
@guangbinjin4884
@guangbinjin4884 Год назад
me neither! thanks a lot!
@nacer-eddinekheireddine4678
Firstly thank you so much for your help, when I came to see your video as soon as I started watching I said to my self “hell nah I'll give it another try” but this time I used I paper to debug my code, hopefully I found the solution and after that I came back here to see your solution and it was the same I just changed "mid = int((n + 1) / 2)" to "mid = int(n / 2)" rather than "mid = int((n + 1) / 2) - 1" however, thank you so much for your help because sometimes all we need is to fully understand the problem itself and that what I love the most about your videos (explanations)
@amiroacid
@amiroacid 11 месяцев назад
I literally try to just look for your videos because your explanation is elite. Thank you
@InaCecoi
@InaCecoi 4 месяца назад
Thank you very much for this videos. They are really amazing
@techandnavid
@techandnavid 3 месяца назад
Thank you!
@DanielAzubuine
@DanielAzubuine Год назад
Thank you so much Navid for the explanations
@user-ly5us3yu7w
@user-ly5us3yu7w 10 месяцев назад
You saved my day! Bless you sir
@amanthanvi
@amanthanvi 2 года назад
First
@sreelakshmirajesh1855
@sreelakshmirajesh1855 10 месяцев назад
I got same output but showing wrong answer for this method
@syedmustafaqamar
@syedmustafaqamar 10 месяцев назад
reset the code and only modify the lines shown in the tutorial, adding new lines or removing them isn't allowed.
@oTzRxz
@oTzRxz Год назад
Hey Guys, can someone explain to me why this is wrong? def findZigZagSequence(a, n): a.sort() if len(a)%2==0: mid = int((n)/2) - 1 else: mid = int((n + 1)/2) - 1 st = mid ed = n-1 while(st
@oTzRxz
@oTzRxz Год назад
Okay, so the reason is I "modified it too much" apparently if you modify more than 3 lines of code. it fails...
Далее
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
5 Useful F-String Tricks In Python
10:02
Просмотров 305 тыс.
The Midpoint Circle Algorithm Explained Step by Step
13:33
Debugging 101: Replace print() with icecream ic()
12:36
Zig Zag Array (spiral order array)
10:44
Просмотров 40 тыс.
touristream 018: Codeforces Round 769 (Div. 2)
1:57:28
Просмотров 66 тыс.