Linear data structure Queue used for BFS most of time O(1) for push O(1) for Pop O(1) for Top Stack O(1) for push O(1) for pop O(1) for top O(1) for p ...
分类:
其他好文 时间:
2019-05-13 09:18:12
阅读次数:
116
The th person has weight , and each boat can carry a maximum weight of . Each boat carries at most 2 people at the same time, provided the sum of the? ...
分类:
其他好文 时间:
2019-05-13 01:05:25
阅读次数:
143
题目描述 : https://leetcode cn.com/problems/trapping rain water/ 题目描述: 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] ...
分类:
其他好文 时间:
2019-05-11 19:37:26
阅读次数:
111
今天使用selenium时遇到如下异常信息: driver.get('https://www.baidu.com')Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\python3.7.3- ...
分类:
其他好文 时间:
2019-05-11 09:15:47
阅读次数:
687
全新Win10下安装开发环境记录 安装VScode 安装Git 安装Python3.71 VScode安装好相关插件 新建好文件夹用 VScode 打开 code-终端-新建终端 要创建虚拟环境,请使用以下命令,其中“env”是环境文件夹的名称: 进入虚拟环境文件夹 安装指定版本DJango 安装依 ...
分类:
编程语言 时间:
2019-05-09 20:06:01
阅读次数:
219
将生产者和消费者问题深入理解、融会贯通。 1.书上课后练习P187-43 semaphore sugar,water,orange,S; sugar=0;water=0;orange=0;S=1 process produce() { while(true) { P(S) /*放入原料*/ if 放 ...
分类:
其他好文 时间:
2019-05-09 19:49:39
阅读次数:
130
原文:Direct2D 第1篇 最简单的D2D程序 编译之前,得先安装DirectX SDK #include #include #include #include #pragma comment(lib, "dwrite.lib") #pr... ...
分类:
其他好文 时间:
2019-05-07 01:10:58
阅读次数:
667
1. Unity Shader的内置变量(数学篇) 使用Unity写shader的一个好处在于,它提供了很多内置参数,这使得我们不在需要自己手动算一些值。本文给出Unity内置的用于空间变换和摄像机以及屏幕参数的内置变量。这些内置变量可以在UnityShaderVariables.cginc文件中找 ...
分类:
其他好文 时间:
2019-05-06 14:25:02
阅读次数:
175
[TOC] 基本运算符 算数运算 算数运算都是数值进行计算,包括加/减/乘/除/取余/取整/幂 9 5 14 3.5 3 1 49 比较运算 比较运算包括等于/不等于/大于/小于/大于等于/小于等于 False True False True False True 赋值运算 赋值运算的运算法则和算数 ...
分类:
其他好文 时间:
2019-05-05 19:28:04
阅读次数:
156