- Hands-On Data Structures and Algorithms with JavaScript
- Kashyap Mukkamala
- 102字
- 2021-06-30 19:12:07
API
This is the tricky part, as it is very hard to predict ahead of time what kinds of method your application will require. Therefore, it's usually a good idea to start off with whatever is the norm and then make changes as your applications demand. Going by that, you would end up with an API that looks something like this:
- Push: Pushes an item to the top of the stack
- Pop: Removes an item from the top of the stack
- Peek: Shows the last item pushed into the stack
- Clear: Empties the stack
- Size: Gets the current size of the stack

推薦閱讀
- SQL Server 從入門到項(xiàng)目實(shí)踐(超值版)
- C++ Primer習(xí)題集(第5版)
- Functional Python Programming
- Python從菜鳥到高手(第2版)
- PHP+MySQL網(wǎng)站開發(fā)技術(shù)項(xiàng)目式教程(第2版)
- 編譯系統(tǒng)透視:圖解編譯原理
- Access 2016數(shù)據(jù)庫管
- C#程序設(shè)計(jì)
- Building Microservices with .NET Core
- Kotlin開發(fā)教程(全2冊(cè))
- QGIS Python Programming Cookbook(Second Edition)
- 從零開始學(xué)Python網(wǎng)絡(luò)爬蟲
- jQuery Mobile Web Development Essentials(Second Edition)
- Developing Java Applications with Spring and Spring Boot
- Vue.js 3.x高效前端開發(fā)(視頻教學(xué)版)