原创 leetcode005:Longest Palindromic Substring
1 問題描述 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S i
原创 leetcode028:Implement strStr()
問題描述 Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part o
原创 leetcode044:Wildcard Matching
問題描述 Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches
原创 leetcode025:Reverse Nodes in k-Group
問題描述 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number
原创 leetcode010:Regular Expression Matching
問題描述 題目鏈接 ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element. The matching shoul
原创 leetcode023:Merge k Sorted Lists
問題描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 問題分析 思路1 這個
原创 leetcode004: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. Th
原创 leetcode006:ZigZag Conversion
問題描述 The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want
原创 leetcode012:Integer to Roman
問題描述 Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 問題
原创 C語言union關鍵字
union 關鍵字的用法與struct 的用法非常類似,但也有很大的不同。 union 維護足夠的空間來置放多個數據成員中的“一種”,而不是爲每一個數據成員配置空間,在union 中所有的數據成員共用一個空間,同一時間只能儲存其中
原创 leetcode003:Longest Substring Without Repeating Characters
問題描述 Longest Substring Without Repeating Characters Given a string, find the length of the longest substring witho
原创 leetcode009:Palindrome Number
問題描述 Determine whether an integer is a palindrome. Do this without extra space. 分析 從問題描述奇少看出,代碼也不會太多。關鍵點是不使用額外空間的情況
原创 leetcode007:Reverse Integer
問題描述 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 分析 分析之前,leetcode提
原创 leetcode008:String to Integer (atoi)
問題描述 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you wa
原创 Ubuntu14.04安裝wineqq國際版出現無法輸入中文的解決方法
最近使用鏈接Ubuntu14.04安裝wineqq國際版成功安裝qq,但發現無法輸入中文,英文正常。最後各種google+百度找到問題:我的ubuntu14.04的語言環境是English,而wine-qqintl是默認中文環境,