grindmapcompany-wise LeetCode
All companies

Huawei LeetCode Questions

15 questions all-time · 3 easy · 9 medium · 3 hard
# Problem Difficulty Frequency Acceptance
1Minimum Number of Visited Cells in a Grid
Array, Dynamic Programming, Stack, Breadth-First Search, Union Find, Heap (Priority Queue), Matrix, Monotonic Stack
Hard
100
22.8%
2Maximum Binary String After Change
String, Greedy
Medium
100
47.1%
3Two Sum
Array, Hash Table
Easy
91
55.8%
4Valid Parentheses
String, Stack
Easy
83
42.3%
5Decode String
String, Stack, Recursion
Medium
83
61.2%
6Number of Islands
Array, Depth-First Search, Breadth-First Search, Union Find, Matrix
Medium
78
62.3%
7Generate Parentheses
String, Dynamic Programming, Backtracking
Medium
78
77.1%
8Combination Sum
Array, Backtracking
Medium
71
74.7%
9Merge Two Sorted Lists
Linked List, Recursion
Easy
71
66.8%
10Longest Palindromic Substring
Two Pointers, String, Dynamic Programming
Medium
71
35.8%
1124 Game
Array, Math, Backtracking
Hard
61
50.0%
12Largest Number
Array, String, Greedy, Sorting
Medium
61
41.3%
13Maximum Subarray
Array, Divide and Conquer, Dynamic Programming
Medium
61
52.1%
14Daily Temperatures
Array, Stack, Monotonic Stack
Medium
61
67.4%
15Maximal Rectangle
Array, Dynamic Programming, Stack, Matrix, Monotonic Stack
Hard
61
53.7%

How to read this list

The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.

Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.