Leetcode 题解 - Stack

319 阅读1分钟

Approach

  1. Initialize the stack, either in Stack or ArrayDeque

  2. Define the result structure, maybe in Array or Map or StringBuilder

  3. Loop through the element based on template

  4. Return the result 

Questions