2 ms·
> How often do you need to write palindrome functions for your job? That's like answering "how often do you need math?" to the question "what is 2+3?". It is a
by calcifer 9y ago
> How often do you need to write palindrome functions for your job?
That's like answering "how often do you need math?" to the question "what is 2+3?". It is an utterly, completely, stunningly trivial question that even a CS101 student on their first semester should be able to answer.
> used pandas, it's a 1 liner. You could see the wretched face of the interviewer since he was expecting a with open() as f: do_some_shit
I would be perfectly fine with the pandas answer, but my point is "csv parsing" wouldn't be my first question, I'd start with something much easier and if you managed that, I'd gladly accept pandas as a valid and then asked you to elaborate further (what does this pandas function do, how would you implement it yourself etc).
- monksy 9y ago> (what does this pandas function do, how would you implement it yourself etc). What are the downsides to using pandas? Is that worth brining in that large of a library for a matter like that.
- eanzenberg 9y agoI don't consider palindromes equivalent to math. Unless you mean how to index lists? That would be a valid question since there's different ways in python.