码迷,mamicode.com
首页 >  
搜索关键字:hdu1219 ac me    ( 16537个结果
部署到IIS7.5
2014-06-05参考:WCF部署到IIS7.5注意点 http://blog.csdn.net/fairyeye/article/details/6732584一步步教你创建.net 4服务并且寄宿在IIS 7.5中 http://leaver.me/archives/1245.htmlIIS7...
分类:其他好文   时间:2014-06-11 23:27:51    阅读次数:204
字典树小结
字典树: 字典树 即Tire树,以一个空的头结点分若干的分支,来存放数据,虽浪费了大量内存,但是查找速度非常快。 匹配 时间复杂度 O(n) n = strlen(a); 字典树分 3步,建树、插入、查找 当然有时候,建树的选择是很重要的一点,尽量本着少往字典树上添加节点的原则,容易爆!!! 列入下面这题,用m建树,n来查找,即可AC,如果用n来建...
分类:其他好文   时间:2014-06-09 23:42:44    阅读次数:295
leetcode——Two Sum 两数之和(AC)
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2014-06-09 23:14:45    阅读次数:264
leetcode——Longest Substring Without Repeating Characters 求链表中无重复字符的最大字串长度(AC)
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2014-06-08 16:27:47    阅读次数:231
leetcode——Add Two Numbers 两个链表表示的正整数对其求和(AC)
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 single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2014-06-08 15:30:28    阅读次数:227
leetcode——Reverse Words in a String 旋转字符串中单词顺序(AC)
题目如下: Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What co...
分类:其他好文   时间:2014-06-08 14:58:13    阅读次数:231
[LeetCode] Reverse Integer [8]
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321。 解题思路: 颠倒一个整数中数字的位置,哈哈,类似翻转字符串一样,只不过整数需要计算,需要考虑溢出,其他无而。写出代码不难,只是溢出的时候怎么办,我这里是按照返回-1处理的,在leetcode上可以AC。 代码实现:...
分类:其他好文   时间:2014-06-08 14:47:58    阅读次数:257
Swift 简介 - 苹果最新的编程语言
Swift 真的可以说是最新的编程语言了,2014wwdc刚刚发布,下面来了解一下都有哪些特点。 首先感谢原作者,主要内容是借鉴他的,参考链接 http://zh.lucida.me/blog/an-introduction-to-swift/ 关于 这篇文章简要介绍了苹果于WWDC 2014发布的编程语言——Swift。 前言 在这里我认为有必要提一下Bret V...
分类:移动开发   时间:2014-06-08 04:45:40    阅读次数:369
leetcode——String to Integer (atoi) 字符串转换为整型数(AC)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2014-06-07 12:21:30    阅读次数:284
leetcode——Reverse Integer 反转整数数字(AC)
这个题比较简单,考虑特殊情况如12000,注意检查反转后数字是否会越界溢出。...
分类:其他好文   时间:2014-06-07 12:01:08    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!