Palantir Technology Interview Question for Senior Software Development Engineers


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
3
of 3 vote

A link List implementation would be more efficient.
Something like

public class Node {
	Object key;
	Node next;
	ValueNode vnode;
}
public class ValueNode {
	Object Value;
	ValueNode next;
}

- Abhi May 20, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

You can implement a multi-map with a balanced binary search tree (AVL tree), which is very easy to implement. Each key can have many values and you cannot use any of the java collections. That's why I would suggest you to use a linked list (implemented by you) as a value.

- rumen.paletov May 03, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what I could think of :
-Define a 2d array.
-1st index of each array will be the key ant the rest will be the value of the multimap.
-on addition of a element create a copy the whole and add new element in the last index.

this requires a lot of copying of arrays.

- Prithvi May 17, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

-Define a 2d array.
-1st index of each array will be the key ant the rest will be the value of the multimap.
-on addition of a element check if space avalabel for new recoer then add new element in the last index else create new 2d arrey of double size than exising arrey and copy existing value then add new.

- varun93342 May 19, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

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.

Learn More

Resume Review

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.

Learn More

Mock Interviews

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.

Learn More