HF_Cherish

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2015年6月10日

摘要: 1. Question给两个链表,分别用于表示两个非负数字。数的每一位在链表中反序存放(e.g. 2->4->3代表数342),且每个节点一位。对这两个数求和并返回,结果也用链表表示。You are given two linked lists representing two non-negati... 阅读全文
posted @ 2015-06-10 21:13 HF_Cherish 阅读(160) 评论(0) 推荐(0) 编辑

摘要: 1. Question给一整数数组,找两个数,使其和正好是给定值。函数 twoSum应当返回两个数的索引,且index1小于index2。索引不是从0开始的。假设每个输入都正好有一个解。Given an array of integers, find two numbers such that th... 阅读全文
posted @ 2015-06-10 20:56 HF_Cherish 阅读(215) 评论(0) 推荐(0) 编辑