码迷,mamicode.com
首页 >  
搜索关键字:kari oj    ( 4256个结果
LeetCode OJ - Remove Nth Node From End of List
题目:Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After rem...
分类:其他好文   时间:2014-07-07 19:01:42    阅读次数:155
insertion Sort List (链表的插入排序) leecode java
逻辑简单,代码难写,基础不劳,leecode写注释不能出现中文,太麻烦,我写了大量注释,链表问题最重要的就是你那个指针式干啥的提交地址https://oj.leetcode.com/problems/insertion-sort-list//** * Definition for singly-li...
分类:编程语言   时间:2014-07-07 16:59:54    阅读次数:193
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 separa...
分类:其他好文   时间:2014-06-30 09:01:23    阅读次数:197
NOJ---页面无法显示--位运算
好吧 先解决下 -- 页面无法显示该死的Oj 不知道为什么突然无法打开了 =-= 我也就忘记题号了主要现在这场乌拉圭-哥伦比亚 刚开始 忙里偷闲 把这题来写了明天 不对 应该是今天 不知道要睡到什么时候 =-=先来贴下关于位运算的操作要求及解释--------我好像上次贴过 我忘记了 orz位运算是...
分类:其他好文   时间:2014-06-29 18:50:31    阅读次数:194
华为初级——名字的漂亮度
总结:我觉得这道题目还是很不错的。唯一不足的地方是题目没有描述清楚:名字的漂亮度=26*字母个数最多的+25*字母个数其次的+24*字母个数再其次的……其中要计算每个字母出现的频次,这里用到的算法int b[26]={0};b[[a[i][j]-'a']++;是我以前从别人的算法中学过来的。还要对频次进行排序,而且名字的漂亮度有两个量:字母的频次*字母的漂亮度。虽然是道初级题,个人认为还是可以考查基本功~哈哈,每天都登陆华为OJ平台,希望可以进华为哈~...
分类:其他好文   时间:2014-06-28 07:06:43    阅读次数:266
LeetCode OJ - Median of Two Sorted Arrays
题目:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should ...
分类:其他好文   时间:2014-06-27 11:55:43    阅读次数:187
LeetCode OJ - Add Two Numbers
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing...
分类:其他好文   时间:2014-06-27 11:38:12    阅读次数:207
SDUT OJ 1124 飞越原野 (三维BFS练习)
三维BFS...
分类:其他好文   时间:2014-06-26 13:47:56    阅读次数:180
克鲁斯卡尔(模板题)
http://acm.hdu.edu.cn/showproblem.php?pid=1372以前真二,模板题OJ真奇怪,有时能A有时W,#include #include #include #include using namespace std;struct node{ int x,y,z;...
分类:其他好文   时间:2014-06-26 12:17:50    阅读次数:161
LeetCode: Clone Graph [133]
【题目】 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 each node, and , as a separator for node label and each ne...
分类:其他好文   时间:2014-06-26 06:48:16    阅读次数:285
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!