sambenison66
BAN USER- 0of 0 votes
AnswersAutomation Testing Question:
- sambenison66 in United States
How do you verify a search result list which changes consistently based on each search word and filters?
For example, how do you make sure that the list is sorted based on price or rating or etc without any identical list to compare with? Since providing an identical list as Test Input for each word is not the best approach.| Report Duplicate | Flag | PURGE
Google Software Engineer in Test Testing - 0of 0 votes
AnswersHow do you reverse the words in a linked list?
For ex, Convert " H-e-l-l-o- -W-o-r-l-d " (There is a space between the word), into " o-l-l-e-H- -d-l-r-o-W "
Write a Java code to use as less Space Complexity as possible. (So not too many spaces should be used)
Linked List Structure:
- sambenison66 in United Statesclass Node { char val; Node next; }
| Report Duplicate | Flag | PURGE
Google Software Engineer in Test Java - 3of 3 votes
AnswersGiven a file (which can be considered as a String with comma delimiter for the complexity of the question) of usernames and a value k, find top k usernames (with number of logins) who logged into the system the most.
- sambenison66 in United States
For example -
Input:
User (String) = user1, user4, user2, user1, user3, user1, user2, user3
k (int) = 2
Output:
user1 (3)
user2 (2)
user3 (2)
- Both user2 and user3 should be included since both has same number of logins
Write a java method to find the output with best time and space complexity.| Report Duplicate | Flag | PURGE
Amazon Software Engineer in Test Java
Repmariacbrister, Graphics Programmer at Graphic Systems
Hey, I am Maria and I am from Bluefield. Currently, I work as a freelancer graphic artist. From an early ...
My solution:
I lost the code but I did something like this
Can we do something better than this? Please advise.
- sambenison66 June 05, 2016