原创 Implement Stack using Queues - LeetCode 225
題目描述: Implement the following operations of a stack using queues. push(x)
原创 Count Complete Tree Nodes - LeetCode 222
題目描述: Given a complete binary tree, count the number of nodes. Definition
原创 Triangle - LeetCode 120
題目描述: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the
原创 Evaluate Reverse Polish Notation - LeetCode 150
題目描述: Evaluate the value of an arithmetic expression in Reverse Polish Not
原创 Basic Calculator - LeetCode 224
題目描述: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and
原创 Edit Distance - LeetCode 72
題目描述: Given two words word1 and word2, find the minimum number of steps re
原创 數據庫三大範式詳解
本文在原文的基礎上略作了一些修改。原文出處:http://ce.sysu.edu.cn/cdbm/news/coures/200908/news_20090807210925_242.html 數據庫範式1NF 2NF 3NF BCNF
原创 Contains Duplicate II - LeetCode 219
題目描述: Given an array of integers and an integer k, find out whether there
原创 ZigZag Conversion - LeetCode 6
題目描述: The string "PAYPALISHIRING" is written in a zigzag pattern on a give
原创 Contains Duplicate III - LeetCode 220
題目描述:Given an array of integers, find out whether there are two distinct i
原创 Maximal Square - LeetCode 221
題目描述:Given a 2D binary matrix filled with 0's and 1's, find the largest sq
原创 Rectangle Area - LeetCode 223
題目描述: Find the total area covered by two rectilinear rectangles in a 2D pl
原创 Combinations - LeetCode 77
題目描述: Given two integers n and k, return all possible combinations of k nu
原创 g++和gcc的相同點和區別
gcc和g++的區別和聯繫 原文出處:http://blog.csdn.net/nana08/article/details/6910294 gcc和g++都是GNU(一個組織)的編譯器。 1、對於.c後綴的文件,gcc把它當做是
原创 Convert Sorted List to Binary Search Tree - LeetCode 109
題目描述: Given a singly linked list where elements are sorted in ascending or