------
## 最终结论
```python
def validate_stack_sequences(pushed, popped):
    stack = []
    pop_index = 0
    
    for num in pushed:
        stack.append(num)  # Simulate push operation
        
        # Check if the top of the stack matches the current element in popped
        while stack and stack[-1] == popped[pop_index]:
            stack.pop()  # Simulate pop operation
            pop_index += 1  # Move to the next element in popped
            
    return pop_index == len(popped)  # Validate result

# Example usage:
print(validate_stack_sequences([1,2,3,4,5], [4,5,3,2,1]))  # Output: True
print(validate_stack_sequences([1,2,3,4,5], [4,3,5,1,2]))  # Output: False
```