原创 C++11 學習筆記 模板的細節(右尖括號,using,函數模板默認參數)

一.模板的右尖括號 在C++98/03的泛型編程中,模板實例化有一個很繁瑣的地方,就是連續兩個右尖括號(>>)會被編譯解釋成右移操作符,而不是模板參數表的形式。即 <span style="font-size:14px;">templat

原创 leetcode:26 Remove Duplicates from Sorted Array-每日編程第二十三題

Remove Duplicates from Sorted Array Total Accepted: 98385 Total Submissions: 307605 Difficulty: Easy Given a sorted

原创 leetcode:118 Pascal's Triangle-每日編程第二十四題

Pascal's Triangle Total Accepted: 66425 Total Submissions: 210900 Difficulty: Easy Given numRows, generate the first

原创 leetcode:231 Power of Two-每日編程第十八題

Power of Two Total Accepted: 42645 Total Submissions: 128399 Difficulty: Easy Given an integer, write a function to d

原创 leetcode:119 Pascal's Triangle II-每日編程第二十五題

Pascal's Triangle II Total Accepted: 60120 Total Submissions: 196457 Difficulty: Easy Given an index k, return the 

原创 leetcode:88 Merge Sorted Array-每日編程第三十一題

Merge Sorted Array Total Accepted: 80108 Total Submissions: 271926 Difficulty: Easy Given two sorted integer arrays n

原创 leetcode:290 Word Pattern-每日編程第三十九題

Word Pattern Total Accepted: 19405 Total Submissions: 71219 Difficulty: Easy Given a pattern and a string str, fin

原创 leetcode:112 Path Sum-每日編程第二十七題

Path Sum Total Accepted: 81534 Total Submissions: 268857 Difficulty: Easy Given a binary tree and a sum, determine

原创 leetcode:223 Rectangle Area-每日編程第三十三題

Valid Sudoku Total Accepted: 25744 Total Submissions: 91222 Difficulty: Easy Find the total area covered by two r

原创 leetcode:160 Intersection of Two Linked Lists-每日編程第二十九題

Intersection of Two Linked Lists Total Accepted: 53988 Total Submissions: 181510 Difficulty: Easy Write a program t

原创 leetcode:58 Length of Last Word-每日編程第三十四題

Length of Last Word Total Accepted: 76106 Total Submissions: 269840 Difficulty: Easy Given a string s consists of u

原创 leetcode:190 Reverse Bits-每日編程第三十二題

Reverse Bits Total Accepted: 46760 Total Submissions: 160246 Difficulty: Easy Reverse bits of a given 32 bits unsig

原创 leetcode:203 Remove Linked List Elements-每日編程第四十題

Remove Linked List Elements Total Accepted: 44897 Total Submissions: 165785 Difficulty: Easy Remove all elements fr

原创 leetcode:225 Implement Stack using Queues-每日編程第二十六題

Binary Tree Level Order Traversal Total Accepted: 25331 Total Submissions: 83601 Difficulty: Easy Implement the f

原创 leetcode:9 Palindrome Number-每日編程第二十八題

Palindrome Number Total Accepted: 95160 Total Submissions: 317694 Difficulty: Easy Determine whether an integer is a