- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 tensorflow小白入门笔记
主要参考了tensorflow的官方文档,中文版地址:http://www.tensorfly.cn/tfdoc/get_started/basic_usage.html下面的例子出自官方文档,演示了如何搭建一个最简单的计数器import tensorflow as tf#创建一个变量state,初始化为0,名称是counterstate = tf.Variable(0, n...
2019-03-09 16:34:15
147
原创 LC 109. Convert Sorted List to Binary Search Tree
1.题目描述109. Convert Sorted List to Binary Search TreeMedium73355FavoriteShareGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.For t...
2018-12-17 14:52:19
130
原创 LC 105. Construct Binary Tree from Preorder and Inorder Traversal
1.题目描述105. Construct Binary Tree from Preorder and Inorder TraversalMedium124935FavoriteShareGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume th...
2018-12-17 14:31:26
141
1
原创 LC 103. Binary Tree Zigzag Level Order Traversal
1.题目描述103. Binary Tree Zigzag Level Order TraversalMedium68746FavoriteShareGiven a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then righ...
2018-12-12 19:10:41
111
原创 LC 102. Binary Tree Level Order Traversal
1.题目描述102. Binary Tree Level Order TraversalMedium106328FavoriteShareGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For ...
2018-12-12 17:27:44
105
原创 LC 96. Unique Binary Search Trees
1.题目描述96. Unique Binary Search TreesMedium128252FavoriteShareGiven n, how many structurally unique BST's (binary search trees) that store values 1 ... n?Example:Input: 3Output: 5Explana...
2018-12-11 20:46:55
112
原创 LC 647. Palindromic Substrings
1.题目描述647. Palindromic SubstringsMedium103156FavoriteShareGiven a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or ...
2018-12-11 13:30:40
100
原创 LC 413. Arithmetic Slices
1.题目描述 413. Arithmetic SlicesMedium47095A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
2018-12-11 11:42:29
120
原创 LC 64. Minimum Path Sum
1. 题目描述64. Minimum Path SumMedium98225Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Not...
2018-12-11 11:04:14
88
原创 LC 931. Minimum Falling Path Sum
1.题目描述931. Minimum Falling Path SumMedium11311Given a square array of integers A, we want the minimum sum of a falling path through A.A falling path starts at any element in the first row, a...
2018-12-11 10:40:55
414
原创 LC 338. Counting Bits
1.题目描述338. Counting BitsMedium101773Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return ...
2018-12-11 10:11:28
94
原创 LC 515. Find Largest Value in Each Tree Row
1.题目描述515. Find Largest Value in Each Tree RowMedium41337You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \...
2018-12-10 21:43:02
318
原创 LC 841. Keys and Rooms
1.题目841. Keys and RoomsMedium31524There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room. ...
2018-12-10 20:47:20
1323
原创 LC 897. Increasing Order Search Tree
1.题目Given a tree, rearrange the tree in in-order so that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child.Example 1:Input: [5,3,...
2018-12-10 20:30:37
91
原创 LC 104. Maximum Depth of Binary Tree
1.题意104. Maximum Depth of Binary TreeEasy98540Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farth...
2018-12-10 20:08:34
84
原创 LC 771. Jewels and Stones
1.题目You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of t...
2018-12-10 19:47:56
109
原创 LC 513. Find Bottom Left Tree Value
1.题目513. Find Bottom Left Tree ValueMedium46477Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1 Example 2: ...
2018-12-06 23:34:29
152
原创 LC 872. Leaf-Similar Trees
1.题目872. Leaf-Similar TreesEasy25914Consider all the leaves of a binary tree. From left to right order, the values of those leaves form a leaf value sequence.For example, in the given tre...
2018-12-06 21:58:35
140
原创 LC 559. Maximum Depth of N-ary Tree
559. Maximum Depth of N-ary TreeEasy192181.题目描述Given a n-ary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farth...
2018-12-06 20:51:11
107
数学模型(第四版)
2018-03-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人