用sliding window的方法,之前还有个k不同元素好像也是类似的思路。有时间可以去复习下。 ...
分类:
其他好文 时间:
2016-10-16 23:43:46
阅读次数:
148
Given a string, find the length of the longest substring without repeating characters. Have you met this question in a real interview? Yes Given a str ...
分类:
其他好文 时间:
2016-10-14 07:04:04
阅读次数:
170
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: 除了两次for循环,暂时没有想到N时间复杂度的解 ...
分类:
其他好文 时间:
2016-10-14 00:25:58
阅读次数:
111
一、rtimer概述 The Contiki rtimer library provides scheduling and execution of real-time tasks (with predictable execution times) 数据结构: 1、rtimer_init rtim ...
分类:
其他好文 时间:
2016-10-13 21:42:33
阅读次数:
212
Scheduling Data Imports in SQL Server Importing data into a SQL Server database isn't really that tricky: there's a straightforward wizard that you ca ...
分类:
数据库 时间:
2016-10-13 13:52:38
阅读次数:
269
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2016-10-10 07:44:45
阅读次数:
166
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: ...
分类:
其他好文 时间:
2016-10-10 07:41:49
阅读次数:
147
Linux操作系统的基本架构 一. Linux process management 进程管理包括:process scheduling, interrupt handling, signaling, process prioritization, process switching,process... ...
分类:
系统相关 时间:
2016-10-09 16:48:01
阅读次数:
232
寻找最长的不重复串,略像滑动窗口。 上面这个粗鲁的代码,马马虎虎毕竟打败51 ~61%的code,lastIndexOf有优化的空间。 不过答案真是美妙的活动窗口实现,赞!使用了字符作为坐标,索引作为值。 ...
分类:
其他好文 时间:
2016-10-08 18:48:59
阅读次数:
112