META SWE E4/E5 Probably fail

Recently just got done for E4/E5 Phone OA, only prepped for about 1.5 months and even then, it was just trying to understand basics and finding patterns. To tell you the truth, I probably should've rescheduled, but i've rescheduled about 2 -3 times now for this phone OA.

Thinking about it now, both the questions given to me we're fairly simple, it was more so on the fact that I have not done an interview in 5.5 years, nor have I prepped for an interview like this. I got into my current company as an intern, so I kinda cruised through the first 5 years (got a promotion to SR.). Totally disregarding my leetcode skills...

Questions:

  1. Return the lowest ID when calling the function FindID(), there is a seperate function called ReleaseID(int id) where it suppose to give you the ID that you passed it too.
  2. Find the Maximum Sum of an input array where the sum's cannot be a neighbor adjacent to that number...

Yup, these are easy questions if you really think about it, but I struggled to do them because of nerves... oh well, back to grinding...

edit: adding my comment into description...

The question was losely worded by the interviewer. He literally just gave me a number set, and explained what I was suppose to do. He mentioned it was a 16 bit input, that’s incremental. I was to implement a class (he mentioned this vaguely btw) that would contain functions called FindId() and RelId() where findId always returns the lowest bit value in that id list. RelId(int in) would release the id you’re looking for in that list. If you release the lowest bit Id, next time you call FindId, it would return the next lowest one since u release the lowest bit. Again, this was very losely worded, so we went over the explanation for 10 min.

In the middle of me implementing it, I asked if he was just asking me to implement was a caller function to FindId() and RelId(int in) where findID would initialize and increment the value in that list so that u initialize every time u call FindId() a new int value… he said yes (?) to this and I continued on implementing my way where RelId would just remove that number from the list…

We went over the time and he said, “ I get what ur doing, let’s move on to the next question” only got 10 min to really do that question…

Number 2 is house robber per what people are saying in the comments...

Overall, the screen is doable, nerves and not being as confident in how prepped i was ultimately bit me in the ass. looking forward to the future!

Comments (9)