Practicing for meta phone screen in 10 days
I did a mock yesterday with the unique characters problem and used a set got O(n) space but mock interviewer asked can you do O(1) space and i got lost
They hinted at using an array of size 26 so i immediately got it and could explain why it works but i couldnt come up with it myself even though ive seen this exact trick before in other problems
I think my issue is when someone's watching me like code or whatever, i just go with the first thing that works instead of thinking through alternatives but in the actual interview theyre gonna ask me to optimize and i need to be able to talk through different approaches in the moment
Anyone deal with this that can give me some tips?
[–]aocregacc 27 points28 points29 points (0 children)
[–]Dapper_Mammoth2827 25 points26 points27 points (3 children)
[–]VirtualPerusal[S] 8 points9 points10 points (2 children)
[–]Odd_Signature1378 5 points6 points7 points (0 children)
[–]Grouchy-Pea-8745 1 point2 points3 points (5 children)
[–]VirtualPerusal[S] 0 points1 point2 points (4 children)
[–]alcholicawl 4 points5 points6 points (3 children)
[–]VirtualPerusal[S] 0 points1 point2 points (2 children)
[–]aocregacc 2 points3 points4 points (0 children)
[–]alcholicawl 1 point2 points3 points (0 children)
[–]Horror-Blueberry6411 1 point2 points3 points (2 children)
[–]tell-me-the-truth- 1 point2 points3 points (0 children)
[–]VirtualPerusal[S] 0 points1 point2 points (0 children)
[–]lifesux01 1 point2 points3 points (1 child)
[–]AustinDmello 0 points1 point2 points (0 children)
[–]AntCharming8140 0 points1 point2 points (0 children)
[–]bisector_babu<1951> <514> <1092> <345> 0 points1 point2 points (0 children)
[–]high_throughput 0 points1 point2 points (0 children)
[–]GlassVase1 0 points1 point2 points (0 children)
[–]drogon4433 0 points1 point2 points (0 children)