• Longest Substring Without Repeating Characters

    Longest Substring Without Repeating Characters 3.Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. Example 1: Input: abcabcbbOutput: 3 Explanation: The answer is abc...

    2019-08-16 07:50:18 YYiOSPSmacHTTPS<theCOMHTTPexit

  • 高精度计算(二):大整数乘法

    高精度计算(二):大整数乘法 【例1】两个大整数乘法。 输入两个不超过200位的非负大整数a和b,求ab的值。 (1)编程思路。 用 unsigned num1[200]和num2[200]分别存放两个乘数,用result[400]来存放积。计算的中间结果也都存在result 中。result 长度取400 是因为两...

    2019-08-16 07:49:50 IE3604399timAV<the字符串函数COM

  • 高精度计算(三):大整数和减法(采用“万进制”)

    高精度计算(三):大整数和减法(采用“万进制”) 一般我们称基本数据类型无法表示的整数为大整数。而对于那些精度要求很高的数据通常称为高精度数,或称大数。 表示和存放大数的一个简单的方法就是:用数组存放和表示大数。一个数组元素,存放大数中的一位。 显然,...

    2019-08-16 07:49:34 C++语言定义IE2345iOSC++timAV<the

  • 小计C++中的引用和vector

    小计C++中的引用和vector 声明引用的同时 必须对其初始化 ,否则系统会报错,所以我们是无法这样使用 vectorint vec; 这条语句会报错,同时引用不是定义一个新的变量或对象,因此 内存不会为引用开辟新的空间存储这个引用 而vector将无法开辟存储空间。 参考博客: htt...

    2019-08-16 07:49:32 定义系统PSC++HTTPS<HTML对象COMHTTP

  • 高精度计算(一):大整数加法

    高精度计算(一):大整数加法 C/C++中的int 类型能表示的范围是-2 31 ~2 31 1。unsigned 类型能表示的范围是 0 ~2 32 1,即 0~4294967295。所以,int 和unsigned 类型变量,都不能保存超过10 位的整数。 有时我们需要参与运算的数,可能会远远不止10 位,例如要求100...

    2019-08-16 07:49:25 2345C++timAV<the字符串函数COM无法

  • Two Sum

    Two Sum Two Sum Given 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 use the same element twice. Example: Given nums...

    2019-08-16 07:49:10 iOSPSmacAVHTTPS<theCOMHTTPexit

  • Add Two Numbers

    Add Two Numbers Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked lis...

    2019-08-16 07:49:05 iOSPSmacHTTPS<theCOMHTTPgit执行

  • VC++ 窗口透明化及透明窗口上绘画、截图、轨迹

    VC++ 窗口透明化及透明窗口上绘画、截图、轨迹 源文件:https://files.cnblogs.com/files/MrFengD/Temp.rar...

    2019-08-16 07:48:55 文件PSC++HTTPSVC++COMHTTPPOSTem

  • leetcode 136 Single Number bit Option

    leetcode 136 Single Number bit Option Linked Url:https://leetcode.com/problems/single-number/ Given anon-emptyarray of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime comp...

    2019-08-16 07:48:42 PStimAVHTTPS<theCOMHTTPexitURL

  • DFS(四):剪枝策略

    DFS(四):剪枝策略 顾名思义,剪枝就是通过一些判断,剪掉搜索树上不必要的子树。在采用DFS算法搜索时,有时候我们会发现某个结点对应的子树的状态都不是我们要的结果,这时候我们没必要对这个分支进行搜索,砍掉这个子树,就是剪枝。 在DFS搜索算法中,剪枝策略就是...

    2019-08-16 07:48:31 定义wordIEiOSPStim<the函数