C++的话是不是可以直接用std vector?
所在版块:创业求职 发贴时间:2018-01-07 14:14  更多评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
vector<pair<Country, Name> >, 自定义predicate base on Country,然后stable sort,unique。
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
今天上午去参加面试的java题目, 这个该怎么做? JavaProg   (397 bytes , 3570reads )
话说什么公司招人用这么简单的题目。。。 吴越浪子   (0 bytes , 42reads )
怎么这么久了还没settle呐 しろ   (54 bytes , 65reads )
嚓。。。 白老师是蟒蛇高手。。。 功夫熊猫   (0 bytes , 28reads )
功老师过奖了 しろ   (49 bytes , 36reads )
厉害,高手啊,一行搞定 JavaProg   (0 bytes , 29reads )
我。。。给跪了 icky   (72 bytes , 45reads )
我要是it主管 kdkboy   (86 bytes , 51reads )
IT主管说不定也写不出来超鸡简短的code icky   (199 bytes , 37reads )
还好你不是 しろ   (10 bytes , 28reads )
白老师 紧跟恬淡   (20 bytes , 44reads )
友邦惊诧 しろ   (20 bytes , 26reads )
实在是 紧跟恬淡   (18 bytes , 56reads )
难道不该是 しろ   (33 bytes , 37reads )
的确时态用错了 紧跟恬淡   (26 bytes , 55reads )
少喝F&N しろ   (10 bytes , 29reads )
哈哈刚刚也有人觉得我像语文老师 しろ   (36 bytes , 42reads )
目测matlab两行搞定... 功夫熊猫   (230 bytes , 37reads )
马特拉博你找死啊 xmulzz   (33 bytes , 64reads )
无所谓 只是轮子罢了 功夫熊猫   (0 bytes , 39reads )
C++的话是不是可以直接用std vector? hunter_100   (88 bytes , 52reads )
简单一点,附上代码,如果有要求,可以实现map接口,不过得改写一堆方法 lgland   (1069 bytes , 43reads )
多谢各位的代码了,非常好,都是牛人 JavaProg   (0 bytes , 34reads )
做两个数组,然后两个i++ 不可以吗? sonatam   (12 bytes , 42reads )
最喜欢用python做这种数据结构类型的操作了 nevermoi   (291 bytes , 84reads )
多谢python代码,都好厉害 JavaProg   (0 bytes , 28reads )
python这种二流语言就不要出来丢人了 xmulzz   (36 bytes , 54reads )
层主咋了 しろ   (14 bytes , 40reads )
别人都是不自量力是吧? randomwalk   (16 bytes , 43reads )
print( filter(lambda t: detect(t), origin) ) evan912   (18 bytes , 57reads )
c#的话就dictionary cy1024   (0 bytes , 42reads )
楼上都是0分 乌龙茶999   (105 bytes , 73reads )
+1 cosine   (10 bytes , 78reads )
请提供代码 west666   (25 bytes , 91reads )
程序员不考虑各种的情况吗? GoogleEarth   (36 bytes , 79reads )
LinkedHashMap 小韩   (139 bytes , 68reads )
就是简单的HashMap 滚雪球   (233 bytes , 52reads )
如何保证“只保留第一次出现的那个”呢? GoogleEarth   (0 bytes , 77reads )
不能用Hashmap一定要用LinkedHashMap west666   (962 bytes , 62reads )
顶一下这个 低调的小码农   (10 bytes , 79reads )
围观各路大神 颖州人氏xyc   (0 bytes , 77reads )
奇怪,这种小剋思 西东南北风   (32 bytes , 39reads )
招程序员 greenfox   (55 bytes , 73reads )
HashMap vs. LinkedHashMap west666   (343 bytes , 66reads )
多谢指正 滚雪球   (34 bytes , 64reads )
这个方案的前提是人名不会重复。。。 GoogleEarth   (0 bytes , 83reads )
也是业余爱好者,但认为关键词是“只保留第一次出现的那个”,不是考运算速度 GoogleEarth   (91 bytes , 67reads )
做为一个编程业余爱好者, 我可以用 3个2 dimensional array做到 beerguy   (0 bytes , 93reads )
这个 typhoonzj   (51 bytes , 92reads )
都有这张图在4楼了,楼上还这么多人瞎扯蛋。。。 吴越浪子   (0 bytes , 37reads )
用excel..countif.. 狮子王   (5 bytes , 141reads )
存容易,删除的时候,淡淡的觉得应该用hash table Pokemon   (0 bytes , 71reads )