码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
作业调度算法
#include #include #include #include /*conio.h是一个包含一些字符处理函数的头文件,如getch(),getch()是无显示的从键盘接收一个字符,有显示的接收是getchar()*/typedef char string[10]; /* //定义string...
分类:编程语言   时间:2015-05-07 10:17:03    阅读次数:230
JavaScript 基本数据类型 与类型检测
一、【JavaScript 基本数据类型】 JavaScript 拥有动态类型。这意味着相同的变量可用作不同的类型 "string"   "number"   "object"   "boolean"   "function"   "undefined" string类型 属性: str.length var str = "123,ABC,900,rgy,rrrr"; c...
分类:编程语言   时间:2015-05-07 08:53:06    阅读次数:167
Longest Common Prefix ——解题报告
【题目】     Write a function to find the longest common prefix string amongst an array of strings.     【分析】      公共前缀指的是所有字符串的前缀都相同。显然,这个最长公共前缀的长度不会超过所有字符串中最短的那个。     我们先求得最短串长minLen,然后遍历所有字符串中的前...
分类:其他好文   时间:2015-05-07 08:45:58    阅读次数:104
Longest Substring Without Repeating Characters
public class Solution { public int lengthOfLongestSubstring(String s) { int max = 0; if (s == null || s.length() == 0...
分类:其他好文   时间:2015-05-07 07:36:02    阅读次数:143
C#语言的索引器
using System;using System.IO;namespace ConsoleApplication2{ class Program { static void Main(string[] args) { va...
分类:编程语言   时间:2015-05-07 07:35:19    阅读次数:241
C#的multi-casting delegate(委托)
using System;using System.IO;namespace ConsoleApplication2{ delegate void D(int x); class Program { static void Main(string[...
分类:Windows程序   时间:2015-05-07 07:34:44    阅读次数:196
primeNumber
public class primeNum { public static void main(String[] args) { // TODO Auto-generated method stub int N =100; boolean[] a=new boolean[N+1]...
分类:编程语言   时间:2015-05-07 07:33:01    阅读次数:133
[Leetcode][020] Valid Parentheses (Java)
题目在这里:https://leetcode.com/problems/valid-parentheses/【标签】Stack; String【个人分析】这个题应该算是Stack的经典应用。先进后出 ( FILO) 的结构: 先来的左边括号跟后面的右边括号相匹配。【代码解释】创建一个栈,如果遇到的是...
分类:编程语言   时间:2015-05-07 06:26:27    阅读次数:161
Java反射基础
import java.io.InputStream;import java.util.List;public class Person { public Integer id = 1; private String name = "default"; private static...
分类:编程语言   时间:2015-05-07 06:23:19    阅读次数:119
筛法打印100以内的素数
package exp;public class Main { public static void main(String[] args){ int M = 100; boolean[] p = new boolean[M]...
分类:其他好文   时间:2015-05-07 06:21:54    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!