Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the ...
分类:
系统相关 时间:
2016-09-24 10:28:55
阅读次数:
189
step 1: Draw a PCB shape and the main component placed in the PCB. The drawing sheet should be in the top view. If the drawing sheet is a 3D file, you ...
分类:
其他好文 时间:
2016-09-23 18:33:15
阅读次数:
221
DATEDIFF是日期相减得到天数 DATE_FORMAT对日期格式化 DATEDIFF(DATE_FORMAT(NOW(),'%Y-%m-%d'), DATE_FORMAT(should_repay_date,'%Y-%m-%d')) AS should_repay_day 统计记录数使用coun ...
分类:
数据库 时间:
2016-09-23 09:52:44
阅读次数:
191
Create site. Upload rdl files into Dashboards lib. Manage Data source. Select the rdl file and click … Data sources defined in the rdl file should be ... ...
分类:
其他好文 时间:
2016-09-22 12:57:00
阅读次数:
184
Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure.find ...
分类:
其他好文 时间:
2016-09-21 14:35:19
阅读次数:
115
题目: Given an array of integers, every element appears three times except for one. Find that single one. Your algorithm should have a linear runtime co ...
分类:
其他好文 时间:
2016-09-20 11:50:06
阅读次数:
153
题目: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3, You should return the fol ...
分类:
其他好文 时间:
2016-09-20 00:08:55
阅读次数:
153
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n ...
分类:
其他好文 时间:
2016-09-18 07:49:14
阅读次数:
183
题目: 给定一个单链表,一次反转k个节点,最终返回翻转后的链表的头节点;如果链表不足k个,则不变 举例: Given this linked list: 1->2->3->4->5 For k = 2, you should return: 2->1->4->3->5 For k = 3, you ...
分类:
其他好文 时间:
2016-09-17 23:42:07
阅读次数:
157
题目:给定一个单链表,交换两个相邻的节点,且返回交换之后的头节点 举例: Given 1->2->3->4, you should return the list as 2->1->4->3. 解题思路: 题目本身很简单,但是要注意一些细节: 1. 两对节点之间的连接 2. 如果只剩下一个节点,则不 ...
分类:
其他好文 时间:
2016-09-17 21:49:51
阅读次数:
149