0 day streak

Huawei coding interview questions

Big tech Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Longest Increasing Subsequence1D DP Medium Dynamic Programming Google, Microsoft, TikTok (ByteDance) +29 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Generate ParenthesesPick / Not-Pick Medium Recursion & Backtracking Google, Amazon, Microsoft +28 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +33 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +31 Solve
Kadane's Algorithm - SimpleKadane's Algorithm Medium Arrays & Hashing Amazon, Microsoft, Apple +79 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Merge Two Binary TreesRecursion Easy Trees & BST LinkedIn, MongoDB, Druva +1 Solve
Container With Most WaterTwo Pointer Medium Arrays & Hashing Google, Amazon, Microsoft +59 Solve
N-Queens2D Matrix Hard Recursion & Backtracking Netflix, TikTok (ByteDance), Elastic +17 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Nvidia +67 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Single NumberMissing / Repeated Numbers Easy Bit Manipulation Airbnb, Bloomberg, Palantir +15 Solve
Maximal SquareSquares Medium Dynamic Programming Google, Amazon, Airbnb +14 Solve
Jump Game IIGreedy Medium Arrays & Hashing Google, DoorDash, Nutanix +25 Solve
Multiply StringsRight to Left Traversal Medium Arrays & Hashing Pinterest, X (Twitter), Zillow +9 Solve
First Unique Character in a StringHashing Easy Arrays & Hashing Databricks, Nutanix, Snap +28 Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +49 Solve
Decode Ways1D DP Medium Dynamic Programming Google, Meta, Tesla +21 Solve
Sqrt(x)Search on Answer Range Easy Binary Search TikTok (ByteDance), Wayfair, Epic Games +15 Solve
Climbing Stairs1D DP Easy Dynamic Programming Microsoft, Bloomberg, eBay +34 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Snap +38 Solve
Reverse StringTwo Pointer Easy Arrays & Hashing Nvidia, Snowflake, Electronic Arts +37 Solve
Binary Tree Inorder Traversal (Iterative)Recursion Easy Trees & BST Anduril, Intel, HPE +7 Solve
Binary Tree Preorder Traversal (Iterative)Recursion Easy Trees & BST Persistent Systems, BigBasket Solve
Binary Tree Postorder Traversal (Iterative)Recursion Easy Trees & BST Chewy, Citi, Myntra +3 Solve
Also reported, being added to AlgoRung (3)

Maximum Average Subarray II · Minimum Number of Visited Cells in a Grid · Maximum Binary String After Change

Questions people ask

What coding questions does Huawei ask most?

Two Sum, Valid Parentheses, Longest Palindromic Substring, Longest Increasing Subsequence, Number of Islands, Generate Parentheses, Merge Two Sorted Lists, Longest Substring Without Repeating Characters.

Which topics come up in Huawei coding rounds?

strings, dynamic programming, arrays, sliding window, backtracking, trees.

How hard are Huawei coding questions?

Of the reported questions, 13 are easy, 15 medium and 3 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.