码迷,mamicode.com
首页 >  
搜索关键字:scheduling repeating    ( 957个结果
LeetCode #Longest Substring Without Repeating Characters#
LeetCode #Longest Substring Without Repeating Characters# 折腾了一回,第一感觉就是没有感觉...这种没技巧的话暴力是不现实的..而后发现其实没有很好理解题目的意 思考过么?究竟什么是最长的子字符串 这里有个很要命的概念, 子字符串,别小看这家伙.是搞定题目的关键. "abcduiwe" 这...
分类:其他好文   时间:2015-04-03 00:18:57    阅读次数:115
[LeetCode] Fraction to Recurring Decimal 哈希表
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:其他好文   时间:2015-03-31 22:05:59    阅读次数:133
poj 4048 Chinese Repeating Crossbow 线段规范相交的判断
题意: 给n条线段和初始点,求初始点发出的射线最多能穿过多少条线段(有交点就算穿过)。 分析: 枚举线段端点,判断线段是否规范相交,需要严密的模板。 代码: //poj 4048 //sep9 #include using namespace std; typedef long long ll; const ll maxN=2000; const ll maxL=40028; str...
分类:其他好文   时间:2015-03-31 18:14:30    阅读次数:111
[LeetCode]Longest Substring Without Repeating Characters
题意:给定一个字符串,查找最长的子串的长度(没有重复字符)。原题来自:https://leetcode.com/problems/longest-substring-without-repeating-characters/分析:我自己的思路,和曾经做的求最长公共子串长度一样,不过那个是用二维数组,...
分类:其他好文   时间:2015-03-31 12:22:39    阅读次数:106
Spring定时任务执行:注解方式
备注:这个是基于搭建好spring的环境下的1.定时任务类package com.qunar.ittsb2b.aftersales.utils;import java.util.Date;import org.springframework.scheduling.annotation.Schedul...
分类:编程语言   时间:2015-03-30 18:06:13    阅读次数:120
Longest Substring Without Repeating Characters
求最长字串,要求字串中的所有字母不重复 思路 设定head和tail两个指针,tail每往前移动一格,便检查tail和head之间的所有字母是否与tail指向的字母重复,如果重复则将head指向重复的后一格例如:abcdefdc,当前head指向a,tail指向f,当tail指向下一个d的时候扫描h...
分类:其他好文   时间:2015-03-30 12:54:25    阅读次数:114
【贪心算法】Longest Substring Without Repeating Characters
题目:leetcode Longest Substring Without Repeating Characters Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repea...
分类:编程语言   时间:2015-03-29 18:08:07    阅读次数:152
Leetcode 3 Longest Substring Without Repeating Characters
1.题目要求Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating lett...
分类:其他好文   时间:2015-03-29 17:51:03    阅读次数:123
Leetcode: Fraction to Recurring Decimal
题目: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating, enclose the repeating part in parentheses.For...
分类:其他好文   时间:2015-03-29 16:36:10    阅读次数:144
leetcode4 ---Longest Substring Without Repeating Characters
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...
分类:其他好文   时间:2015-03-22 10:40:52    阅读次数:321
957条   上一页 1 ... 71 72 73 74 75 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!