码迷,mamicode.com
首页 >  
搜索关键字:oj    ( 4253个结果
[leetcode]Merge k Sorted Lists @ Python [基础知识: heap]
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its com...
分类:编程语言   时间:2014-10-01 00:32:30    阅读次数:270
bnu oj 34985 Elegant String (矩阵+dp)
Elegant String We define a kind of strings as elegant string: among all the substrings of an elegant string, none of them is a permutation of "0, 1,…, k". Let function(n, k) be the numbe...
分类:其他好文   时间:2014-09-30 18:43:49    阅读次数:248
[leetcode]Maximal Rectangle @ Python [图解] [很难]
原题地址:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/题意:Givennnon-negative integers representing the histogram's bar height where the ...
分类:编程语言   时间:2014-09-30 12:39:02    阅读次数:254
[leetcode]Symmetric Tree @ Python
原题地址:https://oj.leetcode.com/problems/symmetric-tree/题意:判断二叉树是否为对称的。Given a binary tree, check whether it is a mirror of itself (ie, symmetric around ...
分类:编程语言   时间:2014-09-29 03:48:56    阅读次数:195
[leetcode]Populating Next Right Pointers in Each Node @ Python [逻辑动力学]
(坦率的说,这道题目感动了我, 让我这个编程新手体验到了逻辑的美)原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/题意: 1 / \ 2 ...
分类:编程语言   时间:2014-09-29 03:08:16    阅读次数:273
杭电OJ 2019 2014年9月28日20:49:34
数列有序!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 46658 Accepted Submission(s): 20141Proble...
分类:其他好文   时间:2014-09-28 23:29:05    阅读次数:212
湘潭大学oj 1206 Dormitory's Elevator dp
27153njczy20101206Accepted1976 KB234 MSG++1415 B2014-09-28 10:01:23真是吐血ac,,,,这么easy的题。。。。。Dormitory's ElevatorAccepted : 46Submit : 302Time Limit : 10...
分类:其他好文   时间:2014-09-28 13:21:22    阅读次数:364
Light OJ 1236 Race 第二类斯特林数
第二类斯特林数 n 匹马 分成1 2 3... n组 每一组就是相同排名 没有先后 然后组与组之间是有顺序的 在乘以组数的阶乘 #include #include using namespace std; int dp[1010][1010]; int a[1010]; int main() { a[0] = 1; dp[0][0] = 1; for(int i = 1; i <= 1...
分类:其他好文   时间:2014-09-28 00:08:41    阅读次数:182
leetcode - Clone Graph
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for ea...
分类:其他好文   时间:2014-09-27 15:16:19    阅读次数:121
UVa 1329 - Corporative Network Union Find题解
UVa的题目好多,本题是数据结构的运用,就是Union Find并查集的运用。主要使用路径压缩。甚至不须要合并树了,由于没有反复的连线和改动单亲节点的操作。郁闷的就是不太熟悉这个Oj系统,竟然使用库中的abs就会WA,自己写了个abs小函数就过了。题目:http://uva.onlinejudge....
分类:Web程序   时间:2014-09-26 18:46:08    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!