码迷,mamicode.com
首页 > 其他好文 > 日排行
剑指 Offer 57. 和为s的两个数字
题意 在一个有序数组里找两个和为s的数字 思路 1??有序,立刻联想到二分查找,我们可以依次遍历数组中的每个数字,然后二分查找另一个数字使得和可以为s。 2??双指针的写法 一开始分别放在最左和最右,对应为最小和最大的数字,记两个指针指向的元素的和为sum 如果sum > target,说明太大,则 ...
分类:其他好文   时间:2021-02-15 12:36:24    阅读次数:0
Async and Await
Most people have already heard about the new “async” and “await” functionality coming in Visual Studio 11. This is Yet Another Introductory Post. Firs ...
分类:其他好文   时间:2021-02-15 12:36:36    阅读次数:0
CentOS7 root 用户正确密码提示:“sorry,that didn't work.please try again”
问题描述:CentOS 7.9版本 root用户密码输入正确,出现错误密码提示:“sorry,that didn't work.please try again” 解决方案 一,创建普通用户,以前通用户登录 打开终端:输入命令 sudo passwd root 然后输入旧密码,新密码,再确认新密码( ...
分类:其他好文   时间:2021-02-15 12:37:10    阅读次数:0
entOS7 配置阿里云yum源方法
1、打开centos的yum文件夹 cd /etc/yum.repos.d/ 2、用wget下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 如果wget命令不生效,说明还没有安装wget工具, yum -y install wge ...
分类:其他好文   时间:2021-02-15 12:37:24    阅读次数:0
PyChram 使用 jupyter notbook 注意事项
一、连接问题 PyCharm 版本:2020.2.X 连接时,Configured Serve 的选项那里,输入的 url 要带 token。 配置好之后,在第一次运行代码段时,IDE 会弹出一个让我们输入 token 的提示窗口,输入对应的 token 即可。 ...
分类:其他好文   时间:2021-02-15 12:37:42    阅读次数:0
「Selenium」- Can not connect to the Service /path/to/chromedriver @20210211
问题描述 # python3.7 /tmp/demo.py Traceback (most recent call last): File "/tmp/demo.py", line 4, in <module> driver = webdriver.Chrome('/srv/sharing/pack ...
分类:其他好文   时间:2021-02-15 12:38:15    阅读次数:0
vue2021年复习系列
Vux复习一(基础) Vue复习二(渲染函数) Vue复习三(路由) Vue复习四(vue-api) Vue复习五(vuex) Vue复习六(vue-cli/axios) ...
分类:其他好文   时间:2021-02-15 12:38:51    阅读次数:0
Codeforces Round #697 (Div. 3) A-G
A. Required Remainder 题意: $t$组样例,判定一个正整数$n$是否存在一个大于$1$的奇数因子,\((1≤t≤10^4), (2≤n≤10^{14})\) 思路: 打表,发现只有满足$2^$的数字不存在奇数因子。 Code: int main(){ ios::sync_wit ...
分类:其他好文   时间:2021-02-15 12:39:39    阅读次数:0
Vue2.x Class & Style Bindings
Intoduciton: The way of using '' in html part confused me when I was learning Class&Style Bindings in Vue's official guide.(of course it's also becaus ...
分类:其他好文   时间:2021-02-15 12:40:17    阅读次数:0
struct 和 class的区别
struct默认成员为public的,class默认成员为private的,此外并没有什么区别 所以用一个结构体给另一个结构体赋值时,一般结构体里如果没有定义赋值运算符,则会像类那样使用默认赋值运算符或默认拷贝构造函数。 1 #include <iostream> 2 3 using namespa ...
分类:其他好文   时间:2021-02-15 12:40:35    阅读次数:0
StatefulSet删除
1.分类 级联删除: 删除StatefulSet时同时删除pod 非级联删除: 删除StatefulSet时不删除pod 2.级联删除 [root@k8s-master01 ~]# kubectl get pod NAME READY STATUS RESTARTS AGE nginx-6cdd5d ...
分类:其他好文   时间:2021-02-15 12:41:00    阅读次数:0
0242. Valid Anagram (E)
Valid Anagram (E) 题目 Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input: s = "anagram", t = "nagaram" ...
分类:其他好文   时间:2021-02-15 12:41:17    阅读次数:0
vue 递归组件的两种方法
app.vue <template> <div> <list :data="data"></list> <hr/> <render :data="data"></render> </div> </template> <script> import list from "./list.vue"; im ...
分类:其他好文   时间:2021-02-15 12:41:49    阅读次数:0
异步方法测试,暂时不知道对错
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:其他好文   时间:2021-02-15 12:42:07    阅读次数:0
前缀树(Trie)
实现前缀树 知识点 Trie (发音为 "try") 或前缀树是一种树数据结构,用于检索字符串数据集中的键。 常见的应用场景有: 自动补全 拼写检查 IP路由(最长前缀匹配) 打字预测 示例 实现 Trie (前缀树) class TrieNode { private final int R = 2 ...
分类:其他好文   时间:2021-02-15 12:42:37    阅读次数:0
ASM25th003: 磁芯大战core wars
相关链接:https://blog.csdn.net/weixin_34256074/article/details/92064028百科:https://baike.baidu.com/item/core%20war/6157795?fr=aladdin官网:http://www.koth.org ...
分类:其他好文   时间:2021-02-15 12:42:52    阅读次数:0
IDEA反编译
IDEA反编译 第一步 点击project structure(快捷键Ctrl+Alt+Shift+S),复制图中的文件地址到导航栏 第二步 可以看到文件打开之后是乱码,我们回到IDEA右键包或类,选择Open in Explorer打开文件夹,把文件拷贝进去。可以看到IDEA多了一个类,打开它,可 ...
分类:其他好文   时间:2021-02-15 12:43:06    阅读次数:0
开发自定义的dremio 函数
dremio 自定义函数的开发与drill 模式是一样的,以下是一个简单demo 预备 dremio 一些核心的功能都是在 dremio-sabot-kernel 中的,可以看看源码还是比较有用的 项目结构 项目主要是创建一个uuid 的函数 项目结构 ├── pom.xml ├── src │ ├ ...
分类:其他好文   时间:2021-02-15 12:43:24    阅读次数:0
filter的灵活运用,对数据层级关系的处理 (Cascader 级联选择器的理想数据处理)
运用filter对 Cascader 级联选择器数据的处理: 理想数据类型: options: [{ value: 'zhinan', label: '指南', children: [{ value: 'shejiyuanze', label: '设计原则', children: [{ value: ...
分类:其他好文   时间:2021-02-15 12:43:41    阅读次数:0
爬虫:之下载QQ音乐(我还没有搞定,等我学了爬虫回来写你)
import requests import re import os import json import time as t class QQmusic(): """代码仅供学习""" def __init__(self): """初始化""" self.headers = { 'Accept- ...
分类:其他好文   时间:2021-02-15 12:44:00    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!