注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
There are two parts.
1st part is basic CS knowledge(can be found on glassdoor), 2nd part is one
coding question(Reverse Words in a String problem from leetcode)
1st part questions and answers:
#############################################
2. No. of bytes in a 64 bit machine
Number of bytes to code 64 bits?
8
3. What is the value of the unsigned integer in a 32 bit machine? Maximum value of 32 bits unsigned int?
unsigned int 4bytes 0 to 4294967295(2^32 - 1)
two to the power of 32 minus one
http://www.tutorialspoint.com/cplusplus/cpp_data_types.htm
4. How many bits are required to represent an octal digit?
- Number of digits needed to code an octet?
8 in binary I know an Octet is a unit consisting of eight bits, up to 255.
- What if we're in base 8?
3
http://stackoverflow.com/questions/19575629/how-many-digits-to-code-an-octet
5. Where can you apply binary search - sorted array or linked list?
sorted array
6. Time complexity of binary search.
O(logn)
7. Time complexity of adding a node at the head of the linked list.
O(1)
DNS is a very popular and well known protocol. It is used for resolving host names and domain names to IP addresses. The fact is that when you type www.firewall.cx the name is translated into an IP address via a number of queries that take place from your PC towards the DNS server. This DNS Query process (and more) is analysed in great depth in the articles that follow.
12. How to select one row of a table in SQL
http://www.codeproject.com/Questions/219741/Select-nth-row-of-a-table-in-sql-server
SQL SELECT TOP Clause
http://stackoverflow.com/questions/16568/how-to-select-the-nth-row-in-a-sql-database-table
http://www.w3schools.com/sql/sql_top.asp
13. Port number for HTTP and protocol used by HTTP
80 TCP/IP ?
http://searchnetworking.techtarget.com/answer/How-are-TCP-IP-and-HTTP-related
http://www.firewall.cx/networking-topics/protocols.html
HTTP is an application layer protocol designed within the framework of the Internet Protocol Suite. Its definition presumes an underlying and reliable transport layer protocol,[3] and Transmission Control Protocol (TCP) is commonly used. However HTTP can use unreliable protocols such as the User Datagram Protocol (UDP), for example in Simple Service Discovery Protocol (SSDP).
14. Full form of SSL and what does it do?
SSL stands for Secure Socket Layer. The protocol's name is now officially TLS but we will continue to use SSL since that's the better known name.
SSL was designed to permit web browsers and web servers to exchange sensitive information and prevent programs that could view the network traffic from reading the sensitive data.
-number of bit in octal
-some command in linuz(grep, kill)
-some sort complexity(binary)
-adding element to first of linked list
-data base question(outerjoin, left joint,..)
-SSL? TCP?
- 3 adjectives coworkers would use to describe you?
- Why would you want to work at Yelp?
- Port number used by HTTP?
- Protocol underneath HTTP?
- Runtime efficiency of searching an element in an array using a binary search algorithm?
- Complexity of adding an element to the head of a linked list?
- Maximum value of 32 bits unsigned int?
- Number of digits needed to code an octet?
- What if we're in base 8?
- Number of bytes to code 64 bits?
- What does SSL stands for and what does it do?
- What is the Linux kill signal?
- Command to highlight the occurrence of a method in a file?
- Would you apply a binary search on a linked list or a sorted array?
- Is an inner join an intersection, a union or something else?
Inner join - An inner join using either of the equivalent queries gives the intersection of the two tables, i.e. the two rows they have in common.
Left outer join - A left outer join will give all rows in A, plus any common rows in B.
Full outer join - A full outer join will give you the union of A and B, i.e. All the rows in A and all the rows in B. If something in A doesn't have a corresponding datum in B, then the B portion is null, and vice versa.
http://stackoverflow.com/questions/19267238/what-is-difference-between-inner-join-and-outer-join
http://stackoverflow.com/questions/38549/difference-between-inner-and-outer-joins
|