techinterviewsintesys
BAN USER- 0of 2 votes
AnswersGiven an array, find the first element that appears an even number of times.
- techinterviewsintesys in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 1of 1 vote
AnswersGiven a circular linked list. Find the longest sequence of numbers, where a sequence starts with any number, for example 3, and ends when you see that number again,another 3.
- techinterviewsintesys in United States
Imagine the circular linked list
3 8 9 7 2 1 3 4 6 [3] same as first element .i.e three.
The longest sequence would be 3 8 9 7 2 1 , the other candidate being 3 4 6
Finding for instance,starting at 8 and getting to the same 8 wouldn't count as a valid sequence.| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 1of 1 vote
AnswersFind the first non-repeated element in an unsorted array.
- techinterviewsintesys in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer - 0of 0 votes
AnswersGiven a squared matrix, shift all elements 1 place to the right in circular fashion.
- techinterviewsintesys in United States| Report Duplicate | Flag | PURGE
Amazon Applications Developer
It seems like you are rotating the whole thing 90 degrees clockwise. The problem requires you to shift 1 element to the right element in 0,0 and consequently shift others accordingly.
like here
1 2 3
4 5 6
7 8 9
you would get this
4 1 2
7 5 3
8 9 6
Repbilliejeckley, SEO at Flipkart
Spent 2002-2008 testing the market for spit-takes in Los Angeles, CA. Spent 2001-2004 deploying how to get boyfriend back by ...
For those of you using Hashes. You might be said that according to the Java/OtherLanguage documentation a Hash does not guarantee the order in which you retrieve the data. So, probably for very large lists, the solution might not be correct.
- techinterviewsintesys December 15, 2015