0 day streak

Palo Alto Networks coding interview questions

ProductEnterprise SaaS Global Machine coding / LLD

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
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Shuffle an ArrayRandomized Algorithms Medium Design Data Structures Uber, Yahoo, CrowdStrike +4 Solve
Reverse Nodes in k-GroupFront Middle Back Pointer Hard Linked List Amazon, Microsoft, Meta +33 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Logger Rate LimiterHash Map + Array Easy Design Data Structures Google, Netflix, Tesla +17 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Design TwitterMerge K Sorted Medium Heaps Amazon, X (Twitter), Okta +5 Solve
Add Two NumbersDummy Node Pattern Medium Linked List Amazon, Microsoft, Meta +33 Solve
Longest Substring Without Repeating CharactersSliding Window · Variable Medium Arrays & Hashing Google, Amazon, Microsoft +114 Solve
Search in Rotated Sorted ArrayRotated Array Medium Binary Search Amazon, Microsoft, Apple +59 Solve
Group AnagramsHashing Medium Arrays & Hashing Amazon, Microsoft, Meta +82 Solve
Merge Sorted ArrayTwo Pointer Easy Arrays & Hashing Meta, Apple, Nvidia +40 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Nvidia, Snowflake +25 Solve
Maximum Profit in Job Scheduling1D DP Hard Dynamic Programming Amazon, Airbnb, Snowflake +15 Solve
Largest Rectangle in HistogramMonotonic Stack Hard Monotonic Stack Microsoft, Meta, DoorDash +23 Solve
Invert Binary TreeRecursion Easy Trees & BST Amazon, Meta, Grab +10 Solve
Median of Two Sorted ArraysBinary Search on Partition Hard Binary Search Google, Amazon, Microsoft +49 Solve
Integer to RomanGreedy Medium Arrays & Hashing DoorDash, Booking.com, X (Twitter) +21 Solve
Longest Common PrefixString Basics Easy Arrays & Hashing Amazon, Microsoft, Bloomberg +41 Solve
Reverse Linked List IIFront Middle Back Pointer Medium Linked List Apple, Bloomberg, Nutanix +7 Solve
Restore IP AddressesChoice per Position Medium Recursion & Backtracking Microsoft, Nvidia, TikTok (ByteDance) +8 Solve
Binary Tree Level Order TraversalTraversals Medium Trees & BST Microsoft, Apple, Netflix +24 Solve
Linked List CycleSlow Fast Pointers Easy Linked List Microsoft, Apple, Nvidia +67 Solve
Min StackStack Medium Design Data Structures Microsoft, Apple, Snowflake +33 Solve
Insert Delete GetRandom O(1)Hash Map + Array Medium Design Data Structures Google, Amazon, Apple +50 Solve
Decode StringStack Basics Medium Stack Google, Amazon, Microsoft +31 Solve
Subarray Sum Equals KPrefix Sum Strategy Medium Arrays & Hashing Google, Amazon, Microsoft +41 Solve
Top K Frequent WordsTop K / Kth Largest / Smallest Medium Heaps Google, Amazon, Bloomberg +17 Solve
Advantage ShuffleGreedy Medium Arrays & Hashing Squarepoint Capital, Walmart Global Tech Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Longest Palindromic SubstringStrings Medium Dynamic Programming Amazon, Microsoft, Apple +68 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Multiply StringsRight to Left Traversal Medium Arrays & Hashing Pinterest, X (Twitter), Zillow +9 Solve
Binary Tree Zigzag Level Order TraversalTraversals Medium Trees & BST Amazon, LinkedIn, Nutanix +23 Solve
Path SumRecursion Easy Trees & BST Zillow, Datadog, Salesforce +3 Solve
Path Sum IIBacktracking Medium Trees & BST Apple, Zillow, Quora +3 Solve
Word Break1D DP Medium Dynamic Programming Google, Amazon, Microsoft +35 Solve
Basic CalculatorStack Basics Hard Stack Amazon, Meta, Snowflake +12 Solve
Basic Calculator IIStack Basics Medium Stack Meta, Apple, Airbnb +18 Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +51 Solve
NeetCode [Meeting Rooms (premium)]Basics Easy Intervals JPMorgan Chase, Razorpay, Freshworks +1 Solve
Reconstruct ItineraryEulerian Path (Hierholzer) Hard Graphs Amazon, Netflix, Airbnb +16 Solve
Diameter of Binary TreePostorder + Multiple Return Values Easy Trees & BST Google, Meta, DoorDash +22 Solve
Koko Eating BananasBinary Search on Answer Space Medium Binary Search Amazon, Netflix, Uber +34 Solve
Maximum Length of a Concatenated String with Unique CharactersPick / Not-Pick Medium Recursion & Backtracking Meta, Tesla, Groww Solve
Open the LockBFS for shortest path Medium Graphs LinkedIn, Snap, eBay +7 Solve
Minimum Path Sum2D DP Medium Dynamic Programming Dropbox, Waymo, SpaceX +20 Solve
Valid PalindromeTwo Pointer Easy Arrays & Hashing Microsoft, Meta, Apple +53 Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Also reported, being added to AlgoRung (4)

Find the Longest Equal Subarray · Minimum Number of Food Buckets to Feed the Hamsters · Remove Zero Sum Consecutive Nodes from Linked List · Couples Holding Hands

Questions people ask

What coding questions does Palo Alto Networks ask most?

Word Ladder, Shuffle an Array, Reverse Nodes in k-Group, LRU Cache, Logger Rate Limiter, Merge Intervals, Design Twitter, Add Two Numbers.

Which topics come up in Palo Alto Networks coding rounds?

linked list, trees, strings, design data structure, intervals, sliding window.

How hard are Palo Alto Networks coding questions?

Of the reported questions, 14 are easy, 29 medium and 8 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.