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:
Justin Tse
2023-02-05 15:40:30 +08:00
committed by GitHub
parent 6778557056
commit 6ad8a66a7c
8 changed files with 82 additions and 87 deletions

View File

@@ -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 {

View File

@@ -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 {