自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

pjq的博客

PYTHON

  • 博客(14)
  • 收藏
  • 关注

原创 leetcode 795. Number of Subarrays with Bounded Maximum

leetcode 795. Number of Subarrays with Bounded Maximumleetcode 795. Number of Subarrays with Bounded Maximum题目描述解答思路代码题目描述We are given an array A of positive integers, and two posit...

2018-04-11 16:10:14 270

原创 leetcode 794. Valid Tic-Tac-Toe State

leetcode 794. Valid Tic-Tac-Toe Stateleetcode 794. Valid Tic-Tac-Toe State题目描述解答思路代码题目描述A Tic-Tac-Toe board is given as a string array board. Return True if and only if it is possibl...

2018-04-08 10:57:24 512

原创 leetcode 793. Preimage Size of Factorial Zeroes Function

leetcode 793. Preimage Size of Factorial Zeroes Functionleetcode 793. Preimage Size of Factorial Zeroes Function题目描述解答思路代码题目描述Let f(x) be the number of zeroes at the end of x!. (Rec...

2018-04-07 16:34:21 235

原创 leetcode 792. Number of Matching Subsequences

leetcode 792. Number of Matching Subsequencesleetcode 792. Number of Matching Subsequences题目描述解答思路代码题目描述Given string S and a dictionary of words words, find the number of words[i] t...

2018-04-06 15:18:49 1170

原创 leetcode 791. Custom Sort String

leetcode 791. Custom Sort Stringleetcode 791. Custom Sort String题目描述解答思路代码题目描述S and T are strings composed of lowercase letters. In S, no letter occurs more than once.S was sorted...

2018-04-05 13:03:59 204

原创 leetcode 790. Domino and Tromino Tiling

leetcode 790. Domino and Tromino Tilingleetcode 790. Domino and Tromino Tiling题目描述解答思路代码题目描述We have two types of tiles: a 2x1 domino shape, and an “L” tromino shape. These shapes ma...

2018-04-04 16:50:23 811 1

原创 leetcode 810. Chalkboard XOR Game

leetcode 810. Chalkboard XOR Gameleetcode 810. Chalkboard XOR Game题目描述解答思路代码题目描述We are given non-negative integers nums[i] which are written on a chalkboard. Alice and Bob take turn...

2018-04-02 16:59:25 517

原创 leetcode 789. Escape The Ghosts

leetcode 789. Escape The Ghostsleetcode 789. Escape The Ghosts题目描述解答思路代码题目描述You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is (target[...

2018-03-21 00:18:44 389

原创 leetcode 788. Rotated Digits

leetcode 788. Rotated Digitsleetcode 788. Rotated Digits题目描述解答思路代码题目描述X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is diff...

2018-03-18 23:14:12 816

原创 leetcode 787. Cheapest Flights Within K Stops

leetcode 787. Cheapest Flights Within K Stopsleetcode 787. Cheapest Flights Within K Stops题目描述解答思路代码题目描述There are n cities connected by m flights. Each fight starts from city u and ...

2018-03-18 16:24:47 1472

原创 leetcode 786. K-th Smallest Prime Fraction

leetcode 786. K-th Smallest Prime Fractionleetcode 786. K-th Smallest Prime Fraction题目描述解答思路代码题目描述A sorted list A contains 1, plus some number of primes. Then, for every p < q i...

2018-03-17 22:23:10 744

原创 leetcode 785. Is Graph Bipartite?

leetcode 785. Is Graph Bipartite?leetcode 785. Is Graph Bipartite?题目描述解答思路代码题目描述Given an undirected graph, return true if and only if it is bipartite.Recall that a graph is biparti...

2018-03-17 17:26:18 748

原创 leetcode 784. Letter Case Permutation

leetcode 784. Letter Case Permutationleetcode 784. Letter Case Permutation题目描述解答思路代码题目描述Given a string S, we can transform every letter individually to be lowercase or uppercase to c...

2018-03-17 14:44:32 1049

原创 pytroch的一点使用心得

目录目录pytroch的一些注意点Tensor和Variable的区别backward的使用pytroch的一些注意点pytorch是一个很方便的深度框架,上手简单,不过也有一些需要注意的点:Tensor和Variable的区别backward的使用Tensor和Variable的区别-Tensor只是一个类似与Numpy的矩阵块,我们可以用Tensor作为Numpy的代替。 比Num

2018-03-13 13:44:58 4003

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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