//返回等价于该字符串内数字的等价整数值 package com.swust.ll; public class Summation { public static void main(String[] args) { int sum=0; int myStr=0; String str[] = {" ...
分类:
其他好文 时间:
2020-02-16 14:44:00
阅读次数:
102
345. Reverse Vowels of a String(反转字符串中的元音字母) 链接 https://leetcode cn.com/problems/reverse vowels of a string 题目 编写一个函数,以字符串作为输入,反转该字符串中的元音字母。 示例 1: 输入: ...
分类:
其他好文 时间:
2020-02-16 14:31:59
阅读次数:
58
1.迭代器(iterator)是什么? 有道翻译:iterator—— n. 迭代器、迭代程序 百度百科:迭代器(iterator)是一种对象,它能够用来遍历标准模板库容器中的部分或全部元素,每个迭代器对象代表容器中的确定的地址。迭代器修改了常规指针的接口,所谓迭代器是一种概念上的抽象:那些行为上像 ...
分类:
其他好文 时间:
2020-02-16 13:10:18
阅读次数:
99
Problem : Reverse a linked list from position m to n . Do it in one pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: 思路 : 保存2个节点 和`cur pre cur cur nex ...
分类:
其他好文 时间:
2020-02-16 01:21:34
阅读次数:
57
网址:http://www.beijing.gov.cn/hudong/hdjl/com.web.search.mailList.flow Python爬虫代码: import requests import re import xlwt # #https://flightaware.com/liv ...
分类:
其他好文 时间:
2020-02-16 01:18:23
阅读次数:
120
给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 示例 1: 输入: "babad"输出: "bab"注意: "aba" 也是一个有效答案。示例 2: 输入: "cbbd"输出: "bb" 解:这题我首先颠倒以下,用的最长公共子串的方法,发现有些情况下是错的, ...
分类:
其他好文 时间:
2020-02-15 18:42:27
阅读次数:
67
在求最大连续和的基础上,求得连续序列的始末位置 要求:The first line of the input contains an integer T(1<=T<=20) which means the number of test cases. Then T lines follow, each ...
分类:
其他好文 时间:
2020-02-15 18:42:13
阅读次数:
65
There is no getter for property named 'id' in 'class java.lang.Integer 问题描述: 使用mybatis传入参数, 当参数类型是String ,Integer 等这些时。如果用他的<if test="id != null and i ...
分类:
编程语言 时间:
2020-02-15 15:14:51
阅读次数:
49
Ayoub thinks that he is a very smart person, so he created a function f(s)f(s) , where ss is a binary string (a string which contains only symbols "0" ...
分类:
其他好文 时间:
2020-02-15 15:06:58
阅读次数:
55