原题链接在这里:https://leetcode.com/problems/elimination-game/ 题目: There is a list of sorted integers from 1 to n. Starting from left to right, remove the fi ...
分类:
其他好文 时间:
2020-02-18 09:56:29
阅读次数:
79
原题链接在这里:https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/ 题目: Given a string s, a k duplicate removal consists of choosing k ...
分类:
其他好文 时间:
2020-02-18 09:50:48
阅读次数:
75
路由传参 用于组件与组件之间通过路由传递数据 通过url正则传递数据 i)设置 ii)如何传 vue this.$router.push( ) vue this.$route对象是管理路由参数的,传递的参数会在this.$route.params字典中 this.$route.params.pk 示 ...
分类:
其他好文 时间:
2020-02-18 09:20:29
阅读次数:
57
本文基于 Altera 官方原版文档《SignalTap II with Verilog Designs》改编而成,原文可在百度文库中下载:https://wenku.baidu.com/view/3931a1edaeaad1f346933fe3.html?from=search 一、Verilog ...
分类:
其他好文 时间:
2020-02-17 19:52:23
阅读次数:
110
题目 一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n?级的台阶总共有多少种跳法。 答案需要取模 1e9+7(1000000007),如计算初始结果为:1000000008,请返回 1。 示例 1: 示例 2: 提示: 思路 同 "【剑指Offer】面试题10 I. 斐波那契数 ...
分类:
其他好文 时间:
2020-02-17 19:45:07
阅读次数:
66
Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newes ...
分类:
其他好文 时间:
2020-02-17 18:10:55
阅读次数:
91
链接:https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/ 代码: class Solution { public: int numWays(int n) { std::vector<int> vec = {1, 1}; ...
分类:
其他好文 时间:
2020-02-17 17:52:45
阅读次数:
49
前后台交互方式(重点) """ 1)form表单方式 i)get | post 两种请求方式,get请求包含直接在浏览器中输入url回车后发送的请求 ii)该方式的特点是一定会发生页面的跳转(刷新页面叫本页跳转) - 后台决定页面路由 2)ajax异步方式 i)get | post | patch ...
分类:
移动开发 时间:
2020-02-17 00:37:17
阅读次数:
137
拿到题面后心里一阵窃喜:这不是很容易就可以二分判断吗? 这里有个坑:当$y$在区间内的个数为偶数个时,其实是判断不出来这个区间究竟是全是$x$或者有两个$y$的。 我们设两个$y$的下标为男主与女主。那么首先就是将他们~~残忍~~ 地拆开! 我们枚举二进制数位(这里是0到9)。每次查询数位为1(即相 ...
分类:
其他好文 时间:
2020-02-16 16:42:24
阅读次数:
130
1、使用nohup ./commond & 这种方法最简单. nohup这个命令可以把程序放后台运行,顺便通过1 和2 把标准输出和标准错误重定向到文件,这样程序崩溃时才会有记录可查,这两者和程序的日志最好是分开,混在一起没办法判断轻重缓急: nohup ./server 1 server.out ...
分类:
编程语言 时间:
2020-02-16 13:03:11
阅读次数:
89