摘要: Problem: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input woul 阅读全文
posted @ 2016-12-28 11:58 yrwang 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Problem: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Example: 本题的第一想法是开一个字母表计数 阅读全文
posted @ 2016-12-28 06:05 yrwang 阅读(151) 评论(0) 推荐(0) 编辑