08 2017 档案

摘要:"Pacific Atlantic Water Flow" Difficulty Medium tags `island` Given an m x n matrix of non negative integers representing the height of each unit cell 阅读全文
posted @ 2017-08-13 22:06 whensean 阅读(161) 评论(0) 推荐(0)
摘要:"Strobogrammatic Number II" Difficulty Medium tags A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside 阅读全文
posted @ 2017-08-13 22:05 whensean 阅读(126) 评论(0) 推荐(0)
摘要:"Walls and Gates" Difficulty Medium tags `island` You are given a m x n 2D grid initialized with these three possible values. 1. A wall or an obstacle 阅读全文
posted @ 2017-08-13 22:04 whensean 阅读(140) 评论(0) 推荐(0)
摘要:"Queue Reconstruction by Height" Difficulty Medium tags Suppose you have a random list of people standing in a queue. Each person is described by a pa 阅读全文
posted @ 2017-08-13 22:03 whensean 阅读(84) 评论(0) 推荐(0)
摘要:"Perfect Squares" Difficulty Medium tags Given a positive integer n, find the least number of perfect square numbers (for example, ) which sum to n. F 阅读全文
posted @ 2017-08-13 22:02 whensean 阅读(117) 评论(0) 推荐(0)
摘要:"LeetCode Weekly Contest 42" "645_Set_Mismatched" AC, Easy, 18min 12s, Bug 1 "646_Maximum_Length_of_Pair_Chain" AC, Medium, 33min 56s, Bug 1 "647_Pali 阅读全文
posted @ 2017-08-01 11:13 whensean 阅读(170) 评论(0) 推荐(0)
摘要:"Replace Words" Difficulty Medium tags `string` In English, we have a concept called , which can be followed by some other words to form another longe 阅读全文
posted @ 2017-08-01 11:02 whensean 阅读(173) 评论(0) 推荐(0)
摘要:自用数据结构 tags trie digital tree radix tree prefix tree #define ALPHABETS 26 #define CASE 'a' #define MAX_WORD_SIZE 25 class Node { public: Node(Node* pa 阅读全文
posted @ 2017-08-01 10:15 whensean 阅读(173) 评论(0) 推荐(0)