MayUWell

Learn, Sleep, Learn

做了的事和计划做的一些事

书籍: <机器学习实战> 已看完,GitHub代码已完成(书中代码是python2,我的是python3)。强烈推荐此书 链接:https://github.com/hyc2017/MachineLearningInAction &amp...

2018-01-29 14:18:00

阅读数 958

评论数 33

778-Swim in Rising Water

Description On an N x N grid, each square grid[i][j] represents the elevation at that point (i,j). Now rain starts to fall. At time t, the depth of...

2018-06-06 21:46:17

阅读数 247

评论数 1

130-Surrounded Regions

Description Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture all regions surrounded by ‘X’. A region is captured by flipping all ‘O’...

2018-06-05 21:30:50

阅读数 134

评论数 0

133-Clone Graph

Description Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ’s undirected graph serialization: N...

2018-06-05 17:48:14

阅读数 126

评论数 0

332-Reconstruct Itinerary

Description Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. A...

2018-05-31 15:56:46

阅读数 142

评论数 0

210-Course Schedule II

Description There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have prerequisites, for example to take course...

2018-05-31 14:54:46

阅读数 168

评论数 0

542-01 Matrix

Description Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. ...

2018-05-30 16:03:58

阅读数 132

评论数 0

721-Accounts Merge

Description Given a list accounts, each element accounts[i] is a list of strings, where the first element accounts[i][0] is a name, and the rest of ...

2018-05-30 14:56:57

阅读数 147

评论数 0

417-Pacific Atlantic Water Flow

Description Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the “Pacific ocean” touches the...

2018-05-30 13:35:09

阅读数 101

评论数 0

473-Matchsticks to Square

Description Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you ...

2018-05-28 23:14:04

阅读数 92

评论数 0

200-Number of Islands

Description Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by conn...

2018-05-28 22:55:00

阅读数 83

评论数 0

802-Find Eventual Safe States

Description In a directed graph, we start at some node and every turn, walk along a directed edge of the graph. If we reach a node that is terminal...

2018-05-28 22:49:27

阅读数 87

评论数 0

785-Is Graph Bipartite?

Description Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it’s set of nod...

2018-05-28 22:19:47

阅读数 173

评论数 0

491-Increasing Subsequences

Description Given an integer array, your task is to find all the different possible increasing subsequences of the given array, and the length of an...

2018-05-28 21:55:25

阅读数 72

评论数 0

547-Friend Circles

Description There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if...

2018-05-28 17:47:06

阅读数 68

评论数 0

529-Minesweeper

Description Let’s play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. ‘M’ represents an...

2018-05-28 17:01:56

阅读数 91

评论数 0

733-Flood Fill

Description An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a c...

2018-05-28 16:09:44

阅读数 107

评论数 0

145-Binary Tree Postorder Traversal

Description Given a binary tree, return the postorder traversal of its nodes’ values. Example: Input: [1,null,2,3] 1 \ 2 / 3 ...

2018-05-28 15:57:06

阅读数 61

评论数 0

98-Validate Binary Search Tree

Description Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a n...

2018-05-25 14:59:26

阅读数 96

评论数 0

236-Lowest Common Ancestor of a Binary Tree

Description Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipe...

2018-05-25 14:45:47

阅读数 87

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭