原创 LeetCode - Sum Root to Leaf Numbers

Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is

原创 ecshop二次開發——商品列表頁顯示重量、貨號、購買數量

升級說明 在列表頁中顯示克重、貨號信息,用戶可以在列表頁直接輸入要購買的數量。 升級方法 【1】themes\default\library\goods_list.lbi文件中找到<div class=”goodsItem”>,將改標籤的

原创 MDI Winform中窗口屏幕、級聯等排列的實現

private void horizonToolStripMenuItem_Click(object sender, EventArgs e) { LayoutMdi(MdiLayout.Tile

原创 LeetCode - Validate Binary Search Tree

Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The le

原创 LeetCode - Binary Tree Level Order Traversal

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).

原创 Android的webview顯示頁面格式不正確的解決方法

webView.getSettings().setUseWideViewPort(true); webView.getSettings().setLoadWithOverviewMode(true); webView.getSetting

原创 Winform關閉窗口時彈出確認窗口的實現

下面基於常用的兩種關閉方式: 1. 點擊窗口的關閉按鈕來關閉form 2. 點擊一個button(或其他控件)來關閉form private void Form1_FormClosing(object sender, FormClosin

原创 LeetCode - Add Two Numbers

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

原创 JQuery Mobile移動Web應用開發(3):Splash Screen

創建Splash Screen的方法有: 方法一:在主頁面中放入Splash Screen的圖片,通過JavaScript來控制Splash Screen的顯示。例如http://blog.163.com/squall_smile/blo

原创 VS下運行和直接雙擊exe運行結果不同的解決方法

先簡要說一下問題背景: 1. 有一個第三方dll控件,假設該dll名爲ShowMessage,該dll通過回調定期輸出字符串格式的消息 2. 官方提供的dll示例程序是一個winform(C#)工程,同時提供了生成好的ShowMessag

原创 Lucene4.0 Demo部署

Lucene4.0自帶的Demo存在bug,本文描述如何部署Demo。 前提條件:安裝了JDK、Tomcat、Eclipse (EE),下載了Lucene 4.0壓縮文件和源碼文件。 1. 在Eclipse忠創建一個Dynamic Web

原创 Mangodb安裝(Mac OS)

1. 到http://www.mongodb.org/downloads下載相應的版本 2. 在根目錄下創建/data/db/這樣的文件夾結構,mongodb默認情況下在這個文件夾中存放數據。創建文件夾: sudo mkdir -p /

原创 LeetCode - Binary Tree Level Order Traversal II

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level b

原创 LeetCode - Minimum Depth of Binary Tree

Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from t

原创 LeetCode - Median of Two Sorted Arrays

There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall