perixtar / 2024-Tech-OA

List of Tech Company OAs. Save your time from finding them all over the internet.
847 stars 53 forks source link

Amazon OA Dropped Requests 🪻 #64

Closed zhehengluoK closed 2 months ago

zhehengluoK commented 3 months ago

The 2nd example included one more 6. The list should be [1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7] with in total three six in it.

ZikGroot commented 3 months ago

The 2nd example included one more 6. The list should be [1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7] with in total three six in it.

Hi zheheng!

Thank you so much for pointing out! I have edited the input. The update should show up on your end soon! If you have any other questions/concerns, pls feel free to let me know! Happy coding!

perixtar commented 3 months ago

Thanks @zhehengluoK . I think for both input, the output should be 2.If there is extra 6, then that 6 will be dropped and all the 7 will not get dropped. But great job for catching the bug!