- 100
- 123 428
Aleksei Zabrodskii
Netherlands
Приєднався 17 січ 2008
Hi! My name is Aleksei. I am a software developer with over a decade of experience. Here, I am building an iOS app mostly from scratch, explaining my thought process as I go.
02 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
Broadcasted live on Twitch -- Watch live at www.twitch.tv/elmigranto
Переглядів: 130
Відео
03 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
Переглядів 5414 годин тому
Broadcasted live on Twitch Watch live at www.twitch.tv/elmigranto
01 AoC-iOS.swift 🎄 Advent of Code, but it's an app!
Переглядів 10714 годин тому
Broadcasted live on Twitch Watch live at www.twitch.tv/elmigranto
0x58 🐶 Photo upload from scratch, part 15: ok, actually crop your photos
Переглядів 3714 годин тому
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!
Переглядів 4514 годин тому
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)
Переглядів 2014 годин тому
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
Переглядів 3914 годин тому
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
Переглядів 1314 годин тому
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
Переглядів 7414 годин тому
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,1 тис.Місяць тому
See how I did in a real-life coding challenge with no preparation except over a decade of experience building actual products. Broadcasted live on Twitch at www.twitch.tv/elmigranto
Applied to Tesla: Full Coding Challenge
Переглядів 117 тис.Місяць тому
See how I did in a real-life coding challenge after not touching these kinds of problems since high school and with no preparation except over a decade of experience building actual products. Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x50 🐶 Photo upload from scratch, part 7: move crop area itself or its corners
Переглядів 121Місяць тому
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x51 🐶 Photo upload from scratch, part 8: exploring crop shapes
Переглядів 83Місяць тому
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x52 🐶 Photo upload from scratch, part 9: generalising to multiple crop shapes
Переглядів 99Місяць тому
Real iOS app and its backend from scratch 🐶 Swift and SwiftUI Broadcasted live on Twitch at www.twitch.tv/elmigranto
0x4F 🐶 Photo upload from scratch, part 6: movable crop area
Переглядів 45Місяць тому
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
Переглядів 34Місяць тому
0x4C 🐶 Photo upload from scratch, part 3: selecting a sub-rectangle
0x4B 🐶 Photo upload from scratch, part 2: basic movable view
Переглядів 22Місяць тому
0x4B 🐶 Photo upload from scratch, part 2: basic movable view
0x4A 🐶 Photo upload from scratch, part 1: what we'll build
Переглядів 26Місяць тому
0x4A 🐶 Photo upload from scratch, part 1: what we'll build
0x48 🐶 Figuring the bug with Dark Mode out
Переглядів 14Місяць тому
0x48 🐶 Figuring the bug with Dark Mode out
0x47 🐶 Swift 6 Migration - Aftermath: It wasn't that bad, but I am tired…
Переглядів 34Місяць тому
0x47 🐶 Swift 6 Migration - Aftermath: It wasn't that bad, but I am tired…
0x46 🐶 Swift 6 Migration - Part 3: The App
Переглядів 59Місяць тому
0x46 🐶 Swift 6 Migration - Part 3: The App
0x45 🐶 Swift 6 Migration - Part 2: Backend Code
Переглядів 81Місяць тому
0x45 🐶 Swift 6 Migration - Part 2: Backend Code
0x44 🐶 Swift 6 Migration - Part 1: Woof Utility Library
Переглядів 93Місяць тому
0x44 🐶 Swift 6 Migration - Part 1: Woof Utility Library
0x041 🐶 Full screen "Thank you" notification in SwiftUI
Переглядів 942 місяці тому
0x041 🐶 Full screen "Thank you" notification in SwiftUI
0x040 🐶 Swift UI Particle Effect (part 1)
Переглядів 202 місяці тому
0x040 🐶 Swift UI Particle Effect (part 1)
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
Thanks for sharing, this was great
did you get the job?
Interesting. My challenge was determining which folder to put my rejection email in.
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.
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
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.
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();
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.
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.
The last question is a good example of not giving adequate time to understanding the question. At first I thought it was matrix traversal type question, but since for each day there are only three options (and one is excluded based upon the previous day), I don't think it needs more than one simple loop, but I haven't fully worked it out past this hunch.
it's actually a lot simpler than it seems, I found it much easier than the second question, the trick is realising that the options are either, min green/blue + if red shirt was bought today, min blue/red + if green shirt was brought today and min red/green + if blue shirt was brought today, that way you don't even need to track anything other than 3 values in each iteration giving you constant space and linear time comp, you just recalculate those 3 values each iteration and take the min in the final iteration (I probably explained it really badly but yeah, 3 options each day based on 2 of the previously stored options each)
@@jadedplover1851 Picking the min on a given day doesn't guarantee getting the best answer. r = [1, 1], g = [2, 100], b = [2, 100] Choosing r on day 1 yields 101. Choosing g or b yields 3.
min on temp to 0 with -5 and 5 expecting 5, you do minby(0) would return 2 numbers, so if you checked minby result >1, you just return abs(of [0] element which would always guarantee a positive of the two.
it truly doesn't matter - because if anything is absolute closer to zero just return that number - it's a trap question it doesn't matter if something negative was the same
@@Krapciuch 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
Love your content, keep posting <3
Keep posting? We are praying for Bro not to get sued
you aren't even allowed to use vim for this + cringe company -- skip
Big mad at Elon buying X still?
i hope you dont get sued
W😮
Tesla questions are too much easy as it looks and u probably failed, may need try learn more about coding
@@ZoneVipHacking yea, always more to learn!
These questions have nothing to do with real coding. If you think they do, you need to learn more about coding. Before you try me I'm a software engineer at amazon 2 years in so far... I have not once used any of these type of coding problems to do my day to day job... its all trivia nonsense to pass the interviews for these companies...
thank you for sharing this - I watched the whole vid as if I were the taking the test xd
these problems are way easier than I expected, I was expecting some hardcore dynamic programming or graph coloring
its not competitive programming :v
@@banchanbet4524 exactly and any company asking those level of questions are morons... I've been at amazon as a software engineer for 2 years and never once used any of this nonsense I had to do on my interview in the day to day work... its useless and never used, hence why people forget most of it and have to re-study when they need to interview again
@@symbol767is recursion and backtracking used daily in devlopment
@@symbol767So they didn’t asked you such “hard” questions like that? Everyone tells opposite
agreed, although i do think that the second problem is def tricky if u havent studied knapsack kudos to aleksei for seeing the pattern, just needed the extra dimension!
jesus i aint ever getting a job ahaha
@@ioannisp5725 not with this attitude :)
did you get this job? 😮😊
@@jon-l4v I declined an invitation to the next round.
@@elmigranto why?? :(
@@ibrahimabusada2598 i don't want to work at Tesla, but I was curious if I can get into the door :)
@@elmigranto Legend! And all those spammers, that claim how easy those problems are, are crying in rage :)
The problems were not that hard to be honest.
What position/level did u apply for?
janitor
@@dvmso6099 bro i almost spat out my coffee
@@sandmasterful senior backend
@@dvmso6099 LMFAO
you think you are better than him...why the F are u saying LMAO...u stpd bich
man, you are really smart to do this just off the bat like this. I just did an assessment for an internal transfer and had 2 somewhat easy only to choke. i never felt so dumb and stupid.
Were you required to do it C#
For this position, yes.
you are hella dumb mate
"this get's me fired later .." :)