Bloomberg Interview Question

1. arrange all zeros in an array to the end 2. Add digits

Interview Answer

Anonymous

Mar 3, 2017

arr = [1,3,4,0,5,5,0,2] sorted(arr)[::-1]