Author |
Topic: interview questions (Read 15088 times) |
|
kens
Junior Member
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 59
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
interview questions
« on: Feb 3rd, 2008, 6:22am » |
Quote Modify
|
Q.1 "jack jill" will be broken in tokens and then a document id list for 'jack' will be retrieved and similarly an document id list for 'jill' will be retrieved separately. Now how can we find those id's which contain both jack and jill?. Q.2 there are random arrays on ‘n’ computer. Each of size of RAM of it’s computer. The arrays are not sorted. The problem was to sort the arrays. Q.2 Imagine you have 10000 computer network and you are the admin of this network. how would you monitor the performance and how would you rectify the problem. Q.3 If the mean faliure hour is 10,000 and 20 is the mean repair hour.If the printer is used by 100 customer, then find the availability.
|
« Last Edit: Feb 3rd, 2008, 6:39am by kens » |
IP Logged |
|
|
|
kens
Junior Member
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 59
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #1 on: Feb 4th, 2008, 12:02pm » |
Quote Modify
|
5)Given an array of red, green and blue balls arrange them in groups of all red together, greens together and blue together. Do in a single scan of the array. 6)Merge two linked lists without using extra memory.
|
|
IP Logged |
|
|
|
R
Senior Riddler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/amd.gif) Addicted!!!
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 502
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #2 on: Apr 14th, 2009, 10:49am » |
Quote Modify
|
on Feb 4th, 2008, 12:02pm, kens wrote:5)Given an array of red, green and blue balls arrange them in groups of all red together, greens together and blue together. Do in a single scan of the array. |
| has been repeated here a lot many times. search for it. Quote: 6)Merge two linked lists without using extra memory. |
| Merge two linked list They are sorted or not? For sorted case the following code will work and for unsorted case, just append one to the other. Code: node* merge(node *head1, node *head2) { if(head1 == NULL) return head2; if(head2 == NULL) return head1; node* temp3 = null, temp1 = head1, temp2 = head2; if(temp1->data < temp2->data ) { temp3 = temp1; temp1 = temp1->next; } else { temp3 = temp2; temp2 = temp2->next; } node *head = temp3; while(temp1 != NULL && temp2 != NULL) { if(temp1->data < temp2->data) { temp3->next = temp1; temp1 = temp1->next; temp3 = temp3->next; } else { temp3->next = temp2; temp2 = temp2->next; temp3 = temp3->next; } } if(temp1 == NULL) { if(temp2 == NULL) return head; else temp3->next = temp2; } else { temp3->next = temp1; } return head; } |
|
|
« Last Edit: Apr 14th, 2009, 10:56am by R » |
IP Logged |
The first experience seems like Magic, but the second tells you the Trick behind it.
|
|
|
R
Senior Riddler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/amd.gif) Addicted!!!
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 502
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #3 on: Apr 14th, 2009, 11:00am » |
Quote Modify
|
on Feb 3rd, 2008, 6:22am, kens wrote:Q.2 there are random arrays on ‘n’ computer. Each of size of RAM of it’s computer. The arrays are not sorted. The problem was to sort the arrays. |
| If am getting it right, there are n very very large arrays (each one is of size of a RAM) we have to sort them. If they had been sorted separately, then an n-way merge would have done. Still we can sort each array in its own computer and then apply n-way merge for all of them.
|
|
IP Logged |
The first experience seems like Magic, but the second tells you the Trick behind it.
|
|
|
R
Senior Riddler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/amd.gif) Addicted!!!
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 502
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #4 on: Apr 14th, 2009, 11:03am » |
Quote Modify
|
on Feb 3rd, 2008, 6:22am, kens wrote:Q.1 "jack jill" will be broken in tokens and then a document id list for 'jack' will be retrieved and similarly an document id list for 'jill' will be retrieved separately. Now how can we find those id's which contain both jack and jill?. |
| You have now two arrays of IDs, the problem is just finding the intersection of the two arrays. Those will be the documents having both "jack" and "jill"
|
|
IP Logged |
The first experience seems like Magic, but the second tells you the Trick behind it.
|
|
|
master2k10
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 1
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #5 on: Dec 31st, 2009, 4:47am » |
Quote Modify
|
1) solution1: merge two arrays and sort. Traverse the sorted array . if if you find two id's in sequence then print it... continue till the end of the sorted array...... N = n1 + n2; (Combined length of the two arrays) o(NlogN) for sort. o(N) for traversal . complexity o(NlogN) 2) solution2: create a hashtable of doc_id->count pair. Traverse both array one at the same time fill/update the hashtable. Traverse hashtable and look for count>1 and print those. Time Complexity : o(N=(n1+n2));
|
|
IP Logged |
|
|
|
bmudiam
Junior Member
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/panda.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 55
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #6 on: Dec 31st, 2009, 8:32am » |
Quote Modify
|
on Feb 3rd, 2008, 6:22am, kens wrote: Q.2 Imagine you have 10000 computer network and you are the admin of this network. how would you monitor the performance and how would you rectify the problem. |
| At that scale, you could only monitor the machines by their runtime statistics displayed on graphs because a picture is worth 1000 words. Which problem are you asking about? network or computer? If its a network problem I will be at the center of all servers and all routers beside me..so I will restart router.
|
|
IP Logged |
“Nobody can go back and start a new beginning, but anyone can start today and make a new ending.” - Maria Robinson
|
|
|
chu082011
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 1
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #7 on: Jan 29th, 2012, 5:50pm » |
Quote Modify
|
Hi, Thank very much for your reply. It help me to think about for my ideals. Tks again and pls keep posting.
|
|
IP Logged |
|
|
|
jassmee
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 1
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #8 on: Apr 6th, 2012, 10:35pm » |
Quote Modify
|
you provide the better information question related in interview such a good question . it is very helpful in my interview..
|
|
IP Logged |
|
|
|
arun gupta
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/gundam.gif) hello friends :)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 19
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #9 on: Apr 9th, 2012, 10:02pm » |
Quote Modify
|
One of the most common question for interview is "Tell about your self"? Should i wait for interviewer to ask or i start by self?
|
|
IP Logged |
|
|
|
LarryCurtis
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/mario.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 1
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #10 on: Jun 29th, 2013, 12:34pm » |
Quote Modify
|
intresting questions i hope no one ask me this while in a interview
|
|
IP Logged |
|
|
|
ConnieBrocket
Newbie
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 1
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/smiley.gif) |
How to start our introduction
« Reply #11 on: Aug 18th, 2014, 10:52pm » |
Quote Modify
|
:) I want to know how to start our introduction during interview.
|
|
IP Logged |
|
|
|
alien2
Uberpuzzler
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://i.ibb.co/Dw0QrnC/aliens152.gif)
Gender: ![male](http://www.ocf.berkeley.edu/~wwu/YaBBImages/male.gif)
Posts: 6991
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #13 on: May 16th, 2016, 7:54am » |
Quote Modify
|
on Apr 9th, 2012, 10:02pm, arun gupta wrote:One of the most common question for interview is "Tell about your self"? Should i wait for interviewer to ask or i start by self? |
| I think therefore I am. I am a thinker rather than a stinker. I cannot me more or less than myself and I happen to be a beautiful person. So, when do I get started?
|
|
IP Logged |
|
|
|
gitanas
Junior Member
![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif) ![*](http://www.ocf.berkeley.edu/~wwu/YaBBImages/star.gif)
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/avatars/blank.gif)
Posts: 55
|
![](http://www.ocf.berkeley.edu/~wwu/YaBBImages/xx.gif) |
Re: interview questions
« Reply #14 on: Jun 21st, 2016, 3:46am » |
Quote Modify
|
Anybody works in Microsoft?
|
|
IP Logged |
Dummy Frog - my blog about interesting and funny things in our World
|
|
|
|