- 博客(123)
- 资源 (13)
- 问答 (1)
- 收藏
- 关注
原创 [leetcode] 6. ZigZag Conversion
DescriptionThe string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)N 字形变换的C++和Python的解法。
2019-07-30 23:00:52 164 1
原创 [leetcode] 79. Word Search 单词搜索
DescriptionGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or v...
2019-07-30 22:53:10 136 1
原创 [leetcode] 127. Word Ladder
DescriptionGiven two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord, such that:Only one letter can be cha...
2019-07-30 22:47:46 149
原创 [leetcode] 126. Word Ladder II
DescriptionGiven two words (beginWord and endWord), and a dictionary’s word list, find all shortest transformation sequence(s) from beginWord to endWord, such that:Only one letter can be changed at...
2019-07-30 22:28:48 185
原创 [leetcode] 139. Word Break
DescriptionGiven a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words....
2019-07-30 22:21:20 151 1
原创 [leetcode] 140. Word Break II
DescriptionGiven a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all su...
2019-07-30 22:10:41 114
原创 Neo4j导入csv数据错误for header: [classId:ID, name:string, :LABEL]
今天在用Neo4j的时候出现了下面的错误:➜ installation-3.5.6 ./bin/neo4j-admin import --mode=csv --database=graph.db --nodes /Users/admin/Documents/data/knowledgeGraph/students.csv,/Users/admin/Documents/data/knowle...
2019-07-30 19:25:00 3403
原创 [leetcode] 212. Word Search II
DescriptionGiven a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjacent cell, where “adjacent” cells are ...
2019-07-30 13:26:06 118
原创 python3 调用百度翻译API
今天申请用了百度翻译的API,发现还不错,还给了示例的代码,不过python版本的代码是python2版本的,我这里改成了python3的版本:#/usr/bin/env python#coding=utf8 import http.clientimport hashlibimport urllib.parseimport randomimport jsonappid = ...
2019-07-30 08:43:50 580
原创 [leetcode] 44. Wildcard Matching
DescriptionGiven an input string (s) and a pattern §, implement wildcard pattern matching with support for ‘?’ and ‘*’.'?' Matches any single character.'*' Matches any sequence of characters (inclu...
2019-07-30 08:43:13 215
原创 [leetcode] 376. Wiggle Subsequence
DescriptionA sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first difference (if one exists) may b...
2019-07-30 08:35:20 160
原创 [leetcode] 324. Wiggle Sort II
DescriptionGiven an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3]…Example 1:Input:nums = [1, 5, 1, 1, 6, 4]Output:One possible answer is [1, 4, 1, 5, ...
2019-07-30 08:21:19 98
原创 [leetcode] 365. Water and Jug Problem
DescriptionYou are given two jugs with capacities x and y litres. There is an infinite amount of water supply available. You need to determine whether it is possible to measure exactly z litres using...
2019-07-30 08:08:09 223
原创 [leetcode] 331. Verify Preorder Serialization of a Binary Tree
DescriptionOne way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node’s value. If it is a null node, we record using a sentinel value such...
2019-07-29 22:17:53 163
原创 [leetcode] 468. Validate IP Address
DescriptionWrite a function to check whether an input string is a valid IPv4 address or IPv6 address or neither.IPv4 addresses are canonically represented in dot-decimal notation, which consists of ...
2019-07-29 21:52:30 189
原创 [leetcode] 98. Validate Binary Search Tree
DescriptionGiven 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 node contains only nodes with keys less than the node’s ...
2019-07-29 21:47:17 106 1
原创 [leetcode] 611. Valid Triangle Number
DescriptionGiven an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle....
2019-07-29 21:42:24 223
原创 [leetcode] 794. Valid Tic-Tac-Toe State
DescriptionA Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possible to reach this board position during the course of a valid tic-tac-toe game.The board is a 3...
2019-07-29 21:21:36 238
原创 [leetcode] 36. Valid Sudoku
DescriptionDetermine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:有效的数独的Python代码和C++代码的实现。
2019-07-29 08:49:32 166
原创 [leetcode] 593. Valid Square
DescriptionGiven the coordinates of four points in 2D space, return whether the four points could construct a square.The coordinate (x,y) of a point is represented by an integer array with two integ...
2019-07-29 08:43:55 152
原创 [leetcode] 678. Valid Parenthesis String
DescriptionGiven a string containing only three types of characters: ‘(’, ‘)’ and ‘*’, write a function to check whether this string is valid. We define the validity of a string by these rules:Any l...
2019-07-29 08:39:03 179
原创 [leetcode] 125. Valid Palindrome
DescriptionGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.Note: For the purpose of this problem, we define empty string as valid palindr...
2019-07-29 08:28:36 148 1
原创 [leetcode] 680. Valid Palindrome II
DescriptionGiven a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome.Example 1:Input:"aba"Output:TrueExample 2:Input:"abca"Output:True...
2019-07-29 08:04:06 127 1
原创 [leetcode] 65. Valid Number
DescriptionValidate if a given string can be interpreted as a decimal number.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true" -90e3 " => ...
2019-07-29 07:54:15 107
原创 [leetcode] 242. Valid Anagram
DescriptionGiven two strings s and t , write a function to determine if t is an anagram of s.Example 1:Input:s = "anagram", t = "nagaram"Output:trueExample 2:Input:s = "rat", t = "car"Out...
2019-07-29 07:49:55 140 1
原创 [leetcode] 393. UTF-8 Validation
DescriptionA character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules:For 1-byte character, the first bit is a 0, followed by its unicode code.For n-bytes character, the f...
2019-07-29 07:43:49 84
原创 [leetcode] 467. Unique Substrings in Wraparound String
DescriptionConsider the string s to be the infinite wraparound string of “abcdefghijklmnopqrstuvwxyz”, so s will look like this: “…zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd…”.Now we ...
2019-07-29 07:35:33 160
原创 [leetcode] 62. Unique Paths 不同路径
DescriptionA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to r...
2019-07-29 07:22:17 109
原创 [leetcode] 63. Unique Paths II - 不同路径 II
DescriptionA robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to r...
2019-07-28 22:30:26 150
原创 [leetcode] 804. Unique Morse Code Words
DescriptionInternational Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: “a” maps to “.-”, “b” maps to “-…”, “c” maps to “-.-.”, and so ...
2019-07-28 20:29:08 103
原创 [leetcode] 96. Unique Binary Search Trees
DescriptionGiven n, how many structurally unique BST’s (binary search trees) that store values 1 … n?Example:Input:3Output:5Explanation:Given n = 3, there are a total of 5 unique BST's: ...
2019-07-28 19:55:49 90
原创 [leetcode] 95. Unique Binary Search Trees II
DescriptionGiven an integer n, generate all structurally unique BST’s (binary search trees) that store values 1 … n.Example:Input:3Output:[ [1,null,3,2], [3,2,null,1], [3,1,null,null,2],...
2019-07-28 17:32:08 125 1
原创 [leetcode] 1. Two Sum
DescriptionGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not us...
2019-07-28 17:25:51 176 1
原创 [leetcode] 653. Two Sum IV - Input is a BST
DescriptionGiven a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.Example 1:Input: 5 / \ 3 6...
2019-07-28 17:19:44 107 1
原创 [leetcode] 167. Two Sum II - Input array is sorted
DescriptionGiven an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the t...
2019-07-28 17:14:59 92 1
原创 [leetcode] 669. Trim a Binary Search Tree
DescriptionGiven a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You might need to change the root of the tre...
2019-07-28 17:10:33 123
原创 [leetcode] 120. Triangle
DescriptionGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the following triangle[ [2], [3,4]...
2019-07-28 17:03:06 100 1
原创 [leetcode] 42. Trapping Rain Water
DescriptionGiven n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.The above elevation map is represent...
2019-07-28 16:28:31 144 2
原创 [leetcode] 867. Transpose Matrix
DescriptionGiven a matrix A, return the transpose of A.The transpose of a matrix is the matrix flipped over it’s main diagonal, switching the row and column indices of the matrix.Example 1:Input:...
2019-07-28 16:09:00 100
原创 [leetcode] 782. Transform to Chessboard
DescriptionAn N x N board contains only 0s and 1s. In each move, you can swap any 2 rows with each other, or any 2 columns with each other.What is the minimum number of moves to transform the board ...
2019-07-28 15:35:57 188
openfst-1.6.7.tar.gz
2020-05-06
RotateDemo.rar
2019-05-10
springboot getopenid demo
2019-03-13
pytorch 0.3.1 python3.6 CPU版本whl
2019-03-11
NUS-WIDE多标签分类数据集整理
2018-11-29
VGG_ILSVRC_16_layers_fc_reduced.h5
2018-11-07
Jetson-TX2 tensorflow-1.3.0-cp35-cp35m-linux_aarch64.whl
2017-12-25
bazel-0.6.1-dist.zip 下载
2017-11-15
Connectionist Temporal Classification: A Tutorial with Gritty Details
2017-09-14
TA创建的收藏夹 TA关注的收藏夹
TA关注的人