摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文
posted @ 2018-03-02 14:54 轻风舞动 阅读(389) 评论(0) 推荐(0) 编辑
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文
posted @ 2018-03-02 14:51 轻风舞动 阅读(566) 评论(0) 推荐(0) 编辑
摘要: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below 阅读全文
posted @ 2018-03-02 14:29 轻风舞动 阅读(371) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3: 阅读全文
posted @ 2018-03-02 14:22 轻风舞动 阅读(712) 评论(0) 推荐(0) 编辑
摘要: Suppose we abstract our file system by a string in the following manner: The string "dir\n\tsubdir1\n\tsubdir2\n\t\tfile.ext" represents: The director 阅读全文
posted @ 2018-03-02 08:43 轻风舞动 阅读(630) 评论(0) 推荐(0) 编辑
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2018-03-02 08:28 轻风舞动 阅读(431) 评论(0) 推荐(0) 编辑
摘要: Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled 阅读全文
posted @ 2018-03-02 08:25 轻风舞动 阅读(905) 评论(0) 推荐(0) 编辑
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2018-03-02 06:51 轻风舞动 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to count the total strobog 阅读全文
posted @ 2018-03-02 05:17 轻风舞动 阅读(835) 评论(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 @ 2018-03-02 05:04 轻风舞动 阅读(1381) 评论(0) 推荐(1) 编辑
摘要: 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 @ 2018-03-02 04:35 轻风舞动 阅读(803) 评论(0) 推荐(0) 编辑
摘要: We have a 2D grid. Each cell is either a wall, an enemy or empty. For example (0-empty, X-enemy, Y-wall): 0 X 0 0X 0 Y X0 X 0 0You have one bomb and y 阅读全文
posted @ 2018-03-02 03:29 轻风舞动 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Given a 2D grid, each cell is either a wall 'W', an enemy 'E' or empty '0' (the number zero), return the maximum enemies you can kill using one bomb.T 阅读全文
posted @ 2018-03-02 03:28 轻风舞动 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 网站 www.careercup.com 上的题库列表 阅读全文
posted @ 2018-03-02 02:54 轻风舞动 阅读(199) 评论(0) 推荐(0) 编辑
摘要: A museum was represented by a square matrix that was filled with O, G, and W where O represented open space, G represented guards, and W represented w 阅读全文
posted @ 2018-03-02 02:41 轻风舞动 阅读(341) 评论(0) 推荐(0) 编辑