- 博客(7)
- 收藏
- 关注
原创 [leetcode] 557. Reverse Words in a String III
Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.Example 1:Input: "Let's take LeetCode contes
2017-04-21 15:30:12 620
转载 GCC常用参数详解
原文链接:http://www.cnblogs.com/zhangsir6/articles/2956798.html简介gcc and g++现在是gnu中最主要和最流行的c & c++编译器 .gcc/g++在执行编译工作的时候,总共需要以下几步:1.预处理,生成.i的文件[预处理器cpp]2.将预处理后的文件不转换成汇编语言,生成文件.s[编译器egcs]3.有汇编变
2017-04-21 09:53:11 532
原创 [leetcode] 330. Patching Array
Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in range [1, n]inclusive can be formed by the sum of some elements in the array. Ret
2017-04-19 16:46:41 392
原创 [leetcode] 556. Next Greater Element III
Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and is greater in value than n. If no such positive 32-bit
2017-04-13 17:05:02 1343
原创 [leetcode] 554. Brick Wall
There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical line from the top to the
2017-04-10 17:09:07 1980
原创 [leetcode] 389. Find the Difference
Given two strings s and t which consist of only lowercase letters.String t is generated by random shuffling string s and then add one more letter at a random position.Find the letter that was
2017-04-07 15:16:07 367
原创 [leetcode] 525. Contiguous Array
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.Example 1:Input: [0,1]Output: 2Explanation: [0, 1] is the longest contiguous subarray with
2017-04-06 10:45:48 510
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人