摘要: 问题描述: Pete likes to bake some cakes. He has some recipes and ingredients. Unfortunately he is not good in maths. Can you help him to find out, how man 阅读全文
posted @ 2018-05-08 17:00 小字辈 阅读(404) 评论(0) 推荐(0)
摘要: 问题描述: 给定一个整数数列,找出其中和为特定值的那两个数。 你可以假设每个输入都只会有一种答案,同样的元素不能被重用。 示例: 我的答案: 优秀答案: 参考 http://www.cnblogs.com/kiznaiver1998/p/8605809.html 解题思路:构造了arr{ key:v 阅读全文
posted @ 2018-05-08 16:57 小字辈 阅读(507) 评论(0) 推荐(0)