- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 leetcode 659. Split Array into Consecutive Subsequences
You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subsequences consist of at least 3 consecutive integers....
2018-04-29 21:42:28 515
原创 sql leetcode 197. Rising Temperature
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates.+---------+------------------+------------------+| Id(INT) | Recor...
2018-04-27 17:59:31 142
原创 Lintcode 1365. 最小循环节
=============2019.06.27================KMP解法。之前的解法是错的。public class Solution { /** * @param array: an integer array * @return: the length of the minimum cycle section */ pub...
2018-04-24 04:09:16 325
转载 js中全局变量,解构赋值
https://www.liaoxuefeng.com/wiki/001434446689867b27157e896e74d51a89c25cc8b43bdb3000/0014344993159773a464f34e1724700a6d5dd9e235ceb7c000
2018-04-24 02:20:24 452
原创 Phython中:IndentationError: unindent does not match any outer indentation level
而新的Python语法,是不支持的代码对齐中,混用TAB和空格的。所以出现上述错误提示了解决方法:现实空格/制表符左侧空格:_ 和 制表符:> 不能混用...
2018-04-21 22:49:19 202
转载 什么时候建索引
索引可以提高数据的检索效率,也可以降低数据库的IO成本,并且索引还可以降低数据库的排序成本。排序分组操作主要消耗的就是CPU资源和内存,所以能够在排序分组操作中好好的利用索引将会极大地降低CPU资源的消耗。如何判定是否需要创建索引?1、较频繁地作为查询条件的字段这个都知道。什么是教频繁呢?分析你执行的所有SQL语句。最好将他们一个个都列出来。然后分析,发现其中有些字段在大部分的SQL语句查询时候都...
2018-04-14 20:09:24 5016
原创 leetcode 146. LRU Cache
=======================2019.1.18====================双向链表+hashmap。双向链表存key的先后顺序消息,hashmap快速定位元素。class LRUCache { Node first; Node end; final int K; int cap; HashMap<Integer,...
2018-04-08 01:00:37 583
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人