?“Software Architect” Has Only Lowercase a’s; Deal with ItBarry HawkinsA diSAppoinTing TREnd has been in bloom for some time now within software development: the attempt to professionalize the practice...
分类:
其他好文 时间:
2015-08-14 10:00:40
阅读次数:
120
题目:罗马数字转为阿拉伯数字
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.
分析:题意:将给定的罗马数字转为阿拉伯数字
从前往后遍历罗马数字,如果某个数比前一个数小,则把该数加入到结果中;
反之,则在结果中两次减去前一个数并加...
分类:
其他好文 时间:
2015-08-13 20:11:14
阅读次数:
135
题目:阿拉伯数字转罗马数字Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.原题链接地址:https://leetcode.com/problems/integer-to-roman/
分析:题意将阿拉伯数字num转罗马数字
拼写...
分类:
其他好文 时间:
2015-08-13 20:10:49
阅读次数:
129
Swordfish
Time Limit: 2 Seconds Memory Limit: 65536 KB
There exists a world within our world
A world beneath what we call cyberspace.
A world protected by firewalls,
passwords and the mo...
分类:
其他好文 时间:
2015-08-12 21:51:25
阅读次数:
113
Swordfish
Time Limit: 2 Seconds Memory Limit: 65536 KB
There exists a world within our world
A world beneath what we call cyberspace.
A world protected by firewalls,
passwords and the mo...
分类:
编程语言 时间:
2015-08-12 21:50:18
阅读次数:
137
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the...
分类:
其他好文 时间:
2015-08-12 21:30:31
阅读次数:
106
SELECT fspc, wmsys.wm_concat (jsrzmc) as jsr FROM dxjsrxx GROUP BY fspc select fspc, LISTAGG(jsrzmc,',') WITHIN GROUP( ORDER BY fspc) jsrfrom dxjsrx.....
分类:
数据库 时间:
2015-08-12 18:44:09
阅读次数:
204
August 10, 2015有二种解法, Greedy算法, 和DP算法. 二种算法都通过leetcode online judge. 贪婪算法, 花了一个小时理解代码, 修改后很好理解.Problem statement:Find the contiguous subarray within a...
分类:
其他好文 时间:
2015-08-11 09:44:20
阅读次数:
127
题目描述: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,?...
分类:
编程语言 时间:
2015-08-09 20:16:09
阅读次数:
134
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Solution: 枚举,考虑每个字符以及每两个字符的组合 1 class Soluti...
分类:
其他好文 时间:
2015-08-08 21:05:42
阅读次数:
115