原创 LeetCode500. Keyboard Row我的C++解法

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyb

原创 Leetcode492. Construct the Rectangle最簡潔解法

For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular w

原创 Leetcode350. Intersection of Two Arrays II很簡單的做法

Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 = [2,

原创 LeetCode447. Number of Boomerangs時間複雜度O(N2)

Given n points in the plane that are all pairwise distinct, a “boomerang” is a tuple of points (i, j, k) such that

原创 Leetcode501. Find Mode in Binary Search Tree大道至簡

Given a binary search tree (BST) with duplicates, find all the mode(s) (the most frequently occurred element) in th

原创 Visual Studio Code 使用指南大全

VS code常用快捷鍵: 移動當前行代碼:Alt + down / alt + up 隱藏菜單欄:View > Toggle Menu Bar, 顯示菜單欄: Alt 分割編輯區:Ctrl+\ 切換編輯區:ctrl + 1, 2, 3

原创 Lua與面向對象

影響一個人最好的方式不是語言本身,而是語言背後所表露的情感。 待續

原创 LeetCode415. Add Strings小學生都會

Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: The len

原创 LeetCode347. Top K Frequent Elements【map+priority_queue解法】

Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2

原创 自己搭了個blog,更多精彩內容等你來

  http://liuchuanliang.com/ 歡迎大家光臨 歡迎大家光臨 歡迎大家光臨

原创 四大美女之一王昭君

王昭君 王昭君,名嬙,字昭君,乳名皓月, 西漢南郡秭歸人, 今湖北省宜昌市興山縣人。 漢元帝建昭元年,下詔徵集天下美女補充後宮,王昭君年當二八,仿如空谷幽蘭,自然被選入宮。從全國各地挑選入宮的美女數以千計,皇帝無法一一見面,首先由畫工

原创 LeetCode53. Maximum Subarray一種很好的做法

Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For exampl

原创 5分鐘學會Lua編程(簡明教程)

關鍵字: and break do else elseif end false goto for function if in local nil not or repeat return then true until while 標識

原创 Leetcode628. Maximum Product of Three Numbers不要太簡單

Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input:

原创 Leetcode551. Student Attendance Record I一趟遍歷

You are given a string representing an attendance record for a student. The record only contains the following three