03 2018 档案
摘要:Given an array A, we may rotate it by a non-negative integer K so that the array becomes A[K], A[K+1], A{K+2], ... A[A.length - 1], A[0], A[1], ..., A
阅读全文
摘要:We stack glasses in a pyramid, where the first row has 1 glass, the second row has 2 glasses, and so on until the 100th row. Each glass holds one cup
阅读全文
摘要:Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as follo
阅读全文
摘要:We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example,
阅读全文
摘要:基本实例 各种请求方式 带参数的GET请求 解析JSON 获取二进制数据和保存 添加headers 基本POST请求 Reponse属性 文件上传 维持会话 证书认证 代理 pip3 install 'requests[socks]' 使用socks代理 认证设置 异常处理
阅读全文
摘要:其实不是你安装错了,也不是你代码问题,这就是PyCharm的锅! 虽然有三种解法办法,我觉得还是改IDE配置是最佳方法 把这个钩去掉就行了......
阅读全文
摘要:有些时候,我们用pip install *** 难免发生意外,可以采用安装whl的方法,不过... 有时候出现如: whl is not a supported wheel on this platform 把whl文件名字改成以上任意格式就好了...
阅读全文
摘要:首先,你必须有会装软件的技能和一个看得懂英语的眼睛。然后保证Git也装好了 他提供了中文版的安装包哦 安装过程尽量选择默认就行,先装上面那个啊,语言包最后装。 语言配置 因为以前装过,所以...路径是 常规配置>语言 找不到对话框,请看看右键有没有多出什么新东西吧~ 另外指定一下Git.exe的路径
阅读全文
摘要:Let f(x) be the number of zeroes at the end of x!. (Recall that x! = 1 * 2 * 3 * ... * x, and by convention, 0! = 1.) For example, f(3) = 0 because 3!
阅读全文
摘要:We are given an array A of positive integers, and two positive integers L and R (L <= R). Return the number of (contiguous, non-empty) subarrays such
阅读全文
摘要:Given string S and a dictionary of words words, find the number of words[i] that is a subsequence of S. Note: All words in words and S will only consi
阅读全文
摘要:A 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 va
阅读全文
摘要:B站av11459203的一系列视频,跳过了基础篇直接进入进阶,从此难度开始加大。这里做出一些笔记分享一下。 我是1.25速度看的。。对应分P 37-38 构造函数的作用 将对象初始化为一个特定的初始状态。 构造函数的形式 函数名与类名相同 不能定义返回值类型,也不能有return语句 有形式参数,
阅读全文
摘要:We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These shapes may be rotated. Given N, how many ways are there to tile a 2 x
阅读全文
摘要:S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per
阅读全文
摘要:You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is(target[0], target[1]). There are several ghosts on th
阅读全文
摘要:X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. A number is valid if each
阅读全文
摘要:B站av11459203的一系列视频,跳过了基础篇直接进入进阶,从此难度开始加大。这里做出一些笔记分享一下。 我是1.25速度看的。。对应分P 34-36 对象:现实中对象的模拟,具有属性和行为,对象是类的实例 类:同一类对象共同属性和行为 定义对象时,通过构造函数初始化 删除对象时,通过析构函数释
阅读全文
摘要:Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand may be an integer or another e
阅读全文
摘要:Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l
阅读全文