原创 LAMP環境搭建(M=Mongo)

LAm(mongo)P環境搭建                                                                                     ——Nerbit(181471268,

原创 Matlab2010與VS2010初吻(一)

        (最近因程序中需要數值計算和做圖表,研究了matlab與vs混合編程。結合網上的各種版本及個人摸索,找到一種可行且又簡單易學的方法,現拿與大家分享)      一、在Matlab中用m文件生成C/C++的DLL      

原创 Huffman - coding with matlab

%%近學習圖像處理,書中的huufman編碼代碼實在難以恭維,網上又未尋得matlab版以供參考,遂自己動手。。。 %% % Function :huffman 編碼 % Author :joooogoofooo(090713

原创 【leetcode with java】3 Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters. For example, the longest substri

原创 【Shadow DOM】 渲染與隔離

0前言 <span style="font-weight: normal;">Shadow DOM的權威文檔請參閱:</span><span style="font-weight: normal;">Shadow DOM作用主要是方便前

原创 座位調整(百度之星)

//歸類:XXXX //BY:09071308 //題目:調整位置 // D[100 50 80 ;100 70 30 ;50 100 30]->280 測試成功 #include<iostream> #include<ctime> u

原创 【leetcode with java】2 Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each o

原创 【leetcode with java】4 Median of Two Sorted Arrays

<pre name="code" class="plain"><pre name="code" class="java"><pre name="code" class="plain"><pre name="code" class="pla

原创 【leetcode with java】1 Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum sh

原创 【leetcode with java】5 Longest Palindromic Substring

【分析】該問題的最優解可以從局部的最優解導出,且計算過程中存在大量重複計算,顯然是要用動態規劃了。 用二維布爾數組mem[][]記錄每個子串是否爲迴文,mem[i][j]表示第i個字符到第j個字符間的子串是否爲迴文。 初始化:當i>=

原创 關於單例模式的最全總結

單例類是最簡單的一個OOP設計模式,然而單例模式並不那麼簡單,因此技術面試中面試官往往會問到它。 這裏總結了關於java中單例模式的一系列問題。僅供總結和分享,請不要用來難爲面試的娃們。 1. 1最簡單的單例--餓漢單例 餓漢單例指的是在

原创 【leetcode with java】7 Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers.

原创 【tomcat】tomcat配置ssl的蛋疼事

前言 最近寫程序要測試SSL Socket代碼,於是下了最新的tomcat-8.0.28,不料本來應該分分鐘搞定的事,卻搞出來蛋疼意外 tomcat下配置SSL有兩種方式:JSSE(JRE 1.4之後自帶的實現)和APR(利用OpenSS

原创 python2.7恢復被不小心覆蓋的內建函數

例子: 不小心用str = "xxx"覆蓋了python的內建函數str 後果:需要將數字轉換爲字符串時無法使用str(n)。(當然,還可以用"{0}".format(n) 或 "%d" % n等方法) 解決: <span style="

原创 泛型總結

見: https://onedrive.live.com/embed?cid=E7A311CDC38EDFF3&resid=E7A311CDC38EDFF3%21617&authkey=ADbjfUrYoqgfcKE&em=2&wdSta