News for hackers. Stuff that matters.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by anyfoo on Friday June 17, 2022 @10:03PM (#31786718)
Sorry to hear. Binary trees and related concepts (binary search, for example) are super useful and relatively basic, so they can usually be found in any introduction to algorithm and data structures. If you want to try again, do some studying of that. It will definitely help your programming skills in general!

This, by the way, can easily be the kind of concept that you don't think you need until you learn about it, suddenly figuring out that you've been writing very inefficient code before.

Re:Ask HN: I failed FAANG interview because I didn't know Bi... by CamelRocketFish on Saturday June 18, 2022 @09:24AM (#31789614)
What stack are they useful in? I’ve never used a binary tree in app development.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by quantified on Saturday June 18, 2022 @12:23PM (#31791290)
Any stack. It's nothing stack-specific. If you're specific to some programming stack and knowledge of the DB, framework or language is what you're employed for, fine. Knowing the fundamentals and more-advanced topics in data structures and algorithms makes you more valuable to an employer and your ability to be employed by a top-tier platform company rises substantially.
[dead]
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by speedgoose on Saturday June 18, 2022 @01:01AM (#31787361)
It’s not a meaningless question though. A binary tree is a simple and very common data structure.

Data structures are important for advanced front development, you need to know which one to use for a given problem.

Of course it’s possible to learn them and not knowing about them at a given time is not a red flag to me, but I guess a large company has so many candidates that they don’t have to risk hiring someone that somehow doesn’t know about them.

Re:Ask HN: I failed FAANG interview because I didn't know Bi... by b20000 on Saturday June 18, 2022 @09:51AM (#31789814)
asking what a binary tree is is one thing. asking to create the data structures and maybe find/insert operations is ok. but asking a really confusing question involving a binary tree designed to having a pissing contest about who is the smarter one is not.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by clintonwoo on Friday June 17, 2022 @11:45PM (#31787102)
You need to dedicate significant study into data structures and algorithms with lots of coding challenges (leetcode-esque) to pass these interviews. Even some world class programmers will fail the interviews, that's how they've been designed.

I think it's quite a reasonable expectation to achieve a high paying job. It's just a shame that it's not necessarily related to the day to day work, not will your prior work experience help much.

Re:Ask HN: I failed FAANG interview because I didn't know Bi... by random_coder on Friday June 17, 2022 @11:16PM (#31787003)
Best to forget about that interview and focus on future ones. Frontend engineering doesn't mean you can ignore performance issues in your programs. Binary trees are a very useful data structure to know in general. Ordered collections in many languages' standard libraries are internally implemented as balanced binary trees. It's good to have at least a high level understanding of this data structure.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by Raed667 on Friday June 17, 2022 @11:43PM (#31787093)
Unfortunately, even if you won't be using it during your actual work, data structures and algorithms is still part of the interview process.

If you don't feel like going on a crusade to change the whole interview system, get yourself "cracking the coding interview", learn the basic stuff: linked-lists, trees, hash-map, search, sort, big-o

Honestly there isn't that much you need to know.

and just bite the bullet.

Re:Ask HN: I failed FAANG interview because I didn't know Bi... by cowvin on Saturday June 18, 2022 @01:38AM (#31787488)
Yeah, that's rough, but you really should know what a binary tree is if you want to be a software engineer. It's probably a good idea to study data structures and algorithms a bit more.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by sys_64738 on Friday June 17, 2022 @10:49PM (#31786894)
Didn't you learn about BST during your Computer Science undergrad?
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by throw03172019 on Saturday June 18, 2022 @01:55AM (#31787547)
Plenty of self taught developers applying for jobs.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by b20000 on Friday June 17, 2022 @11:12PM (#31786989)
yeah, my thought too. how is it possible to graduate a CS program without knowing what a binary tree is?
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by mettamage on Friday June 17, 2022 @11:18PM (#31787007)
He never implied to have studied CS
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by aristofun on Saturday June 18, 2022 @01:07AM (#31787374)
Just found a new google killer please and tell this story in the interviews.

(it’s sarcasm people, why downvoting?)

Re:Ask HN: I failed FAANG interview because I didn't know Bi... by beardyw on Saturday June 18, 2022 @02:28AM (#31787655)
Sad thing is you might have been the best candidate. Just didn't know the secret handshake.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by quantified on Saturday June 18, 2022 @12:24PM (#31791301)
Super unlikely for a FAANG, even interns will be up on this stuff. Especially interns, all the school learning is fresher for them.
Re:Ask HN: I failed FAANG interview because I didn't know Bi... by beardyw on Saturday June 18, 2022 @01:28PM (#31791913)
I don't follow. I was saying he might have been the most suitable person for the job. Would knowing that have magically changed him or her?