mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Update the coding style for JavaScript (#329)
* Fix bug before commit 5eae708
* Update queue.md
* Update the coding style for JavaScript
---------
Co-authored-by: Yudong Jin <krahets@163.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com)
|
||||
*/
|
||||
|
||||
const ListNode = require("../include/ListNode");
|
||||
const { ListNode } = require("../include/ListNode");
|
||||
|
||||
/* 基于链表实现的队列 */
|
||||
class LinkedListQueue {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com)
|
||||
*/
|
||||
|
||||
const ListNode = require("../include/ListNode");
|
||||
const { ListNode } = require("../include/ListNode");
|
||||
|
||||
/* 基于链表实现的栈 */
|
||||
class LinkedListStack {
|
||||
|
||||
Reference in New Issue
Block a user