Is binary tree question valid for UI Engineer Role?

New / Eng
frontendJs

New Eng

frontendJs
Dec 10, 2021 27 Comments

comments

Want to comment? LOG IN or SIGN UP
TOP 27 Comments
  • No matter it's UI or backend you should know DSA. Tree is fairly used in the front-end frameworks too for object hierarchy. Knowing DSA will only make you a better engineer.
    Dec 10, 2021 1
    • New
      frontendJs

      New

      frontendJs
      OP
      Dude, it is used I know
      I know the applications of data structures and algorithms
      There are many great engineers who don't give a shit about finding maxsumpath in binary tree
      Dec 10, 2021
  • UI relies on DOM and we have hierarchy and trees at the component level but mostly for DOM manipulation tree fundas helps for eg dfs bfs letโ€™s say you are comparing two DOM nodes to find sth. itโ€™s good to brush up tree even for UI roles not at all unrealistic
    Dec 10, 2021 4
    • New
      frontendJs

      New

      frontendJs
      OP
      So you never compared, good!
      Not here for validation, only presenting my points just like you. I know what React does internally but hope you also know Dan Abramov doesn't know LC tree questions. My next job most probably won't be to compare Dom nodes or create a React clone. I understand what different data structures are and I can do basic array, string LC questions. This is good enough for me and nothing more be required. Interviewer can ask array strings questions, but asking tree LC questions to UI engineer is stupid
      Dec 10, 2021
    • New
      @new

      New

      PRE
      Google, Netflix
      @new
      Point is what you can do, maybe 1000s others can also do that. How do you differentiate between all of them in 1 hour interview? By asking harder questions.
      Dec 10, 2021
  • TC & YOE
    Dec 10, 2021 1
    • New
      frontendJs

      New

      frontendJs
      OP
      Added
      Dec 10, 2021
  • Media.net / Eng
    TC II GTFO

    Go to company page Media.net Eng

    TC II GTFO
    that hashtag though๐Ÿ˜‚
    Dec 10, 2021 0
  • New
    frontendJs

    New

    frontendJs
    OP
    Dec 10, 2021 3
    • New
      frontendJs

      New

      frontendJs
      OP
      Takes same amount of time and you don't have to prepare for it seperately considering you don't get paid for solving the binary tree.
      Plus that exercise would be similar to my daily task which likely be the case for a binary tree.
      Dec 11, 2021
    • Unless you do same task everyday without any change, you will always have to spend time for preparation.
      Even if you consider coding everyday, it's not like you are going to code same feature again and again.

      So any daily task you take, as an interviewee you might end up spending more time. And am sure no company can test your talent (or themselves survive) by doing same daily task everyday. And if it's going to be different then how different this is from asking binary tree.

      As an interviewee, at least binary tree can be useful at all companies that hire through leetcode or hackerrank. I wouldn't want to spend my weekend doing takeaway exercise, getting blown away because that's not how "their team" does it, without improving my chances in next interview at another company.

      There is no exact science to interviews, imo most interviewers look for two things, what the interviewee already know that can be useful for them straight away and how good they are at learning new things.
      The second part is tricky and purely luck dependent.
      Dec 11, 2021