摘要: You are given a license key represented as a string S which consists only alphanumeric character and dashes. The string is separated into N+1 groups b 阅读全文
posted @ 2018-10-13 10:19 bernieloveslife 阅读(120) 评论(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 @ 2018-10-13 10:19 bernieloveslife 阅读(134) 评论(0) 推荐(0)
摘要: Given n non negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp 阅读全文
posted @ 2018-10-13 10:18 bernieloveslife 阅读(106) 评论(0) 推荐(0)
摘要: Given an array A of non negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may re 阅读全文
posted @ 2018-10-13 10:18 bernieloveslife 阅读(166) 评论(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 @ 2018-10-13 10:18 bernieloveslife 阅读(105) 评论(0) 推荐(0)