Amazon Interview Report
- 0of 0 votes
AnswersWrite a hash function so that a string and its reverse get the same return value
- ajay.raj March 15, 2018 in United States
Hash(‘banana’) == hash(‘ananab’)
Hash(‘banana’) == hash(‘banana’)
Hash(‘banana’) != hash(‘banaaa’)| Report Duplicate | Flag | PURGE
Amazon Backend Developer - 0of 0 votes
AnswersGive a 0/1 matrix to find and remove the islands. Assume that the boundaries of the matrix are 1
- ajay.raj March 15, 2018 in United States
The definition of islands is surrounded by 0
The simplest example is
enter:
111111
100001
100101
100001
111111
Output:
111111
100001
100001
100001
111111| Report Duplicate | Flag | PURGE
Amazon Backend Developer
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.