Huawei Technologies Interview Questions

Huawei Technologies Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(22)
Machine Learning
(15)
SQL
(4)
Behavioral
(4)
A/B Testing
(3)

Huawei Technologies Interview Questions

Practice for the Huawei Technologies interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Given the head of a singly linked list represented as a ListNode, and two zero-indexed positions x and y, write a function swap_node which swaps the positions of nodes x and y and returns the new head. Note that you cannot simply swap the values of these nodes, as these nodes do not have values. Instead, you must swap these two using pointer manipulation (i.e., modifying the next references of the involved nodes inside the list).

A ListNode is defined as:

class ListNode:
  next: ListNode = None

Example:

Input:

linked_list = ListNode(0x01) -> ListNode(0x02) -> ListNode(0x03) 
# Here, imagine that '0x0_' refer to their memory locations.
head = 0x01
x = 1
y = 2

Output:

def swap_node(head, x, y) ->  ListNode(0x01)  -> ListNode(0x03) -> ListNode(0x02)
Machine Learning
Medium
Machine Learning
Easy
Loading pricing options

View all Huawei Technologies questions

Challenge

Check your skills...
How prepared are you for working at Huawei Technologies?

Huawei Technologies Salaries by Position

$104K
$216K
Data Scientist
Median: $130K
Mean (Average): $147K
Data points: 4
$58K
$252K
Software Engineer
Median: $104K
Mean (Average): $128K
Data points: 18
$76K
$137K
ML Engineer
Median: $114K
Mean (Average): $110K
Data points: 4
AI Research Scientist*
$100K
AI Research Scientist
Median: $100K
Mean (Average): $100K
Data points: 1
Product Manager*
$55K
Product Manager
Median: $55K
Mean (Average): $55K
Data points: 1

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Data Scientist role pays the most with a $147,250 base salary while the Product Manager role on average pays the least with a $55,000 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.