Skip to content

issues Search Results · repo:XPoet/js-data-structure-and-algorithm language:JavaScript

Filter by

10 results
 (78 ms)

10 results

inXPoet/js-data-structure-and-algorithm (press backspace or delete to remove)

1. 感觉示例代码用的是邻接表法?文本写的是邻接矩阵 // 添加顶点 addVertex(val) { // 添加点 this.vertexes.push(val) // 添加点的关系 采用邻接矩阵法 结构用 Map this.adjList.set(val, []) } // 添加边 addEdge(val1, val2) { // 添加边需要传入两个顶点,因为边是两个顶点之间的边,边不可能单独存在。 ...
  • Shalomw
  • Opened 
    on Dec 30, 2024
  • #22

我的算法呢?
  • yufanme
  • 2
  • Opened 
    on Sep 5, 2022
  • #17

两篇链表的常见操作里 isEmpty() 后面返回 trun 应该是打错字了吧
  • 2hic
  • 1
  • Opened 
    on Jul 15, 2022
  • #15

let myArray2 = [1,2,3,4,5] myArray2.splice(4,2) myArray2 = [1, 2, 3, 4]
  • dylanass
  • 1
  • Opened 
    on Sep 24, 2021
  • #10

[QueueElement, QueueElement, QueueElement, QueueElement, QueueElement] 0: QueueElement {element: A , priority: 10} 1: QueueElement {element: B , priority: 15} 2: QueueElement {element: C , priority: 11} ...
  • hu-shuaishuai
  • 1
  • Opened 
    on May 23, 2021
  • #7

欢迎小伙伴们加入前端技术交流群,一起学习~ 因群人员大于 200 人,需要扫描下方二维码关注公众号《前端鼓励师》,添加作者微信,再由作者拉你进群~ FEC-Card
  • XPoet
  • 2
  • Opened 
    on Apr 17, 2021
  • #6

let myArray2 = [1, 2, 3, 4, 5]; // 删除索引 4 位置起,2 个元素 myArray2.splice(4, 2); console.log(myArray2); //-- [1, 2, 3,4],你写成了[1,2,3]
  • huanggengzhong
  • 2
  • Opened 
    on Dec 30, 2020
  • #4

// remove(data) 删除指定 data 所在的节点(继承单向链表) remove(data) { return super.remove(data); } 但是单向链表中的remove方法仅仅只改变了next指针,对currentNode.next.pre没做任何修改是不是会产生问题? 是不是还应该加上这一条: currentNode.next.pre = previousNode
  • venvillssd
  • 4
  • Opened 
    on Sep 21, 2020
  • #2
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub