is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
as the site only has 8 pages, the possible page sequence is limited to 8x7x6. allocate an counter array to hold 8x7x6 integers.
- angeloyz December 21, 20121. create a Hash map witch each sequence as the key;
2. Parse the file to get the viewing page sequences grouped by each user , sequences are ordered by timestamps as this is a log file. O(N)
user sequences
---------------------------
A 1-2-3-4
B 2-3-5
C 4-3-5-8
3. iterate all the sequences in the hash map , increment the corresponding counter in the 8x7x6 array by 1.O(M*N)
sequeces counter
-----------------------------
1-2-3 1
2-3-4 1
2-3-5 1
4-3-5 1
.....
4. found the largest counter.