原创 二分查找

二分查找的效率比較高,時間複雜度爲o(log(n)),它接受一個整數鍵和一個已經有序的數組作爲參數,如果該鍵存在於數組中就返回它的索引,否則返回-1,用一個while循環判斷low與high的大小,當low>high的時候跳出循環,否則用

原创 31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.

原创 55. Jump Game

Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element i

原创 15. 3Sum

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in

原创 什麼是DSL

轉載:http://blog.csdn.net/dslztx/article/details/46682889 DSL的全稱是domain-specific language,它在wiki上的定義如下:A domain-specific

原创 74. Search a 2D Matrix--判斷一個數是否在一個矩陣中

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:

原创 06:Tensorflow的可視化工具Tensorboard的初步使用

轉自這篇博客 標籤(空格分隔): 王小草Tensorflow筆記 筆記整理者:王小草  筆記整理時間:2017年3月7日  代碼原文請見github: 當使用Tensorflow訓練大量深層的神經網絡時,我們希望去跟蹤神經網絡的整

原创 快速學會pandas中Dataframe索引.ix,.iloc,.loc的使用以及區別

轉自:https://blog.csdn.net/qq1483661204/article/details/77587881

原创 chrome jsonView插件安裝

轉自點擊打開鏈接chrome 應用商店打不開,想裝插件愁死人了。今天想到一個好方法,以 jsonView插件爲例分享一下。1、打開 https://github.com ;2、搜索 jsonView 鏈接:https://github.c

原创 使用virtualenv創建虛擬python環境

轉自:http://www.the5fire.com/virtualenv-python-env.html 另外附上其他鏈接 本來打算先寫一篇python程序如何打包的文章,但是又不願意測試打包的時候把那些demo程序安裝到pytho

原创 Pandas中loc,iloc和ix的區別

轉自這篇博客 直接看例子: >>> data = pd.Series(np.arange(10), index=[49,48,47,46,45, 1, 2, 3, 4, 5]) >>> data 4

原创 Java中的split函數

在刷到leetcode第657題的時候,看到一種解法是用分割後的字符串數組的長度去判斷Robot是否能回到原點,代碼如下: moves= moves + " "; return moves.split("L").length==mov

原创 卸載Python時報錯:No Python 3.6 installation was detected

轉自:https://blog.csdn.net/baidu_32923815/article/details/79519962卸載Python時出現報錯,怎麼辦?這兩天使用Python時出現了一些問題,實在搞不定,所以就決定卸掉重新安裝

原创 2017年度NLP領域論文TOP10(附鏈接)

轉自: https://blog.csdn.net/tmb8z9vdm66wh68vx1/article/details/79314330

原创 windows下安裝TensorFlow

轉自:這篇博客 官方各版本的安裝說明:https://www.tensorflow.org/install/ 本文介紹如何在windows環境下安裝tensorflow, 跑起來簡單的demo。 1.安裝python(python