题目:Write a function to find the longest common prefix string amongst an array of strings.代码:class Solution {public: string longestCommonPrefix(vect...
分类:
其他好文 时间:
2015-05-10 18:56:18
阅读次数:
109
package 先来先服务;import java.util.Scanner;public class Test1 { public static void main(String []args){ //用户输入作业个数,定义三个数组分别存储用户输入作业、后备队列作业、完成运行作...
分类:
其他好文 时间:
2015-05-10 18:54:31
阅读次数:
106
一、第一阶段目标 - 把计算的功能封装成类import java.util.*;public class CeShi { public static void main(String[] args) { int e,h,k; int...
分类:
其他好文 时间:
2015-05-10 18:43:56
阅读次数:
87
问题:把给定字符串中的关键字用与关键字等长的“*”串代替。Solution:方法1: string 中的 replace 函数方法2:1 def censor(text, word):2 words = text.split(word)3 return ("*"*len(word)...
分类:
编程语言 时间:
2015-05-10 18:38:48
阅读次数:
193
Longest Substring Without Repeating Characters Total Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-05-10 17:24:44
阅读次数:
145
#include
#include
#include
#define LINE 3
#define RANK 100
void charater_string(int n,char*ptr[ ]);void alphabet_list(int n,char*str[]);void string_length(int n,char*ptr[])...
分类:
编程语言 时间:
2015-05-10 17:22:02
阅读次数:
132
Problem:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}...
分类:
编程语言 时间:
2015-05-10 17:21:30
阅读次数:
164
创建签名 所使用到的几个方法 string url = "https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack"; //随机字符串 string no...
分类:
微信 时间:
2015-05-10 17:17:24
阅读次数:
261
先看下面这段代码:public class Test { public static void main(String[] args) { } public void test(final int b) { final int a = 1...
分类:
编程语言 时间:
2015-05-10 17:11:42
阅读次数:
124
static void Main(string[] arr) { int[] shuZi; bool bj = false; while (!bj) { ...
分类:
其他好文 时间:
2015-05-10 17:05:55
阅读次数:
109