码迷,mamicode.com
首页 >  
搜索关键字:longest substring    ( 5540个结果
leetcode_104_Maximum Depth of Binary Tree
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to...
分类:其他好文   时间:2015-02-17 10:25:14    阅读次数:168
Longest Consecutive Sequence
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/43854597 Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elemen...
分类:其他好文   时间:2015-02-16 22:13:14    阅读次数:234
hdu3534 树形dp(求树中两点之间的最大距离)
http://acm.hdu.edu.cn/showproblem.php?pid=3534 Problem Description In the Data structure class of HEU, the teacher asks one problem: How to find the longest path of one tree and the number...
分类:其他好文   时间:2015-02-14 18:56:57    阅读次数:190
[leetcode]Minimum Window Substring
Minimum Window Substring解题记录。
分类:Windows程序   时间:2015-02-14 18:54:54    阅读次数:194
截取字符串实例
#include //通过指针函数返回一个截完的串的地址 char *substring(char s[],int i,int j) { //这个临时数组必须是static,否则值传不回去 static char temp[100]; int n,m; for(m=0,n=i;n<=j;n++,m++) { temp[m]=s[n]; } temp[m]='\0'; r...
分类:其他好文   时间:2015-02-14 17:32:51    阅读次数:91
js substr与substring的区别
substring 方法用于提取字符串中介于两个指定下标之间的字符substring(start,end)开始和结束的位置,从零开始的索引参数 描述start 必需。一个非负的整数,规定要提取的子串的第一个字符在 stringObject 中的位置。stop 可选。一个非负的整数,比要提取的子...
分类:Web程序   时间:2015-02-14 12:37:56    阅读次数:143
[leetcode]Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters 解题过程。
分类:其他好文   时间:2015-02-14 12:14:20    阅读次数:117
[LeetCode]Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 这道题是求一个二叉树的深度。题目中对深度的定义是:从根节点到叶节点依次经...
分类:其他好文   时间:2015-02-13 21:15:47    阅读次数:156
多行溢出 ,文本显示为省略号如何写
多行溢出 ,文本显示为省略号怎么写?我想请问下,多行溢出 ,文本显示为省略号怎么写啊??555一行的可以,多行的就不行了哇~------解决思路----------------------用js获得一下这个div里文字的个数,当超过一定数量后substring一下,在加个...覆盖div原来的值试试...
分类:其他好文   时间:2015-02-13 14:39:18    阅读次数:170
Longest Common Prefix
https://oj.leetcode.com/problems/longest-common-prefix/Write a function to find the longest common prefix string amongst an array of strings.解题思路:这题属于...
分类:其他好文   时间:2015-02-13 14:33:08    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!