Showing 3 of 5 questions
Determine if a given sequence of numbers could have been pushed and popped from a stack, resulting in a second given sequence. Essentially, you need to simulate stack operations and validate the pop order.
#1. Validate Stack Sequences
Calculate the result of an arithmetic expression given in Reverse Polish Notation (RPN), also known as postfix notation. You'll need to evaluate operations based on the order they appear in the RPN expression.
#2. Evaluate Reverse Polish Notation
Determine the total number of continuous subarrays within a given array that sum up to a specific target value, k.
#3. Subarray Sum Equals K
Page 1 of 1 · 5 total