代码菌的blog

Just for fun

自己搭了个blog,更多精彩内容等你来

  http://liuchuanliang.com/ 欢迎大家光临 欢迎大家光临 欢迎大家光临

2018-07-30 21:14:32

阅读数 160

评论数 1

Lua与面向对象

影响一个人最好的方式不是语言本身,而是语言背后所表露的情感。 待续

2016-11-24 16:19:19

阅读数 495

评论数 0

5分钟学会Lua编程(简明教程)

关键字: and break do else elseif end false goto for function if in local nil not or repeat return then true until while 标识符有字母,数字,下划线组成,非数字开头,_这个标识符...

2016-11-23 17:15:18

阅读数 2587

评论数 3

Visual Studio Code 使用指南大全

常用快捷键: 移动当前行代码:Alt + down / alt + up

2016-11-17 16:19:15

阅读数 17821

评论数 0

四大美女之一王昭君

王昭君 王昭君,名嫱,字昭君,乳名皓月, 西汉南郡秭归人, 今湖北省宜昌市兴山县人。 汉元帝建昭元年,下诏征集天下美女补充后宫,王昭君年当二八,仿如空谷幽兰,自然被选入宫。从全国各地挑选入宫的美女数以千计,皇帝无法一一见面,首先由画工毛延寿各画肖像一幅呈奉御览。出生富贵的人家,...

2017-09-04 00:43:11

阅读数 1010

评论数 1

Leetcode551. Student Attendance Record I一趟遍历

You are given a string representing an attendance record for a student. The record only contains the following three characters: 'A' : Absent....

2017-07-02 21:58:24

阅读数 496

评论数 0

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: [1,2,3] Output: 6 ...

2017-07-02 21:48:47

阅读数 603

评论数 1

LeetCode53. Maximum Subarray一种很好的做法

Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array [-2,1,-3,4,-...

2017-06-30 17:25:05

阅读数 454

评论数 0

SVN报错“Previous operation has not finished; run 'cleanup' if it was interrupted”的解决方法

百试不爽的解决方法 1. 网上可以下到sqlite-shell-win32-x86: sqlite3.exe 2.将sqlite3.exe放到svn 项目的主目录下,和.svn目录同级下。 3.执行  sqlite3 .svn/wc.db "select * from work...

2017-05-22 20:52:39

阅读数 773

评论数 0

C#文件读写追加创建目录,判断目录是否存在等操作

using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FundD...

2017-04-27 23:01:10

阅读数 607

评论数 0

C#多线程实例清晰易懂

using System; using System.Threading; public class Fibonacci { private int _n; private int _fibOfN; private ManualResetEvent _doneEvent...

2017-04-27 22:57:05

阅读数 721

评论数 0

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, return [1,2]. Note:  ...

2017-04-03 21:07:27

阅读数 467

评论数 0

优先队列priority_queue的使用

#include #include #include using my_pair_t = std::pair; using my_container_t = std::vector; void test_priority_queue() { auto my_co...

2017-04-03 19:51:56

阅读数 420

评论数 0

LeetCode530. Minimum Absolute Difference in BST中序遍历真神奇

Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Input: ...

2017-03-31 22:17:10

阅读数 492

评论数 0

LeetCode541. Reverse String II小学生都会

Given a string and an integer k, you need to reverse the first k characters for every 2k characters counting from the start of the string. If there a...

2017-03-30 22:05:40

阅读数 516

评论数 0

LeetCode504. Base 7 我是如何解答的

Given an integer, return its base 7 string representation. Example 1: Input: 100 Output: "202" Example 2: Input: -7 Output...

2017-03-30 21:28:01

阅读数 509

评论数 0

LeetCode520. Detect Capital有那么难解吗

Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when on...

2017-03-28 21:44:12

阅读数 337

评论数 0

LeetCode415. Add Strings小学生都会

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

2017-02-12 22:47:16

阅读数 326

评论数 0

Leetcode506. Relative Ranks简单粗暴

Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Meda...

2017-02-11 22:16:29

阅读数 687

评论数 0

LeetCode496. Next Greater Element I使用map解答

You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for num...

2017-02-08 23:59:43

阅读数 537

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭