官术网_书友最值得收藏!

Summary

There we have it, real-world web examples using stacksThe important thing to note in both examples is that the majority of the logic as expected does not revolve around the data structure itself. It is a supplementary component, that greatly simplifies access and protects your data from unintentional code smells and bugs.

In this chapter, we covered the basics of why we need a specific stack data structure instead of in-built arrays, simplifying our code using the said data structure, and noted the applications of the data structure. This is just the exciting beginning, and there is a lot more to come.

In the next chapter, we will explore the queues data structure along the same lines and analyze some additional performance metrics to check whether it's worth the hassle to build and/or use custom data structures.

主站蜘蛛池模板: 丰顺县| 巩留县| 凤山市| 大新县| 临邑县| 西乌| 宣武区| 浑源县| 淮安市| 临湘市| 开江县| 时尚| 资溪县| 广丰县| 本溪市| 寻甸| 嘉黎县| 正宁县| 孟村| 黄浦区| 罗源县| 福鼎市| 怀远县| 广灵县| 嘉峪关市| 正安县| 乐业县| 武陟县| 玉田县| 咸阳市| 大悟县| 东宁县| 合作市| 旌德县| 东源县| 平山县| 永善县| 临海市| 互助| 利津县| 林芝县|