我是海大顶瓜瓜 1、从前面查找最长公共前缀 Input: ["flower","flow","flight"]Output: "fl"Example 2: Input: ["dog","racecar","car"]Output: ""Explanation: There is no common ...
分类:
编程语言 时间:
2020-04-25 01:07:27
阅读次数:
75
https://www.jianshu.com/p/dc616814ce98 一、四个测试用例 准备如下 import com.alibaba.dubbo.common.URL; import com.alibaba.dubbo.common.extension.Adaptive; import c ...
分类:
其他好文 时间:
2020-04-25 00:48:13
阅读次数:
71
整理到一个工具类里面,用到了spring和alibaba.fastjson package common; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; import o ...
分类:
编程语言 时间:
2020-04-23 21:13:11
阅读次数:
65
添加日志 添加日志同样是在Common目录下,创建一个存放日志的目录Logs和日志类MyLogger,实现的方式并不复杂,不再赘述,只是添加下源码 修改测试请求类TestMyRequest,加入日志并执行,可以看到一些效果 生成测试报告 在项目目录下新建一个存放报告的目录HTMLReposts,再创 ...
分类:
其他好文 时间:
2020-04-23 19:30:10
阅读次数:
67
题目描述 Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The ...
分类:
其他好文 时间:
2020-04-23 00:51:39
阅读次数:
73
结构 starts.py # Author:Winter Liu is coming! # 启动文件 import os import sys import json BASE_PATH = os.path.dirname(os.path.dirname(__file__)) sys.path.ap ...
分类:
其他好文 时间:
2020-04-22 16:46:21
阅读次数:
80
package rjcs; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.List; import org.apache.commons.io.FileUtils; import org. ...
分类:
移动开发 时间:
2020-04-22 13:20:33
阅读次数:
100
from PIL import Imagefrom selenium.webdriver import DesiredCapabilitiesfrom selenium import webdriverfrom selenium.webdriver.support.wait import WebDr ...
分类:
编程语言 时间:
2020-04-22 10:00:11
阅读次数:
93
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2020-04-21 22:26:53
阅读次数:
82
题意:给你n个由小写字母组成的字符串S,求出能找到k个S的新字符串,并且尽量短 考察nxt数组的含义 #include <iostream> #include <cstring> #include <cstdio> #include <algorithm> using namespace std; ...
分类:
其他好文 时间:
2020-04-21 10:11:00
阅读次数:
66