Given a binary string s (a string consisting only of '0' and '1's). Return the number of substrings with all characters 1's. Since the answer may be t ...
分类:
其他好文 时间:
2020-07-13 09:56:37
阅读次数:
68
一、HashMap简介 HashMap是基于哈希表实现的,每一个元素是一个key-value对,其内部通过单链表解决冲突问题,容量不足(超过了阀值)时,同样会自动增长。 HashMap是非线程安全的,只是用于单线程环境下,多线程环境下可以采用concurrent并发包下的concurrentHash ...
分类:
其他好文 时间:
2020-07-12 20:50:02
阅读次数:
55
题目信息 时间: 2019-07-06 题目链接:Leetcode tag: 哈希表 排序 难易程度:中等 题目描述: 从扑克牌中随机抽5张牌,判断是不是一个顺子,即这5张牌是不是连续的。2~10为数字本身,A为1,J为11,Q为12,K为13,而大、小王为 0 ,可以看成任意数字。A 不能视为 1 ...
分类:
其他好文 时间:
2020-07-12 14:22:59
阅读次数:
56
/* * linux/boot/head.s * * (C) 1991 Linus Torvalds */ /* * head.s contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x ...
分类:
系统相关 时间:
2020-07-11 18:54:26
阅读次数:
63
package shuangzhizhen; import java.util.HashMap; /* 287. 寻找重复数 给定一个包含 n + 1 个整数的数组 nums,其数字都在 1 到 n 之间(包括 1 和 n),可知至少存在一个重复的整数。假设只有一个重复的整数,找出这个重复的数。 示 ...
分类:
其他好文 时间:
2020-07-11 12:42:08
阅读次数:
48
题目 Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exampl ...
分类:
其他好文 时间:
2020-07-10 20:58:33
阅读次数:
56
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2020-07-10 09:59:09
阅读次数:
61
插件编写要求(分页插件PageHelper) 自定义插件需要做到三点 1)实现Interceptor接口 public class PageInterceptor implements Interceptor{} 2)实现对应的方法。最关键的是intercept()方法里面是拦截的逻辑,需要增强的代 ...
分类:
编程语言 时间:
2020-07-09 19:41:08
阅读次数:
73
题目 Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the ope ...
分类:
其他好文 时间:
2020-07-08 20:02:44
阅读次数:
64
Maximum Gap Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Return 0 if the array contains le ...
分类:
其他好文 时间:
2020-07-08 15:25:35
阅读次数:
52