If that’s what you want, my suggestion would be to memorize as many algo/solutions as possible and to spend 3 months writting complex functions on a whiteboard. Be prepared to fail the interview process at least once. Many FB/Google employees failed at least once before getting a job their.
Amazon? That’s good for you.. go for it and learn as much as you can for your next gig. Don’t forget to separate the interview process from the real work experience. These are 2 different things and in 2018 you better master both. One will get you a job and the other one will help you keep that job.