- Dining philosopher
They want food so they wait. And end up eating each other.
- Given a random number generator that returns a number between [0,1], how would you build a RNG that accounted for weighting?
WAT?
- You have two arrays with N integers in them. Merge those arrays using a recursive algorithm so that the integers in the final array are sorted.
Why not use merge sort?
- generators(in python) and about minesweeper.
They cray.
- given a query and a document, highlight the query in the document and return a snippet of the document itself. Don't use existing large 3rd party libraries.
No.
- Finding the longest palindrome in a given string.
No.
- query log, and how to get the top K most frequent ones
Put it into MySQL.
- Maximum subarray problem
Pobwem?
- Generate all permutations of an alphanumeric string (lowercase/uppercase only if a letter)
Use library.
- How can you improve the service of Yelp?
Make it more web scale.
-
Pick a random number from weighted list based on weight
list_of_random_numbers[adjust_weight(random_index)]
-
given a string length 25, consisting of alphabet (lower and upper case) and numbers.in this string some of the upper case letters are lower cased and sent to me. I have a black box fuction that returns a integer, something like 13 or 14, that says the string I have got is correct else it throws a exception. find the right string given a corrupted string.
-
Reconstruct a binary tree given two sequences of node traversals, one from inorder and one from postorder traversal.
-
memory management (implementation of a garbage collector), compilation of Python code, what happens when a URL is typed into the browser, what can be done to speed up a select query
-
Difference between POST and GET.
-
How to prevent SQL Injection virus?
-
How to prevent Cross site visiting?
-
a fairly large log file, about 5GB. Each line of the log file contains an url which a user has visited on our site. We want to figure out what's the most popular 100 urls visited by our users.
-
min stack
-
Generic classes in C++ vs Java
-
- operating system, process, multi threads, memory models
- database, in particular, SQL language
- scripting language: python (but I think answer in perl may be okay)
- data structure & algorithm: stack, linked-list, hashmap, tree, heap, etc.
- security (attacking, encryption, etc.)
- web standards/protocol: http, dns, tcp/ip, ssl, etc.
- recursion and/or dynamic programing
- linux knowledge/commands
- Operating system questions, explaining some concept like process, thread
- linked list or array for binary search
- Given a file that contains chat messages, find out the top 10 chatters in an efficient way. Assume that the usernames are unique. For example, : Howdy : Some message : Something else : I am good Nick1 is the top chatter, find nine others like this.
- What command would you use to retrieve one row of data from a table using SQL?
- What is the command for viewing memory management information in Linux?
- Implement a Lock.
- Write a function that returns a random line in a file.
- Diff POST/GET ? What happens if type a URL in your browser ? How cookies are working ? HTTPS ?
- url shortener script, data structure, basic structure, and what to do if the URL is already in the DB, what to do to get analytics ?
- Which operation is more expensive? Multiply, Divide or Add
- Best and worst case time for hash table lookup
- How would you find the top 10 queries Yelp receives?
- How does memory management work in ?
- Given a big list of searches, how would you write a function that returns top 10 searches?
- How would you use all the data at our disposal?
- Describe the difference between get requests and post requests
- What is the average disk access time?
- in memory, what's the difference between a primitive and object
- what's a way to set up a large database to find things quickly
- what's the difference between hashtable and hashmap?
- find equilibrium index
- Generate all permutations of an alphanumeric string
- Implement and explain a generator and what it can be used for
- Find the longest sequence of unrepeated characters in a string.
- Asked about the search time difference between linked list and array.
- How to map an IP address to a server?
- Database questions like inner join, indexing.
- String processing question
- Write an function to compute if a string is an anagram. Time and space complexity and how to optimize it.
- Building regular expressions to catch specific patterns.
- how do would you find and kill a process using a lot of CPU?
- What is Big O notation?
- given a huge log file and the way id find the top 10 sites in them.
- hashtable implementation
- Describe about process and thread.
- How does process communicate with each other?
- We have a fairly large log file, about 5GB. Each line of the log file contains an url which a user has visited on our site. We want to figure out what's the most popular 100 urls visited by our users.
- What are the different synchronization mechanisms? Difference between semaphore and mutex
- Reverse a singly linked linklist
- Unix commands -> wordcount , finding out process information
- Explain process after you click a URL ( on server / client side )
- Given a Number to guess b/w 1-100 , how to point to the number in minimum time
- Explain DNS resolution
- Usual sorting algorithm complexity ... can it be made any quicker
- How might you keep track of where users were coming from to get to your site?
- If you have less memory storage, what would you use - Hash Table or Tree? Why?
- Given an Array of integers, find an efficient way to determine if it contains 3 numbers that sum to 0
- How to merge two arrays
- How would you find how much system resources a process is consuming on linux.
- Whether to use a list or linked list to implement a search tree
- What is the average look-up time for a good hash-function
- What situation arises when you have a parent div and all it contains is a pair of floating divs? And how can you remedy the situation.
- Given a telephone directory which is broken in number of files, how would you find a telephone number in it.
- u have a table wilh user information like name,age and sex. Give a smart way to sort the entires based on age.
Hey do you have the answers also?? some of them ??