The Triangle
时间限制:1000 ms | 内存限制:65535 KB
难度:4
描述
7
3 8
8 1 0
2 7 4 4
4 5 2 6 5
(Figure 1)
Figure 1 shows a number triangle. Write a program that calculates the highest sum of ...
分类:
其他好文 时间:
2014-10-29 21:37:14
阅读次数:
213
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-10-29 18:31:47
阅读次数:
191
--向rollup传递一列select division_id,sum(salary) from employees2 group by rollup(division_id);--向rollup传递多列select division_id,job_id,sum(salary) from emplo...
分类:
其他好文 时间:
2014-10-27 19:07:48
阅读次数:
220
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:
其他好文 时间:
2014-10-27 17:29:51
阅读次数:
170
需要额外添加两个相距为n的节点,遍历一遍之后就可以得到结果。/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(in...
分类:
其他好文 时间:
2014-10-27 00:21:55
阅读次数:
275
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-10-24 12:51:42
阅读次数:
155
SELECT t1.name, t2.salary FROM employee AS t1 INNER JOIN info AS t2 ON t1.name = t2.name; 可以对数据表使用别名selectt1.id,t2.idfromt1leftjoint2ont1.id=t2.idandt...
分类:
数据库 时间:
2014-10-23 19:01:34
阅读次数:
230
CREATE TABLE employees(
employee_id NUMBER(6),
last_name VARCHAR2(25) NOT NULL,
email VARCHAR2(25),
salary NUMBER(8,2),
commission_pct NUMBE...
分类:
数据库 时间:
2014-10-22 11:02:31
阅读次数:
275
利用反射 构造get set 方法: 1 package com.wages.salary.service.common; 2 3 import java.lang.reflect.InvocationTargetException; 4 import java.lang.reflect.Meth....
分类:
编程语言 时间:
2014-10-21 15:05:34
阅读次数:
244
Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re...
分类:
其他好文 时间:
2014-10-21 03:34:24
阅读次数:
197