【文件属性】:
文件名称:leetcoderust-Data_Structure_In_JS:js中的DS算法!!
文件大小:31KB
文件格式:ZIP
更新时间:2021-06-30 18:07:45
系统开源
leetcode
锈Javascript()
中的
DS
算法问题{...}
在
JS
中解决的技术软件开发面试问题的最合理的集合
目录
待续
堆
创建堆栈
function
Stack
(
)
{
this
.
_storage
=
[
]
;
this
.
push
=
function
push
(
value
)
{
this
.
_storage
.
push
(
value
)
;
console
.
log
(
this
.
_storage
)
;
}
;
this
.
pop
=
function
pop
(
)
{
this
.
_storage
.
pop
(
)
;
console
.
log
(
this
.
_storage
)
;
}
;
this
.
peek
=
function
peek
(
)
{
console
.
log
(
this
.
_storage
[
this
.
_storage
.
length
-
1
]
)
;
}
;
}
const
myStack
=
new
Stack
(
)
;
myStack
.
push
(
45
【文件预览】:
Data_Structure_In_JS-master
----debouncing.html(531B)
----avlTree.js(3KB)
----polyfill_call_and_bind.js(405B)
----companySpecificQuestion.md(3KB)
----JS_EVENT.html(2KB)
----Readme.md(44KB)
----data.js(14KB)
----CSS.md(183B)
----index.js(353B)
----LeetCodeTopInterviewQuestions.md(7KB)
----radioTransmission.js(1KB)
----bindMethodPolyFill.js(482B)
----AmazonCardLeetCode.md(16KB)
----throttling.html(756B)
----LRU.js(3KB)