Chaper 1. A piece of Poetry New York is 3 hours ahead of California, but it does not make California slow. Someone graduated at the age of 22, but wai ...
分类:
其他好文 时间:
2017-10-27 23:55:49
阅读次数:
406
1.要查看log日志,需修改配置文件my.ini,在[mysqld]下修改: 2.修改后,重启MySQL服务生效; 3.默认安装后error_log,slow_log 日志时间戳默认为UTC,因此会造成与系统时间不一致,与北京时间相差8个小时 因为log_timestamps 是一个GLOBAL的全 ...
分类:
数据库 时间:
2017-10-25 13:12:38
阅读次数:
296
翻译的网址:https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 作者:丹?特纳 2017年8月24日 为什么我的数据库应用程序那么慢? 当你的应用程序运行缓慢,反射动作是指责数据 ...
分类:
数据库 时间:
2017-10-23 01:16:13
阅读次数:
297
原文链接:https://www.red-gate.com/simple-talk/dotnet/net-performance/database-application-slow/ 当您的应用程序运行缓慢时,反射操作是指责数据库查询。 毫无疑问,一些更为奢侈的拖延可能会因为缺失的指数或不必要的锁定 ...
分类:
数据库 时间:
2017-10-22 21:29:11
阅读次数:
282
Sort a linked list in O(n log n) time using constant space complexity. 解题思路:归并排序的思想,空间复杂度其实是O(N)了 ...
分类:
其他好文 时间:
2017-10-22 00:10:02
阅读次数:
115
一、题目 一个链表中包含环,请找出该链表的环的入口结点。 二、思路 假设x为环前面的路程(黑色路程),a为环入口到相遇点的路程(蓝色路程,假设顺时针走), c为环的长度(蓝色+橙色路程)。 定义一个快指针:Sslow=slow.next,一个慢指针:Sfast=fast.next 当快慢指针相遇的时 ...
分类:
其他好文 时间:
2017-10-20 16:51:13
阅读次数:
250
fadeIn() fadeOut() fadeToggle() fadeTo() jQuery fadeIn() 用于淡入已隐藏的元素 ...
分类:
Web程序 时间:
2017-10-18 22:10:06
阅读次数:
202
纽约时间比加州时间早三个小时,New York is 3 hours ahead of California, 但加州时间并没有变慢。 but it does not make California slow. 有人22岁就毕业了, Someone graduated at the age of 2 ...
分类:
其他好文 时间:
2017-10-14 18:31:04
阅读次数:
179
使用快慢指针,如果有环快慢指针一定会相遇 class Solution {public: bool hasCycle(ListNode *head) { ListNode *fast, *slow; fast = slow = head; while(slow && fast) { slow = s ...
分类:
其他好文 时间:
2017-10-13 22:29:58
阅读次数:
89