码迷,mamicode.com
首页 >  
搜索关键字:two sum    ( 31846个结果
Depth-first Search(DFS)
There are generally two methods to write DFS algorithm, one is using recursion, another one is using stack. (reference from Wiki Pedia)Pseudocode for ...
分类:其他好文   时间:2014-06-13 08:39:34    阅读次数:218
[leetcode]Multiply Strings @ Python
原题地址:https://oj.leetcode.com/problems/multiply-strings/题意:Given two numbers represented as strings, return multiplication of the numbers as a string.N...
分类:编程语言   时间:2014-06-12 21:43:03    阅读次数:344
.NET的 DataTable中某列求和
public DataTable ReportDetail { get; set; }//定义datatable属性this.txtTotalPiece.Text = ReportDetail.Compute("sum(Piece)", "TRUE").ToString();//求和
分类:Web程序   时间:2014-06-12 13:25:34    阅读次数:307
【leetcode】Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-06-10 20:44:02    阅读次数:298
Oracle EBS-SQL (PO-6):检查订单接收总数.sql
SELECT sum(rcvt.quantity)接收事务处理汇总数--已排除退货--rsh.receipt_num 收据号, --pov.vendor_name 供应商名称, --poh.segment1 采购订单, --pol.line_num 订单行, --PTL.LINE_TYPE 行类.....
分类:数据库   时间:2014-06-10 20:22:36    阅读次数:334
【leetcode】Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-06-10 19:38:39    阅读次数:199
Merge Two Sorted Lists
题目 Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 方法 有序链表,合并成一个有序链表。 public ListNod...
分类:其他好文   时间:2014-06-10 18:13:11    阅读次数:241
Add Binary
题目 Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 方法 从后往前,每个字符进行判断。 public String addBinary(String a, String...
分类:其他好文   时间:2014-06-10 17:50:48    阅读次数:241
Codeforces Round #249 (Div. 2) A - Queue on Bus Stop
水题#include #include #include using namespace std;int main(){ int n,m; cin >> n >> m; int cnt = 0, sum = 0; for(int i = 0 ; i > a; i...
分类:其他好文   时间:2014-06-10 16:38:18    阅读次数:226
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!