Unusual questions: Microsoft interview questions-6. algorithm questions-test in real learning

Source: Internet
Author: User

(Note: These questions are not a pattern. They are about your basic knowledge. Anyone who is smart and has no practical knowledge will be eliminated from these questions .)
1. What is the difference between a linked list and an array?
2. Write a method for sorting linked listsAlgorithm. Why do you choose to use this method?
3. Compile an algorithm for sorting arrays. Why do you choose to use this method?
4. Write a code that can directly implement the strstr () functionCode.
5. Write the reverse stringProgramTo optimize the speed and space.
6. How do I find circular links in a linked list?
7. Give an algorithm for shuffling and store the cards in an integer array.
8. Write a function and check whether the character is an integer. If yes, return its integer. (Or: How to Write a function from string to long integer using only four lines of code ?)
9. A function is provided to output all the arrays of a string.
10. Write the same code that implements the malloc () memory allocation function.
11. A function is provided to copy two strings A and B. The last few bytes of string a overlap with the first few bytes of string B.
12. How to write a program and put an ordered integer array into a binary tree?
13. How to print Binary Tree node data layer by layer from the top? Programming.
14. How to drop a linked list in an order (that is, reverse order, pay attention to the linked list boundary conditions and consider empty linked lists )?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.