Mytechinterviews - mytechinterviews.com - My Tech Interviews
General Information:
Latest News:
Challenge – 50 trucks with payload 19 Apr 2011 | 03:18 pm
Question: Given a fleet of 50 trucks, each with a full fuel tank and a range of 100 miles, how far can you deliver a payload? You can transfer the payload from truck to truck, and you can transfer fue...
Challenge – 50 trucks with payload 19 Apr 2011 | 11:18 am
Question: Given a fleet of 50 trucks, each with a full fuel tank and a range of 100 miles, how far can you deliver a payload? You can transfer the payload from truck to truck, and you can transfer fue...
Implement strstr 16 Apr 2011 | 07:57 am
Question: Implement strstr in Java. Find the first instance of a string in another string. Answer: Like this question? Follow our feed and tweet it. Related posts: Combinations of a String First ...
Implement strstr 16 Apr 2011 | 03:57 am
Question: Implement strstr in Java. Find the first instance of a string in another string. Answer: public int Search(String haystack, String needle){ for(int i = 0; i Combinations of a String First N...
Search in a sorted rotated array 8 Apr 2011 | 04:51 am
Question: Implement a search function for a sorted rotated array. Duplicates are allowed. Returning any one of the duplicates is acceptable. Answer: We can do a binary search with some modified check...
Search in a sorted rotated array 8 Apr 2011 | 12:51 am
Question: Implement a search function for a sorted rotated array. Duplicates are allowed. Returning any one of the duplicates is acceptable. Answer: We can do a binary search with some modified checks...
Challenge – Camel and Bananas 6 Apr 2011 | 04:15 pm
Question: The owner of a banana plantation has a camel. He wants to transport his 3000 bananas to the market, which is located after the desert. The distance between his banana plantation and the mark...
Challenge – Camel and Bananas 6 Apr 2011 | 12:15 pm
Question: The owner of a banana plantation has a camel. He wants to transport his 3000 bananas to the market, which is located after the desert. The distance between his banana plantation and the mark...
Challenge – First Common Ancestor 2 Mar 2011 | 07:16 pm
Question: How would you find the first common ancestor of two nodes in a binary search tree? First as in the lowest in the tree. Another way to ask is to find the lowest common ancestor of two nodes. ...
Challenge Series 2 Mar 2011 | 07:04 pm
Hey everyone, We got great response from the interview challenge posted last week. We’ve decided to make a weekly challenge series (hopefully we have enough questions to keep up ). Do you have any i...