Loops and Hash Maps Job Preparation Interview Question

  Рет қаралды 21,038

Lets Build That App

Lets Build That App

Күн бұрын

Пікірлер: 67
@MuhammadAli-zv5vz
@MuhammadAli-zv5vz 6 жыл бұрын
Thanks Sir.I got my first IOS developer job .Thanks for these kind of videos.you are great teacher Thanks again for these videos 😊😊😊
@alcprado
@alcprado 6 жыл бұрын
Thumbs up before watching the video because I know something awesome is about to come
@ayon3527
@ayon3527 6 жыл бұрын
I really appreciate your willingness and effort to share these kinds of lessons, helps a lot as a non CS graduate.
@adrienrudy8004
@adrienrudy8004 3 жыл бұрын
I guess Im asking the wrong place but does anyone know of a way to get back into an Instagram account..? I was dumb lost my login password. I appreciate any assistance you can give me!
@nathan43082
@nathan43082 6 жыл бұрын
I like your videos. Your presentation is straightforward and friendly. I am finally learning Swift, but with 35 years of programming experience under my belt, I tinkered a little. It looks like the code below would work as well instead of a hash map: let ch:Character = "7" let num = "0123456789".firstIndex(of: ch)?.encodedOffset “num” should be an optional Int and be 7. There may be an even simpler way to do this, but, again, just learning Swift here.
@sbassett11
@sbassett11 5 жыл бұрын
Thanks for the videos as always. this is how my nerdy self enjoys his Saturdays... Although I didn't like leaving the algorithm as is with it failing when entroducing letters. So I added an extra step before the for loop where im creating a new variable catching what comes back from let newNumericArray: [Int] = sampleString.compactMap { valueMap[$0] }... thus stripping out letters
@c9bd415
@c9bd415 6 жыл бұрын
Love these prep videos. Also your mic quality is amazing.
@amitjoshi5798
@amitjoshi5798 6 жыл бұрын
Thanks buddy. You are the torchbearer of all iOS developers across the globe. Thanks a ton for sharing this priceless informations & knowledge.
@_DeProgrammer
@_DeProgrammer 6 жыл бұрын
the "^" symbol is exclusive OR. if you have a binary value 01 and 10 you would get 11.
@dongshuowu3454
@dongshuowu3454 6 жыл бұрын
Nice to see another video. Thanks again for your wonderful content.
@mrmillmill
@mrmillmill 2 жыл бұрын
Incredible video!
@zb1123
@zb1123 6 жыл бұрын
Looking forward to more videos like this
@piotrhapanowicz1159
@piotrhapanowicz1159 6 жыл бұрын
Hi Brian, How about use reversed() before enumerated() the you can skip one line of code: for (i, c) in string.reversed().enumerated() { ... so "i" can starts from 0 for last element in array
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
This is something I should've thought of :)
@nickng8069
@nickng8069 6 жыл бұрын
which line of code would be skipped? please explain
@piotrhapanowicz1159
@piotrhapanowicz1159 6 жыл бұрын
@@nickng8069 You don't need to calculate exponent value, instead you can take index of reversed array as exponent: for (exponent, c) in string.reversed().enumerated() { if let value = valueMap[c] { total += NSDecimalNumber(decimal: Decimal(value) * pow(10, exponent)).intValue } }
@nickng8069
@nickng8069 6 жыл бұрын
@@piotrhapanowicz1159 thanks a lot, I understand now
@dominiquealexi
@dominiquealexi 5 жыл бұрын
I was searching in the comments for this! This is what I did :)
@MrJoeYellow
@MrJoeYellow 6 жыл бұрын
As always great video! Thanks Brian, your video and your course are awesome!!
@CuriosMindDIY
@CuriosMindDIY 6 жыл бұрын
Exactly what I needed, thank you so much Brian!
@Bhaukaal-YT-001
@Bhaukaal-YT-001 3 жыл бұрын
Cqn you please create a video on how diffable data source works?
@КристианБенуа
@КристианБенуа 6 жыл бұрын
I think there is much simpler implementation of your solution. for c in s { total*=10 total+=c-‘0’ } And that’s it
@ObtecularPk
@ObtecularPk 6 жыл бұрын
Or total = total*10 + c - '0' The nice one line
@ManishKumar-xw3gs
@ManishKumar-xw3gs 6 жыл бұрын
please make video on "How to build Audio Chat / Video Chat in iOS using WebRTC" using swift .because this thing kin new for some people.thank you . you have helped me alot already .
@djalfirevic
@djalfirevic 6 жыл бұрын
I would love to see, if possible, how would you approach on building the Twitter app profile page - that scrolling feature i.e. dynamic header. Could you make a tutorial on that?
@toastrecon
@toastrecon 6 жыл бұрын
Awesome, thanks Brian.
@jeffa.2378
@jeffa.2378 6 жыл бұрын
Great video. Many thanks!
@akramyounes2271
@akramyounes2271 6 жыл бұрын
hi Brain, i really waiting for your "Async Display Kit" iOS tutorial specially for loading list of images. thanks man.
@1303sasa
@1303sasa 6 жыл бұрын
Nice video as always, btw forEach can be used like this: string.enumerated().forEach { (i: Int, c: Character) in print(i, c) } cheers!
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
Oh hmm....not sure if this is better or not. Seems like some extra typing :)
@magic0x0
@magic0x0 6 жыл бұрын
Perfect 👌🏻 Thanks dude you’re awesome 😍
@ubaidillahahmad25
@ubaidillahahmad25 3 жыл бұрын
thank you
@FunkyHotDog
@FunkyHotDog 6 жыл бұрын
Great stuff! You might want to turn the bass down on your mic tho. Sounds kind of muffeled.
@nizz4m
@nizz4m 6 жыл бұрын
Great content as always 👍
@cachorrogarcia10
@cachorrogarcia10 3 жыл бұрын
How do you do to develop with a non-UI (no simulator attached) for testing codes?
@aliasadi2550
@aliasadi2550 6 жыл бұрын
i left a comment here yesterday but i can't find it now.anyway.... thumbs up for your great video as always. and one question for you Brian.as a swift developer who wants to learn android developing.what language do you prefer? Kotlin or ReactNative ?
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
I don’t have preferences, whatever gets the job done wins for me.
@smackaroony
@smackaroony 6 жыл бұрын
Spicy editing
@mrmillmill
@mrmillmill 2 жыл бұрын
Is hash map and hash table the same thing?
@dixiao8373
@dixiao8373 6 жыл бұрын
谢谢大佬 因为看你视频爱上 ios
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
学到东西就好了
@kevinvu2093
@kevinvu2093 6 жыл бұрын
Hey hey!
@JimmyCheng
@JimmyCheng 6 жыл бұрын
no explanation for why the first solution is wrong? can you do value*(10^^exponent)?
@bdaralan
@bdaralan 6 жыл бұрын
Ziqiang Cheng Cannot remember exactly, but I believe the `^` is used for other operation instead of power. We have to use `pow(_:,_:)` for exponent. Edit: as mentioned by @Phillip Carlino, the `^` is XOR (exclusive or) in Swift.
@android-iOS-tutorial
@android-iOS-tutorial 6 жыл бұрын
how you motivate yourself towards coding
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
I don’t really need motivation. This is really just a hobby of mine.
@Hamza-xc9kb
@Hamza-xc9kb 6 жыл бұрын
Please make a video about "Imposter syndrome" for developers 🙏🏻🙂
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
I think everyone gets imposter syndrome regardless of what position or title they’re in. What specifically bothers you about it?
@Hamza-xc9kb
@Hamza-xc9kb 6 жыл бұрын
Lets Build That App When I'm developing an app and something new comes in and I dont know anything about it eg. an Api or library. I feel like I'm the worst programmer after all these years I've been programming I dont even know this. People pay me for this and I have no idea what this new library is. And so on. This kind of "Imposter syndrom".. I've been into depression for weeks. I really want you to talk about this. You are experienced and you can guide better. I tried to cope it with "Beginner mindset". I just sat and said to myself that im a complete beginner and i should learn it from ground. This helps a bit. But not permanently.
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
Sure thing, we all feel this with new libraries. I simply let folks know that there will be a much needed week of ramp up and experimentation time before we get a useful prototype. No expectations will be too high this way.
@ciantim2996
@ciantim2996 6 жыл бұрын
Who can share that course for me?
@dilsmatchanov
@dilsmatchanov 6 жыл бұрын
All courses are in the description
@adamm3122
@adamm3122 6 жыл бұрын
I’ve searched everywhere for a good swift and Chromecast tutorial. Nothing. Hint hint ;)
@tomross4599
@tomross4599 6 жыл бұрын
Are you sure it’s called a Hash Map in Swift? Apple‘s website is calling it Dictionary as well.
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
Like was mentioned in the video, every other language calls it hash maps. You’ll sound rather strange in the world if you say dictionaries.
@tomross4599
@tomross4599 6 жыл бұрын
Lets Build That App I kind of agree, but this structure is called Dictionary in ObjC and Python as well. I think in PHP it’s an associative array. So if people think I sound strange they probably lack the experience and level of abstraction there. Always good to know that in CS the same concepts keep showing up under different names.
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
The generic term for this concept is usually Hash Maps since there almost always involves some hashing of the keys using an appropriate hashing function. Additional discussion goes into collision detection and resizing of your hash map collection when necessary. Finally there's also the study of optimizing your hash function such that you minimize collisions, improving efficiency of fetch/storing elements in the map. It's a very interesting study that takes into account a lot of things I rarely think about.
@rahmanatiqur2332
@rahmanatiqur2332 6 жыл бұрын
Android content please
@Dj_Realest
@Dj_Realest 5 жыл бұрын
func convert(string: String) -> Int { var Dictionary: [String : Int] = ["1337":1337] return (Dictionary[string] ?? 0) }
@mateo5677
@mateo5677 6 жыл бұрын
You lost me at import UIKit
@ots1166
@ots1166 6 жыл бұрын
First
@BBorn223
@BBorn223 5 жыл бұрын
For someone who doesn't get 1337, I think it means elite (1337 -> l33T -> LEET -> elite)
@lingbuqing
@lingbuqing 6 жыл бұрын
这个人是诈骗别人的,不要相信他
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
要诈骗谁呢 我也想知道
@ObtecularPk
@ObtecularPk 6 жыл бұрын
This is a joke, right? That's an interview question?
@LetsBuildThatApp
@LetsBuildThatApp 6 жыл бұрын
This is a very common interview question among other filter questions. You can find this easily by googling around.
Real World Interviews Qs: How to Implement Linked List?
29:54
Lets Build That App
Рет қаралды 18 М.
Mastering Generics: Is This The Most Advanced Swift Code You've Seen?
26:56
Lets Build That App
Рет қаралды 43 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 28 МЛН
When to Semaphore vs Dispatch Group! Careful Multithreaded Shared Resource
11:11
Filter, Map, Reduce - Swift - iOS Interview Questions
11:08
Sean Allen
Рет қаралды 54 М.
Weak and Unowned Self Closure Memory Leak Fixes
12:21
Lets Build That App
Рет қаралды 56 М.
Swift Animations: Facebook Shimmer using Gradient Masks
20:44
Lets Build That App
Рет қаралды 43 М.
System Design Interview Walkthrough: Design Twitter
23:04
Hello Interview - SWE Interview Preparation
Рет қаралды 61 М.
How to Learn to Code FAST (Do This or Keep Struggling)
11:00
Andy Sterkowitz
Рет қаралды 716 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 181 М.
Advanced Swift Generics: Best Solution to Eliminate Code Duplication!
17:18
Lets Build That App
Рет қаралды 38 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 82 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 28 МЛН