Sure, this is not the best practice, and unsuitable for many, but it's what works for me.
268 karma · joined June 13, 2014
[ my public key: https://keybase.io/mavidser; my proof: https://keybase.io/mavidser/sigs/SCabG8KongZrwy60lW18Rw0d0JLJst6kYDlBZFmutfo ]
contact - me [at] [my domain name above]
Sure, this is not the best practice, and unsuitable for many, but it's what works for me.
For what it's worth, here's[1] the file which describes the colors used in the source. List of colors[2].
[1] https://bitbucket.org/birkenfeld/pygments-main/src/a287342ee...
[2] https://bitbucket.org/birkenfeld/pygments-main/src/a287342ee...
alias ccat='pygmentize -g'I was really nervous, and since it was a phone interview, I tried to speak my thought process, which didn't quite work out due to me constantly stammering. So I just took to typing all the time so that my interviewer wouldn't think I was taking too long coming up with a language or copying answers. I started making silly mistakes like using `int sum=0` in python. I took the input as a number, converted it to a string, and then further converted it back to a number, and did mathematical operations on it, trying to solve the problem. Every time I thought I did it, it would get stuck in another case.
Ultimately, the interviewer deleted 50 lines out of my 60-line code, and just added a print statement on a variable I was already using for storing things temporarily, which turned out to be the correct answer.
Needless to say, I blew the interview. I haven't done an interview since, and I'm gonna be up for it very soon. I'm not sure if I'd do better this time, but I'd be ready with a glass of water, and try to be as relaxed as possible.