a是数据结构的:栈

const a = []
a.push (1)
a.push (2)
a.push (3)
const item = a.pop()

a是数据结构的:队列

const a = []
a.push (1)
a.push (2)
a.push (3)
const item = a.shift()

a最接近哪种数据结构:哈希表

const a = {
  name:"frank",
  age:18
}

a最接近哪种数据结构:链表

const a = {
  value:1,
  next:{
    value:2,
    next:{
       value:3,
       next:null
     }
   }
}

a最接近哪种数据结构:树

const a = {
  value:1,
  children:[{value:2,children:null},{value:3,children:[{value:4,children:null}]
  }]
}

keiko
1 声望0 粉丝