给定一个字符串,找到它的第一个不重复的字符,并返回它的索引。如果不存在,则返回 -1。 案例: s = "leetcode"返回 0. s = "loveleetcode",返回 2. 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/first- ...
分类:
编程语言 时间:
2020-04-10 00:25:43
阅读次数:
86
1 双向邻接表 inline void addedge(int u, int v) { to[++E] = v, next[E] = first[u], first[u] = E; to[++E] = u, next[E] = first[v], first[v] = E; } 2 有向图的强连通分 ...
分类:
其他好文 时间:
2020-04-09 13:02:23
阅读次数:
68
原文地址:https://cloud.tencent.com/developer/article/1335104 1、Func 用法 (封装方法,传入参数, 有返回值) Func<in T1, in T2, ..., out TResult> (T1, T2, ...) 封装一个方法,该方法有 (0 ...
"Well, it seems the first problem is too easy. I will let you know how foolish you are later." feng5166 says. "The second problem is, given an positiv ...
分类:
其他好文 时间:
2020-04-08 22:33:31
阅读次数:
83
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div> <div></div> </div> <table id="t1"> <tr> <td><a></a></td> <td ...
分类:
Web程序 时间:
2020-04-08 22:26:03
阅读次数:
94
1 import json 2 #字典 3 print('dict字典》') 4 dict_test = {'name': 'Zara', 'age': 7, 'class': 'First'} 5 print('初始类型:',type(dict_test)) 6 7 tes=zip(dict_te ...
分类:
编程语言 时间:
2020-04-08 19:18:31
阅读次数:
79
[TOC] map容器 是关联容器的一种,由键值对象组成,即 map 容器的元素是 pair 类型的对象 map容器的类型 1. map容器,保存的是 pair 类型的元素。pair 封装了一对键对象,键的类型是 K,对象的类型是 T。每个键都是唯一的,所以不允许有重复的键;但可以保存重复的对象,只 ...
分类:
其他好文 时间:
2020-04-08 16:11:49
阅读次数:
77
Java基本语法 大小写敏感 类名的首字母大写,且每个单词首字母大写,如MyFirstJavaClass 方法名:首字母小写,且后面每个单词首字母大写。 源文件名必须和类名相同。 主方法入口:所有的Java程序由 方法开始执行。 Java关键字 Java注释 Java源程序与编译型运行区别 如下图所 ...
分类:
编程语言 时间:
2020-04-08 12:11:43
阅读次数:
57
var targetSecondNode = $(".secondList")[0];//要监控的dom对象 var obSecondServer = new MutationObserver(function (mutations) { //dom变化回调的函数 $(".secondList .i ...
分类:
Web程序 时间:
2020-04-08 12:00:33
阅读次数:
119
一、上拉刷新和加载 <!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <title>Page Title</title> <meta n ...
分类:
Web程序 时间:
2020-04-08 10:15:07
阅读次数:
80