Guang lianda beiyou pen exam, Guang lianda beiyou exam

Source: Internet
Author: User

Guang lianda beiyou pen exam, Guang lianda beiyou exam

Guang lianda beiyou lecture pen questions

Programming questions

1. Compared with arrays, linked lists do not have the following advantages: small storage space.

2. A group of people of different ages, find the minimum age difference (absolute value), the time complexity is less than O (n ^ 2)

My idea is: sort the ages (from small to large) in a quick sort, and then subtract the minimum age from the next age to the minimum age.

3. Delete the given node of the one-way linked list. The time complexity is O (1)

Linked List node definition:

Struct linknode {

Int key;

Linknode * next

}

This is the topic of the offoffoffer.

Idea: overwrite the value of the given node with the value of the next node of the given node, and then delete the next node.

Assume that the given node is p

P-> key = p-> next-> key;

P-> next = p-> next;

4. Determine whether a binary tree is a balanced binary tree.

Binary Tree definition:

Struct node {

Int data;

Node * left;

Node * right;

}

I forgot what a balanced binary tree is...

Reference blog: http://blog.csdn.net/zz198808/article/details/7621275

5. Determine whether the given string operator does not comply with the given syntax rules.

Sentence: Verb

String: Sentence Conjunction Sentence

Noun: "Bird", "Fish" etc

Verb: "Fly" etc

Conjunction: "and", "or", "not"

At that time, I had no idea how to break down words from strings.

The logic questions of disgusting people are not detailed... It won't do it anyway...


Test engineers of guanglianda (architecture, not software development)

This is not clear.

Beiyou network research institute review pen questions, urgent

You can go to Shengshi qingbei to ask them if they have beiyou review tutoring classes and insurance classes, but they can refund the money. This shows the strength of tutoring.

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.