leetcode1207哈希表的操作和count的操作

  • 哈希表初始化有unordered_map<int,int>map或map<int,int>m
  • 他们都是不存储重复的键
  • map[key]=value

Vector::count():

count(v.begin(),v.end(),target)

 

posted @ 2023-05-24 13:59  iu本u  阅读(73)  评论(0)    收藏  举报