码迷,mamicode.com
首页 >  
搜索关键字:can    ( 23056个结果
mysql建表出现Timestamp错误
mysql建表时如果有两个或以上的字段为Timestamp,那么可能会出现如下错误:Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON U...
分类:数据库   时间:2015-07-03 12:03:20    阅读次数:161
Linked List Cycle II
题目来自:https://leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the node where the cycle begins. If there is no cycle, return null.Follow up: Can you solve it without using extra s...
分类:其他好文   时间:2015-07-03 00:15:03    阅读次数:220
使用canvas能画各种各样的东西
用过canvas的人都知道,在这个画布上面可以制作各种各样的动画效果,想必大家都用过这个。晒晒刚刚用这个做的一个demo:现在来画一个圆看看:demo.js:var can,ctx,count = 1,w,h,i;can = document.getElementById('can');ctx = ...
分类:其他好文   时间:2015-07-02 22:22:40    阅读次数:228
mysql innodb 奔溃问题
ps -A | grep -i mysqlkill 列出来的进程service mysql start我的问题就解决了----------------------------------------------Fedora8启动mysql 报错:ERROR 2002 (HY000): Can’t c...
分类:数据库   时间:2015-07-02 20:53:40    阅读次数:126
LeetCode79:Word Search
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or vertically neig...
分类:其他好文   时间:2015-07-02 17:40:27    阅读次数:95
How to reset password for unknow root
1. Click "e" when entering the grub2. Add option " init=/bin/sh" to linux line. (/bin/sh can not be replace by /bin/bash , /bin/bash do not have passw...
分类:其他好文   时间:2015-07-02 15:33:45    阅读次数:99
Leetcode 27 Remove Element
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat...
分类:其他好文   时间:2015-07-02 15:25:15    阅读次数:113
[LeetCode] Word Break
The typical solution to this problem is to use Dynamic Programming. The state dp[i] represents whether s[0..i - 1] can be broken into words in wordDic...
分类:其他好文   时间:2015-07-02 13:39:19    阅读次数:89
LeetCode "Kth Smallest Element in a BST"
Simply to utilize BST's property. The two-pass code below can be extended to support frequent insert\delete.struct SNode{ SNode(int rcnt) : cnt(rcn...
分类:其他好文   时间:2015-07-02 11:38:44    阅读次数:108
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!