随笔分类 -  String

摘要:Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You shou 阅读全文
posted @ 2016-12-04 04:44 微微程序媛 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You may a 阅读全文
posted @ 2016-11-27 08:00 微微程序媛 阅读(739) 评论(0) 推荐(0) 编辑
摘要:Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2016-11-25 13:32 微微程序媛 阅读(137) 评论(0) 推荐(0) 编辑
摘要:Given an encoded string, return it's decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is b 阅读全文
posted @ 2016-10-31 07:34 微微程序媛 阅读(746) 评论(0) 推荐(0) 编辑
摘要:Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for the 阅读全文
posted @ 2016-10-17 14:06 微微程序媛 阅读(196) 评论(0) 推荐(0) 编辑
摘要:A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammatic numbers that are o 阅读全文
posted @ 2016-10-16 08:12 微微程序媛 阅读(177) 评论(0) 推荐(0) 编辑
摘要:A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number i 阅读全文
posted @ 2016-10-16 08:11 微微程序媛 阅读(138) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示