2 ms·
I had an online interview with a startup. They used a website where I could submit my programs to a set of programming questions. there was this question, whic
by billconan 9y ago
I had an online interview with a startup. They used a website where I could submit my programs to a set of programming questions.
there was this question, which I don't remember now. the question had example inputs and outputs. the examples had a few sorted arrays as inputs. but the question didn't say that the answer should only accept sorted array.
when the array is sorted, the solution is easier. but even it is not sorted, sorting the array first won't result in extra big O time. And sorting is trivial, so I commented in the code that I only implemented a solution where I expect a sorted array as the input. The question isn't clear regarding if the input is sorted or not. In case, the input is not sorted, sorting is trivial. I could use whatever to sort it ....
I was proud of my answers, not on this question, but questions before this one. As some questions asked for bit manipulation. and I used inline assembly for a very speedy implementation.
After I submitted my answers, the CTO of that startup ran my code against their unit tests, and minutes later I received rejection.
I asked them, why? he gave me a case where the input is not sorted. clearly he didn't even look at my code.
Using ambiguous questions to reject people doesn't make sense to me. Plus, the online coding platform isn't interactive at all. there was no chance for me to clarify the question.
I guess they made this question unclear on purpose, but I don't know what they are testing? interview skills I guess?
Or maybe they wanted to test if I'm a rigorous person. of that I didn't fail, as I had pointed out the input requirement was unclear.
They didn't even't look at the code, not too many lines, which I feel disrespectful.
- billconan 9y agothere was another interview with intel that sucked. that was a behavior question round, they asked if I ever had a conflict of great hostility with my supervisor, and how I resolved it. I said I have never had a conflict of great hostility with my supervisor, I'm easy going. but he insisted I need to find a real-life example of me resolving hostile conflict with a supervisor. I was NCG, I hadn't had too many supervisors. I had no choice but made up a story for that one. I guess that position requires story telling skills.
- oblib 9y agoThat is hilarious!! Thank you for sharing.