- Видео 105
- Просмотров 186 765
Aleksei Zabrodskii
Нидерланды
Добавлен 17 янв 2008
Hi! I'm Aleksei, a software developer with over a decade of experience.
2024 Day 2 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
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
Code: github.com/elmigranto/aoc-ios-swift
Broadcasted live on Twitch - Watch live at www.twitch.tv/elmigranto
Просмотров: 299
Видео
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
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
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)
16:20 that's why you use a seperate computer
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?
Interesting. I Like It!
How do you not get in any trouble by publishing these videos?
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();
Great work!
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);
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! :]
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…
Did you stay sober today?
I like those challenges, but where can I get a link to those tests ?
"This is.. this is goind to fire me later" :D
Easiest sql query ever
This is surprisingly easy, I was expecting the stuff you see on google competitions 😂
Sure is easy when you just comment on youtube clown
Waiting to see you getting a new job then.
@@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.
@@Glib-n5i Reply in 6 years.
this gave me confidence to try applying to some stuff sometime, ppl make it seem like the questions they ask are impossible
pretty insane these challenges are unpaid. huge waste of time if you get rejected
That second bullet on the SQL task is an absolute clusterfuck
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.
You're why the majority of software is falling apart.
@@RockTo11 How does using all the available resources make software fall apart?
@@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.
@@genocidoll Ok but what If finding a solution to efficiently solve the hiring process was the actual challenge instead of the coding question itself?
@@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.
This looks like something from highschool wut
Dude doesn’t even know DATEDIFF lol. Warra scrub 😂😂😂
Haha, true! I find solace in being able to google right questions :)
love it
did you get the job?
Interesting. My challenge was determining which folder to put my rejection email in.
HAHAHAH DUDEEE, this so fking funny for no reason, good joke😂😂
i opened this expecting it to be near impossible.. but looked at it and was like.. o.o
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 ?
did you get the job
I decided not to pursue this further after passing this screening.
@@elmigranto Why, if I can ask?
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.
1:39 bro your history. every day is a new day man! Much love
looks like troll
My history woulda been filled with naughty stuff
number 35
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.
where do u find that jobs? when I send it in linkedin some company says that im outside of their country :/
Привет 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
Gotta make it easy as to not discriminate Pajeet
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!
Never understood the point of this type of questions but to each his own I guess. I always give more realistic tasks on interviews.
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 ;)
They can be realistic if your working on more low level stuff or libraries where performance is critical.
@@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
@@szymoniak75 I agree for web dev.
Can you give example of task you give?
bro you just solved one of their biggest bugs in their system. 😂
Both programing problems are sort of classic dynamic programming with a little twist. Good questions.
You should have been rejected and reported just because you shared the challenge online
Why so serious?
@ he violated the trust agreement with the company, why would you ever hire someone like this?
@@0xc0ffee_ He didnt want to work for Tesla. So where is the damage and whom do you want him to report to?
@@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
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.
my goat
One day, I hope to be as good as you are.
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)!
there is a O(n) dp solution tho
@@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
Thanks Mr. Quick-E mart guy
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
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.
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();
@@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.
@@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
@@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.
Can please do more of these technical interview type videos!?
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; }
this traverses the array twice
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.
That’s a neat idea!
I think greedy doesnt work here Case: B[99,1] R[100,100] G[100,100] Correct solution is to do dp
nope that would fail
I wouldn’t contribute anything to Elon musk
sure!😂
for enough money you'd suck his toes
Contribute to bill g and soros then subservient
@@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.
@@AhshsHahshs contribute to the nazi you fascist
how did you apply? Where do they post their positions?
@@stevenmendez907 search for Tesla careers :)
thats nice but stop pasting
12 mins for the SQL question? Damn.
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.
That's it? I could probably do all of it and I am just in high school
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.
I could do BTree with java when I wasn't even in highschool yet
@@mrbro9675 And we do that on A4 piece of paper ;)
You know it's just the beginning rounds right? For sure gets harder each round.
@@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...
Nowadays passing the cv screening is already kinda difficult. It would be interesting to see how you structured your cv!
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.