导航

2016年9月21日

摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文

posted @ 2016-09-21 01:47 CSU蛋李 阅读(138) 评论(0) 推荐(0) 编辑

摘要: Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the 阅读全文

posted @ 2016-09-21 01:35 CSU蛋李 阅读(335) 评论(0) 推荐(0) 编辑

摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans 阅读全文

posted @ 2016-09-21 01:14 CSU蛋李 阅读(132) 评论(0) 推荐(0) 编辑

摘要: We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wron 阅读全文

posted @ 2016-09-21 00:58 CSU蛋李 阅读(151) 评论(0) 推荐(0) 编辑