Aleksei Zabrodskii
Aleksei Zabrodskii
  • Видео 105
  • Просмотров 186 765

Видео

2024 Day 3 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
Просмотров 8321 день назад
Playlist: ruclips.net/p/PLEEAlBYTPfZhK-wDNfjAJ5uR53i2QE17l&si=rg1hUsTMowqjd1Kt Code: github.com/elmigranto/aoc-ios-swift Broadcasted live on Twitch - Watch live at www.twitch.tv/elmigranto
2024 Day 1 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
Просмотров 19621 день назад
Playlist: ruclips.net/p/PLEEAlBYTPfZhK-wDNfjAJ5uR53i2QE17l&si=rg1hUsTMowqjd1Kt Code: github.com/elmigranto/aoc-ios-swift Broadcasted live on Twitch - Watch live at www.twitch.tv/elmigranto
0x58 🐶 Photo upload from scratch, part 15: ok, actually crop your photos
Просмотров 6821 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x57 🐶 Photo upload from scratch, part 14: crop your photos!
Просмотров 7821 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x56 🐶 Photo upload from scratch, part 13: where we defeat trigonometry (by removing it)
Просмотров 3621 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x55 🐶 Photo upload from scratch, part 12: aspect ratio aware resizing gets defeated by trigonometry
Просмотров 5021 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x54 🐶 Photo upload from scratch, part 11: extract calculations into pure functions
Просмотров 1921 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x53 🐶 Photo upload from scratch, part 10: important point about points that starts refactoring
Просмотров 8721 день назад
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
Applied to be a C# Developer: Coding Challenge
Просмотров 3,4 тыс.Месяц назад
Applied to be a C# Developer: Coding Challenge
Applied to Tesla: Full Coding Challenge
Просмотров 177 тыс.Месяц назад
Applied to Tesla: Full Coding Challenge
0x50 🐶 Photo upload from scratch, part 7: move crop area itself or its corners
Просмотров 122Месяц назад
0x50 🐶 Photo upload from scratch, part 7: move crop area itself or its corners
0x51 🐶 Photo upload from scratch, part 8: exploring crop shapes
Просмотров 86Месяц назад
0x51 🐶 Photo upload from scratch, part 8: exploring crop shapes
0x52 🐶 Photo upload from scratch, part 9: generalising to multiple crop shapes
Просмотров 104Месяц назад
0x52 🐶 Photo upload from scratch, part 9: generalising to multiple crop shapes
0x4F 🐶 Photo upload from scratch, part 6: movable crop area
Просмотров 47Месяц назад
0x4F 🐶 Photo upload from scratch, part 6: movable crop area
0x4E 🐶 Photo upload from scratch, part 5: crop the image
Просмотров 62Месяц назад
0x4E 🐶 Photo upload from scratch, part 5: crop the image
0x4D 🐶 Photo upload from scratch, part 4: translating screen coordinates to image's
Просмотров 18Месяц назад
0x4D 🐶 Photo upload from scratch, part 4: translating screen coordinates to image's
0x4C 🐶 Photo upload from scratch, part 3: selecting a sub-rectangle
Просмотров 37Месяц назад
0x4C 🐶 Photo upload from scratch, part 3: selecting a sub-rectangle
0x4B 🐶 Photo upload from scratch, part 2: basic movable view
Просмотров 24Месяц назад
0x4B 🐶 Photo upload from scratch, part 2: basic movable view
0x4A 🐶 Photo upload from scratch, part 1: what we'll build
Просмотров 31Месяц назад
0x4A 🐶 Photo upload from scratch, part 1: what we'll build
0x49 🐶 Fixing the Dark Mode
Просмотров 95Месяц назад
0x49 🐶 Fixing the Dark Mode
0x48 🐶 Figuring the bug with Dark Mode out
Просмотров 16Месяц назад
0x48 🐶 Figuring the bug with Dark Mode out
0x47 🐶 Swift 6 Migration - Aftermath: It wasn't that bad, but I am tired…
Просмотров 35Месяц назад
0x47 🐶 Swift 6 Migration - Aftermath: It wasn't that bad, but I am tired…
0x46 🐶 Swift 6 Migration - Part 3: The App
Просмотров 662 месяца назад
0x46 🐶 Swift 6 Migration - Part 3: The App
0x45 🐶 Swift 6 Migration - Part 2: Backend Code
Просмотров 862 месяца назад
0x45 🐶 Swift 6 Migration - Part 2: Backend Code
0x44 🐶 Swift 6 Migration - Part 1: Woof Utility Library
Просмотров 952 месяца назад
0x44 🐶 Swift 6 Migration - Part 1: Woof Utility Library
0x43 🐶 Mark as read
Просмотров 422 месяца назад
0x43 🐶 Mark as read
0x42 🐶 Custom particles
Просмотров 192 месяца назад
0x42 🐶 Custom particles
0x041 🐶 Full screen "Thank you" notification in SwiftUI
Просмотров 1023 месяца назад
0x041 🐶 Full screen "Thank you" notification in SwiftUI
0x040 🐶 Swift UI Particle Effect (part 1)
Просмотров 213 месяца назад
0x040 🐶 Swift UI Particle Effect (part 1)

Комментарии

  • @BlueIsLeet
    @BlueIsLeet 20 часов назад

    16:20 that's why you use a seperate computer

  • @MargaretPaul-x4s
    @MargaretPaul-x4s День назад

    Thanks for the analysis! Could you help me with something unrelated: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). What's the best way to send them to Binance?

  • @harshnj
    @harshnj 2 дня назад

    Interesting. I Like It!

  • @Aavvaaddaa
    @Aavvaaddaa 2 дня назад

    How do you not get in any trouble by publishing these videos?

  • @AllanGonçalvesGomesOricil
    @AllanGonçalvesGomesOricil 2 дня назад

    I solved the shirt problem using JS and without creating a tree function lowestCost(redCosts, greenCosts, blueCosts){ function getColorCostForDay(color, day){ if(color === "r"){ return redCosts[day]; } if(color === "g"){ return greenCosts[day]; } if(color === "b"){ return blueCosts[day]; } } const days = redCosts.length; // NOTE: pre-computed to avoid calculating it on every iteration const oppositeColorsByColor = { "r": ["g", "b"], "g": ["r", "b"], "b": ["r", "g"] } // NOTE: initialize queue with the 3 possible first nodes to be visited const queue = [ { color: "r", cost: redCosts[0], p: [], total: 0, }, { color: "g", cost: greenCosts[0], p: [], total: 0, }, { color: "b", cost: blueCosts[0], p: [], total: 0, } ]; let smallestCost = Infinity; let smallestPath; while(queue.length > 0) { const node = queue.shift(); const computedPath = [...node.p, node.color]; const computedTotal = node.total + node.cost; // NOTE: when in the last level (day), start computing the smallest path if(computedPath.length === days){ if(computedTotal < smallestCost){ smallestCost = computedTotal; smallestPath = computedPath; } } // NOTE: while not in the last level (day), queue visits else { const oppositeColors = oppositeColorsByColor[node.color]; oppositeColors.forEach((color) => { queue.push({ color, cost: getColorCostForDay(color, computedPath.length), p: computedPath, total: computedTotal, }); }); } } return smallestPath; } function main(){ const redCosts = [4,6,4]; const greenCosts = [3,5,7]; const blueCosts = [1,1,1]; console.log(lowestCost(redCosts, greenCosts, blueCosts)); } main();

  • @Bob-kw4sq
    @Bob-kw4sq 3 дня назад

    Great work!

  • @CodeExplode-yx9th
    @CodeExplode-yx9th 4 дня назад

    For the closest temp question I came up with; var closest = temperaturesArray .Select(n => (Temperature: n, AbsoluteValue: Math.Abs(n))) .GroupBy(x => x.AbsoluteValue) .OrderBy(x => x.Key) .First() .Max(x => x.Temperature);

  • @ErickArmijos-c4x
    @ErickArmijos-c4x 7 дней назад

    Your problem-solving skills are amazing! Many people think that being a good programmer means never asking for help or looking things up, but you're proof that real programming is about finding solutions however you can. Haha, shoutout to you-great videos! :]

  • @jimbob2088
    @jimbob2088 8 дней назад

    Ahhhh had me for a while there. I get it this got to be a parody of all those serious test interview videos out there…right?? If not, brother I hope you quit the drugs and complete your rehabilitation journey. Probably didn’t help that I just commented to help you earn more money…

  • @PorkChopify
    @PorkChopify 10 дней назад

    Did you stay sober today?

  • @littlebrit
    @littlebrit 10 дней назад

    I like those challenges, but where can I get a link to those tests ?

  • @sanyisasha
    @sanyisasha 11 дней назад

    "This is.. this is goind to fire me later" :D

  • @jivedude
    @jivedude 12 дней назад

    Easiest sql query ever

  • @Glib-n5i
    @Glib-n5i 13 дней назад

    This is surprisingly easy, I was expecting the stuff you see on google competitions 😂

    • @mrX666-s9p
      @mrX666-s9p 7 дней назад

      Sure is easy when you just comment on youtube clown

    • @Ripcraze
      @Ripcraze 7 дней назад

      Waiting to see you getting a new job then.

    • @Glib-n5i
      @Glib-n5i 6 дней назад

      @@Ripcraze they wouldn't consider me for a job, and I got a 6 year contract so I can't even try it out atm.

    • @Ripcraze
      @Ripcraze 4 дня назад

      @@Glib-n5i Reply in 6 years.

  • @genocidoll
    @genocidoll 13 дней назад

    this gave me confidence to try applying to some stuff sometime, ppl make it seem like the questions they ask are impossible

  • @cheapbongs
    @cheapbongs 14 дней назад

    pretty insane these challenges are unpaid. huge waste of time if you get rejected

  • @googleone5867
    @googleone5867 15 дней назад

    That second bullet on the SQL task is an absolute clusterfuck

  • @Nova-m8d
    @Nova-m8d 15 дней назад

    I took a screenshot of the instruction page, used an online OCR, pasted the text into ChatGPT and manually input the Chat code into the Tesla code editor.

    • @RockTo11
      @RockTo11 11 дней назад

      You're why the majority of software is falling apart.

    • @Nova-m8d
      @Nova-m8d 11 дней назад

      @@RockTo11 How does using all the available resources make software fall apart?

    • @genocidoll
      @genocidoll 10 дней назад

      ​@@Nova-m8d Cuz people aren't even trying to think of solutions anymore, they're just worried about the easiest way where they have to put the least effort, you think engineers at Nasa who wrote the Apollo 11 software in assembly with 4kb of ram were asking "Hey ChatGpt, can you solve this problem for me?", if you can't do something like solving a simple algorithm without asking an AI for help, then you should've just gone for Gastronomy as a career.

    • @Nova-m8d
      @Nova-m8d 10 дней назад

      @@genocidoll Ok but what If finding a solution to efficiently solve the hiring process was the actual challenge instead of the coding question itself?

    • @genocidoll
      @genocidoll 10 дней назад

      @@Nova-m8d Should be, never said this is a good way to hire. But if the first impression you give of yourself is using ChatGPT for an easy algorithm you're not making yourself look any better.

  • @piotrek7633
    @piotrek7633 18 дней назад

    This looks like something from highschool wut

  • @Gius3pp3K
    @Gius3pp3K 18 дней назад

    Dude doesn’t even know DATEDIFF lol. Warra scrub 😂😂😂

    • @elmigranto
      @elmigranto 18 дней назад

      Haha, true! I find solace in being able to google right questions :)

  • @KhanCryptoOfficial
    @KhanCryptoOfficial 19 дней назад

    love it

  • @exhilex
    @exhilex 19 дней назад

    did you get the job?

  • @dolessaymore
    @dolessaymore 19 дней назад

    Interesting. My challenge was determining which folder to put my rejection email in.

    • @bryanmyers711
      @bryanmyers711 13 дней назад

      HAHAHAH DUDEEE, this so fking funny for no reason, good joke😂😂

  • @user-pe9qg3hg3k
    @user-pe9qg3hg3k 20 дней назад

    i opened this expecting it to be near impossible.. but looked at it and was like.. o.o

  • @hotdogs95
    @hotdogs95 20 дней назад

    for number 2: cant we just get the smallest absolute value within the array and then check if that value is in the original array? if it is then return that number if not return a negative version of that number ?

  • @DrAlicia
    @DrAlicia 22 дня назад

    did you get the job

    • @elmigranto
      @elmigranto 21 день назад

      I decided not to pursue this further after passing this screening.

    • @danielecantini677
      @danielecantini677 6 дней назад

      @@elmigranto Why, if I can ask?

  • @Krapciuch
    @Krapciuch 23 дня назад

    This is the easiest way to get banned by the company, good luck - I would ban you instantly from being hired as you usually sign some kind of nda by launching the tests. That is also a test - if you cannot keep company secrets... you're bad hire.

  • @NickPlaysR6
    @NickPlaysR6 23 дня назад

    1:39 bro your history. every day is a new day man! Much love

    • @TheGajos
      @TheGajos 19 дней назад

      looks like troll

    • @fish4096
      @fish4096 19 дней назад

      My history woulda been filled with naughty stuff

    • @nolanolanolanolan
      @nolanolanolanolan 18 дней назад

      number 35

    • @cryptomaniac3885
      @cryptomaniac3885 8 дней назад

      damn, i seen your comment then went back than realized what you were referring too. Now I'm depressed considering I haven't skipped any days in idk how long.

  • @matthewkk5087
    @matthewkk5087 23 дня назад

    where do u find that jobs? when I send it in linkedin some company says that im outside of their country :/

  • @better_dead_than_red
    @better_dead_than_red 24 дня назад

    Привет Great video, especially the back story >1:45 Today I'll be sober >4:35 Cut off the girl from the photo, left only yourself

  • @d1ckyj0nes
    @d1ckyj0nes 24 дня назад

    Gotta make it easy as to not discriminate Pajeet

  • @yousefsameh4622
    @yousefsameh4622 24 дня назад

    Keep the great work! I was wandering if you used DP in Q2 as I can see that the code is a simple backtrack without DP!

  • @szymoniak75
    @szymoniak75 25 дней назад

    Never understood the point of this type of questions but to each his own I guess. I always give more realistic tasks on interviews.

    • @Krapciuch
      @Krapciuch 23 дня назад

      they are stupid crap us companies think get them the best talent - while it gets them the ones just used courses or chat gpt or some book to learn how to pass the tests... us companies thinks otherwise ;) they aren't the most intelligent bunch, just have a a lot of money and power ;)

    • @carguy-xv2cl
      @carguy-xv2cl 21 день назад

      They can be realistic if your working on more low level stuff or libraries where performance is critical.

    • @szymoniak75
      @szymoniak75 20 дней назад

      @@carguy-xv2cl No, not really. Proper algorithms and data structures are always important, but that's not the only thing that matters for performance. And still these tasks are made up problems that you'll probably never encounter when writing real code

    • @carguy-xv2cl
      @carguy-xv2cl 20 дней назад

      @@szymoniak75 I agree for web dev.

    • @marevixopol
      @marevixopol 5 дней назад

      Can you give example of task you give?

  • @lazyman2451
    @lazyman2451 26 дней назад

    bro you just solved one of their biggest bugs in their system. 😂

  • @Vinicius-go6wh
    @Vinicius-go6wh 27 дней назад

    Both programing problems are sort of classic dynamic programming with a little twist. Good questions.

  • @0xc0ffee_
    @0xc0ffee_ 28 дней назад

    You should have been rejected and reported just because you shared the challenge online

    • @gerritlikestohike
      @gerritlikestohike 26 дней назад

      Why so serious?

    • @0xc0ffee_
      @0xc0ffee_ 26 дней назад

      @ he violated the trust agreement with the company, why would you ever hire someone like this?

    • @gerritlikestohike
      @gerritlikestohike 25 дней назад

      @@0xc0ffee_ He didnt want to work for Tesla. So where is the damage and whom do you want him to report to?

    • @0xc0ffee_
      @0xc0ffee_ 25 дней назад

      @@gerritlikestohike The damage is the question has been exposed to the internet and they can no longer use it for interviewing people. Furthemore if he doesn't want to work there he wasted the hiring people's time. I find this behaviour honestly disgusting

    • @tommyflynn466
      @tommyflynn466 24 дня назад

      0xc0ffee_ employers waste far more applicant time than visa versa. who cares about the feelings of a soulless HR employee who will put you through 5 rounds of interviews when they already preselected a candidate, then ghost you after instead of telling you that you were rejected. people should intentionally try and make the lives of HR employees hell.

  • @aligcsy7256
    @aligcsy7256 28 дней назад

    my goat

  • @e.denrico
    @e.denrico 28 дней назад

    One day, I hope to be as good as you are.

  • @akhildesaii
    @akhildesaii 29 дней назад

    For #1 you could use a heap, and since it is only 3 elements we could maintain 3 heaps. Each iteration we pop off each heap, O(3logn), if the minimum is the same as the previous day out of what we popped from the 3 heaps compare the other 2 elements popped and choose the minimum. Add back to the respective heaps whatever element we didn't choose. The complexity would be O(nlogn)!

    • @abdurrehman6597
      @abdurrehman6597 27 дней назад

      there is a O(n) dp solution tho

    • @Vinicius-go6wh
      @Vinicius-go6wh 27 дней назад

      @@abdurrehman6597 I don't understand how this would work since you cannot go back and buy a shirt froma previous day, they need to be chosen optimally

    • @mrgenetics4063
      @mrgenetics4063 25 дней назад

      Thanks Mr. Quick-E mart guy

    • @jadedplover1851
      @jadedplover1851 23 дня назад

      this would not work as it doesn't account for consecutive sales any more for example consider if the two lowest blue shirt sales were back to back, this would mean that either we would eventually end up choosing two consecutive days, OR only one blue shirt could ever be chosen to get this solution to work you would need to store the positions of each shirt alongside the sale price and then swap shirts out into another set of 3 heaps (6 heaps total) and consider all 9 possibilities (3 choices x 3 swaps) and find the minimum, it would work but it would be nlog(9)n worst case, not to mention the overhead of setting up and maintaining heaps in my experience has always been a hefty task and tends to lose to simpler sorting or dp solutions because of it in practical senses heaps only really beat other solutions (even sometimes worse bigOh solutions) in scenarios where the problem input is stateful, in other words where the input changes over runtime and since heaps are persistent in their calculation they tend to have an edge over non persistent solutions

  • @resresres1
    @resresres1 Месяц назад

    i didn't watch the whole thing, but it's funny how the 2nd tutorial question can be solved with a single line in python: closest_to_zero = min(numbers, key=lambda x: (abs(x), -x)) if numbers else 0 Also, with the SQL queries... AI is actually exceedingly good with creating SQL queries if you give it the exact parameters you need... surprised those type of questions still exist because of AI.

    • @tubaeseries5705
      @tubaeseries5705 29 дней назад

      it can also be solved with a single line in c# ts.Where(x => Math.Abs(x) == Math.Abs(ts.MinBy(y => Math.Abs(y)))).DefaultIfEmpty().Max();

    • @byejason
      @byejason 13 дней назад

      @@tubaeseries5705 Unless the compiler does something smart, that's super inefficient. This will be evaluated for every element in the list Math.Abs(ts.MinBy(y => Math.Abs(y))) At the very least calculate that once and re-use the result.

    • @tubaeseries5705
      @tubaeseries5705 12 дней назад

      @@byejason it will be inefficient, so what? the point of making LINQ expressions like that is just for a fun challenge, not to use it in actual production code

    • @byejason
      @byejason 12 дней назад

      @@tubaeseries5705 Fair enough. I just want to make the point that in an a coding evaluation that would not be a good code to submit.

  • @Vuden13
    @Vuden13 Месяц назад

    Can please do more of these technical interview type videos!?

  • @Proooo1
    @Proooo1 Месяц назад

    public int MinValue(List<int> values) { if (values == null || values.Count == 0) return 0; var minValue = values.Min(Math.Abs); return values.Contains(minValue) ? minValue : -minValue; }

    • @Lot1one1x
      @Lot1one1x 22 дня назад

      this traverses the array twice

  • @deepanshu6751
    @deepanshu6751 Месяц назад

    Ok the Last question or it was the First question was very simple if you just went through the loop and each time you find the minimum of the three you make the next element in that array as INT_MAX so everytime you would consider the minimum from the other two for the next day and just repeat it till the end.

    • @elmigranto
      @elmigranto Месяц назад

      That’s a neat idea!

    • @abdullahcg9679
      @abdullahcg9679 Месяц назад

      I think greedy doesnt work here Case: B[99,1] R[100,100] G[100,100] Correct solution is to do dp

    • @abdurrehman6597
      @abdurrehman6597 27 дней назад

      nope that would fail

  • @AustinDoesDesign
    @AustinDoesDesign Месяц назад

    I wouldn’t contribute anything to Elon musk

    • @swagatadhara4257
      @swagatadhara4257 Месяц назад

      sure!😂

    • @szymoniak75
      @szymoniak75 25 дней назад

      for enough money you'd suck his toes

    • @AhshsHahshs
      @AhshsHahshs 24 дня назад

      Contribute to bill g and soros then subservient

    • @MangyPL
      @MangyPL 20 дней назад

      @@AhshsHahshs Youre a turd if you think Elon is much better than gates or Soros. None of them have the best interest of the people in mind.

    • @AustinDoesDesign
      @AustinDoesDesign 13 дней назад

      @@AhshsHahshs contribute to the nazi you fascist

  • @stevenmendez907
    @stevenmendez907 Месяц назад

    how did you apply? Where do they post their positions?

    • @elmigranto
      @elmigranto Месяц назад

      @@stevenmendez907 search for Tesla careers :)

  • @VLONE-g5l
    @VLONE-g5l Месяц назад

    thats nice but stop pasting

  • @the10xdev
    @the10xdev Месяц назад

    12 mins for the SQL question? Damn.

  • @Apoz
    @Apoz Месяц назад

    Might be a bit of an off-topic, but I noticed you're often halted without thinking. Many of those halts are caused by the lack of your mouse accuracy in addition to your slow type speed. They seem to delay you a lot. I think once you improve that, find a good mouse and dpi settings and perhaps revisit your key typing manners, you will have a lot more time to relax during coding. We call it "Idle strain", idle time that costs energy while being unproductive.

  • @mrbro9675
    @mrbro9675 Месяц назад

    That's it? I could probably do all of it and I am just in high school

    • @mrbro9675
      @mrbro9675 Месяц назад

      this is literally just twice as hard as an average ending exam in Poland. Americans, no wonder why you can't get a job in IT anymore.

    • @mrbro9675
      @mrbro9675 Месяц назад

      I could do BTree with java when I wasn't even in highschool yet

    • @feew3454
      @feew3454 Месяц назад

      @@mrbro9675 And we do that on A4 piece of paper ;)

    • @nevillemathew6521
      @nevillemathew6521 Месяц назад

      You know it's just the beginning rounds right? For sure gets harder each round.

    • @symbol767
      @symbol767 Месяц назад

      @@mrbro9675 You one of those lame dorky kids online who likes to flex "When I was a preschooler I was solving binary tree questions for fun teehee 🤓🤓🤓" Man shut up...

  • @gianmarcopicarella7390
    @gianmarcopicarella7390 Месяц назад

    Nowadays passing the cv screening is already kinda difficult. It would be interesting to see how you structured your cv!

    • @elmigranto
      @elmigranto Месяц назад

      Love this idea for a video! Before I make that: besides experience, I had couple of short paragraphs per topic. Topics were: my work personality, what I am good at, kind of company I look for and what I think is the best team structure.