原创 c語言中的基本數據類型

c語言中的數據類型關鍵字: K&R: int long short unsigned char float double C90: signed void C99: _Bool(布

原创 可變參數函數

可變參數函數,c primer plus 第16章最後一節,560頁 #include<stdio.h> #include<stdarg.h> //可變參數包含的頭文件 int sum(int num, ..

原创 Leetcode-11:Container With Most Water

Question: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical

原创 Leetcode-21:Merge Two Sorted Lists

Question: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together

原创 設計模式:工廠模式

無工廠模式: 每個類都要求有具體的產品實現細節,並返回該產品。 例如:買電腦 class LenovoComputer{ LenovoComputer(){} public void work(){ Sy

原创 Leetcode_6 : ZigZag Conversion

Problem : The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may wan

原创 Leetcode-23:Merge k Sorted Lists

Question: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 【合併K個排序

原创 Leetcode-22:Generate Parentheses

Question: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. 給定n

原创 Leetcode--17:Letter Combinations of a Phone Number

Question: Given a digit string, return all possible letter combinations that the number could represent. A mapping of

原创 C語言中的指針(一)

指針簡介 指針:是一個值爲內存地址的變量。指針類型的數據值爲內存中的一個地址。 我們知道,任何一個數據在計算機中都是以二進制存儲的,它們存儲在計算機的內存地址中,而指針則是爲了表示這些數據的地址數據。 介紹兩種與指針有關的運算符:*

原创 資源網站

所有Qt版本下載地址: http://download.qt.io/archive/qt/ 所有Qt Creator下載地址: http://download.qt.io/archive/qtcreator/ 所有Qt VS開發插件

原创 idea 用maven搭建web項目 (後續添加框架)

maven搭建web項目 左側選擇maven,右側選擇maven-archetype-webapp Next: 輸入GroupId和ArtifactId,版本默認is ok Next: Maven home dircetory:

原创 Leetcode-1:Two Sum

Question: Given an array of integers, return indices of the two numbers such that they add up to a specific target. Yo

原创 Leetcode-20:Valid Parentheses

Question: Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string

原创 Leetcode-4:Median of Two Sorted Arrays

Question: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted a