摘要: 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 轻风舞动 阅读(899) 评论(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 轻风舞动 阅读(1100) 评论(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 轻风舞动 阅读(830) 评论(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 轻风舞动 阅读(1368) 评论(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 轻风舞动 阅读(793) 评论(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 轻风舞动 阅读(345) 评论(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 轻风舞动 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 网站 www.careercup.com 上的题库列表 阅读全文
posted @ 2018-03-02 02:54 轻风舞动 阅读(197) 评论(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 轻风舞动 阅读(337) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a 阅读全文
posted @ 2018-03-01 16:01 轻风舞动 阅读(310) 评论(0) 推荐(0) 编辑