Amazon, Recently Asked Online Assessments in 27 Aug, 2025 | Single Sign-On Security Code | Lexicographical Binary Strings | HackerRank Coding Assessment |

Amazon · Question · Posted Mar 2026

Question 1: Single Sign-On Security Code Problem Statement: Developers at Amazon are creating a single sign-on application for the web apps in AWS. In one of its modules, a security code is in the form of a binary string that changes every minute. The characters at a pair of indices i and i+1 are swapped such that the resulting code is the lexicographically maximum binary string that can be achieved in this step. If it is not possible to make ...

The full answer & interview discussion are available to premium members.

Log in Create a free account