I don't get it why companies still asks same old algorithm questions. They are mostly related with algebra and don't help with understanding candidate's software design capabilities. I wouldn't hire a candidate who cracks the coding interview but writes lots of unmaintainable, conditional flooded code.