原创 HTTP/2.0 總結

HTTP/2.0 總結 內容: HTTP/2 的特點 爲什麼不是 HTTP/1.2 二進制分幀層 數據流、消息和幀 請求與響應複用 數據流優先級 流控制 服務器推送 首部壓縮 1. HTTP/2 的特點 HTTP/2 的特性就是可以讓我們

原创 最大似然估計(MLE)和最大後驗概率(MAP)

原文也是轉載的:http://blog.csdn.net/upon_the_yun/article/details/8915283 最大似然估計: 最大似然估計提供了一種給定觀察數據來評估模型參數的方法,即:“模型已定,參數未知”。簡單而

原创 LeetCode121/122/123 &終極[k]次交易

1.1 題目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted

原创 mac brew 的安裝

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 使用brew安裝軟件: brew in

原创 一致性hash算法 - consistent hashing

原文http://blog.csdn.net/sparkliang/article/details/5279393 一致性 hash 算法( consistent hashing ) 張亮 consistent hashing 算法早在 

原创 Lintcode76 最長增長(上升)子序列Longest Increasing Subsequence solution

一、題目Given a sequence of integers, find the longest increasing subsequence (LIS).You code should return the length of th

原创 最長公共子序列

一、題目Given two strings, find the longest common subsequence (LCS).Your code should return the length of LCS.Have you met

原创 java的(PO,VO,TO,BO,DAO,POJO)解釋

java的(PO,VO,TO,BO,DAO,POJO)解釋    O/R Mapping 是 Object Relational Mapping(對象關係映射)的縮寫。通俗點講,就是將對象與關係數據庫綁定,用對象來表示關係數據。在O/R

原创 【LeetCode】114. Distinct Subsequences

一、題目Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a

原创 leetCode 53.Maximum Subarray

一、題目Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example

原创 配置apache禁止通過IP訪問網站

兩步:修改配置文件,重啓服務。 1. 找到apache的服務配置文件,httpd.conf,最後加上修改內容: <VirtualHost *.*.*.*> ServerName *.*.*.* <Location /> Order Al

原创 前序遍歷和中序遍歷序列能確定唯一的一棵二叉樹

由二叉樹的前序遍歷和中序遍歷序列能確定唯一的一棵二叉樹,下面程序的作用是實現由已知某二叉 樹的前序遍歷和中序遍歷序列,生成一棵用二叉鏈表表示的二叉樹並打印出後序遍歷序列,請寫出程序所缺的語句。 #incl

原创 根據Request獲取客戶端IP

來源:sourceBlog 在JSP裏,獲取客戶端的IP地址的方法是:request.getRemoteAddr() ,這種方法在大部分情況下都是有效的。但是在通過了Apache,Squid等反向代理軟件就不能獲取到客戶端的真實IP地

原创 HTML技巧:怎樣禁止圖片拖動複製

在img標籤中加入ondragstart=”return false;”即可!代碼如下: <img src=”logo.gif” width=88 height=31 ondragstart=”return false;” > on

原创 區塊鏈基礎

區塊鏈是什麼?     “區塊鏈”技術最初是由一位化名中本聰的人爲比特幣(一種數字貨幣)而設計出的一種特殊的數據庫技術,它基於密碼學中的橢圓曲線數字簽名算法(ECDSA)來實現去中心化的P2P系統設計。但區塊鏈的作用不僅僅侷限在比特幣上。