Java interview questions, java questions

Source: Internet
Author: User

Java interview questions, java questions

1. storage structures used by stacks and queues

Chain storage and sequential Storage

2. understanding of time complexity and space complexity
Time Complexity: Number of statement executions in an algorithm, which is T (n). When n changes, it is O (f (n). For example, constant O (1 ), O (n2), O (nlog2n)
Space complexity: the storage space consumed by an algorithm, including the storage space occupied by the algorithm itself, the space occupied by the algorithm input data, and the data temporarily generated during algorithm running

3. Binary Tree Algorithm
First Order ABGGCEFH Middle Order DGBAECHF find follow

Left and right of the root in the forward Order (where can I find the root node)
Left root right in the middle order (you can obtain data between the left and right sides of the node)
Followed by left and right roots (you can find out where the heel node is)

Related Article

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.