原创 win10 anaconda2時報錯 traceback(most recent call last)。。。。。。

版本號是: Python 2.7 安裝系統:64bit windows10 報錯爲:traceback(most recent call last

原创 LeetCode之326 Power of Three

原題: Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without usin

原创 LeetCode之7,數論部分的ReverseInteger

(PS:這兩天寒假在家,除了適當的家務要做之外,感覺學習反倒成了附屬品。) 數論的題不難,但是考察點在邊邊角角上,比如反轉時是否溢出等,尤其是負值變正值時。 reverse integer原題如下: Reverse digits o

原创 LeetCode之191 Number of 1 Bits 別名:數1

題很簡單,原題如下: Write a function that takes an unsigned integer and returns th

原创 jupyter的快捷鍵備忘

The following are the keyboard shortcuts for an IPython Notebook. Learning to use these will help speed up your inte

原创 anaconda 2-4.3.0 在win10-64 下安裝後不能啓動的問題

話說這問題相當詭異,本來用的人就不多,然後搜到的答案少之又少。 症狀如下:   ipython打不開,一閃而過   spyder點擊沒有反應   anaconda prompt可以打開,通過命令行打開spyder後,ipython的控

原创 Tensorflow PlayGround初體驗

就一句話:google工程師夠欠,我的筆記本風扇嗚嗚的轉,當然壓不壞你們的服務器,分明就是運行在我本地的筆記本上啊

原创 C++中auto的用法(轉載)

http://blog.csdn.net/huang_xw/article/details/8760403 以上爲引用地址。

原创 (Ubuntu+Tensorflow+CUDA8.0+cudnn,新鮮靠譜版)利用DL學梵高作畫---實戰記錄和心得

作者:老宅 時間:2017年3月 硬件:Core i7-6700;16GB;Nvidia GeForce GTX1070;500G SSD (PS:搞DL的實戰必須用好平臺,這裏就不多廢話了) 平臺:臺式PC 軟件:Linux 對應的GT

原创 LeetCode之8,著名的atoi

(PS:這個題,當初看到的時候,我以爲是漢諾塔呢) 原題: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible

原创 LeetCode之172 Factorial Trailing Zeroes

就是找一個數的階乘後面有多少個零。 邏輯很有意思 原題: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution shou

原创 LeetCode之231,Power of Two——新學到的超快速簡潔判別方法

數論的又一個又簡單但是騷的不行的題,有點像一道菜:番茄炒蛋,誰都會炒,但是,如何炒的好吃,入口即驚豔,是非常困難的。 就我這智商,必須得先學人家怎麼寫,所以,學到了一個新奇的判定方法。 原題是這樣的: Given an integer

原创 LeetCode258 Add Digits

不廢話: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example

原创 LeetCode292 Nim Game

(PS:這個題要先總結) You are playing the following Nim Game with your friend: There is a heap of stones on the table, each tim

原创 ubuntu關閉登陸密碼

屏幕右上角:系統設置:systemsettings; 窗口右下角:用戶賬戶:user accounts; 窗口右上角:unlock,輸入密碼後,界面修改變成unlock狀態; 屏幕中部:automatic login,改成 “on”