摘要: You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu 阅读全文
posted @ 2016-08-14 12:26 fenshen371 阅读(132) 评论(0) 推荐(0)
摘要: Given a string, we can "shift" each of its letter to its successive letter, for example: "abc" -> "bcd". We can keep "shifting" which forms the sequen 阅读全文
posted @ 2016-08-14 12:18 fenshen371 阅读(125) 评论(0) 推荐(0)
摘要: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According 阅读全文
posted @ 2016-08-14 02:36 fenshen371 阅读(121) 评论(0) 推荐(0)