String to Integer (#atoi) and String to Float (atof) are very common interview questions. Although they are very simple to implement, there are some nice corner cases that anybody interviewing for a programing job should know.
In this video, my 11 year old daughter is tackling the "String to Integer" in Java. Watch her struggles and victory, as well as talks about validation, assumptions and corner cases.
Source code: https://github.com/AppliedCodingClub/...
Blog post: https://blog.appliedcoding.club/2021/...
A beginner learning to code will approach problems in different way than an advanced coder. They require more explanation, more research and their solution is more simple. They may miss a few corner cases or come up with a sub-optimal solution. No problem at all! I'll accept it :)
0:00 Let the giggles begin
0:23 Problem and solution approach
2:30 Coding time
2:56 Validation, assumptions and corner cases
5:19 Main algorithm
7:50 Alternative expression
8:45 Handling negative numbers
12:08 Debug time
13:52 Technical interview tips
#GirlsCanCode #Java #LearnToCode #CodingForKids #CodingForBeginners #LiveCoding #Coding
👨💻 About me
🖥 I am a software developer with more than 20 years of experience in the tech industry. I love to teach, debug problems and optimize my code for perfection.
📽 In my channel, you find videos describing how to solve coding problems, develop games, prep for job interviews and overall talk tech. I chose the name AppliedCoding, because I will teach you exactly that - applied coding - I show you how to analyze real problems, break them down into manageable chunks, come up with an algorithm, choose the right data structures, talk about the pros and cons… and only then code the solution.
*****
👉 Blog: https://blog.appliedcoding.club
👉 Instagram: / appliedcoding
👉 Facebook: / appliedcodingclub
👉 Github: https://github.com/AppliedCodingClub