How is bubble sort implemented?
Don't implement it, use insertion sort instead for quick and dirty implementations.
Its hard to believe that people still try to hire this way. It rarely achieves the purpose you're aiming for.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.