LeetCode 1374. Generate a String With Characters That Have Odd Counts生成每种字符都是奇数个的字符串【Easy】【Python】【字符串】 Problem "LeetCode" Given an integer , return a ...
分类:
编程语言 时间:
2020-03-08 15:46:37
阅读次数:
82
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page isELIgnored="false" %> <%@ taglib prefix="c" uri="http ...
分类:
其他好文 时间:
2020-03-08 14:03:43
阅读次数:
77
代码: 1 # -*- coding: utf-8 -*- 2 # @Time : 2018/11/23 0:09 3 # @Author : MaochengHu 4 # @Email : wojiaohumaocheng@gmail.com 5 # @File : generate_tfreco ...
分类:
其他好文 时间:
2020-03-07 22:39:09
阅读次数:
100
"题目" DP 险过。 dp[i][j] :means it need remove at least dp[i][j] characters to get vaild parenthese from position i to postion j in string. vector str[i][ ...
分类:
其他好文 时间:
2020-03-07 12:52:52
阅读次数:
52
//杨辉三角(数组) /* * @Description: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. * Input: 5 * Output: * [ * [1], * ...
分类:
编程语言 时间:
2020-03-06 15:00:14
阅读次数:
78
一、下载hadoop-eclipse-plugin-2.7.3.jar插件放到eclipse的plugins的目录下 二、把Window编译后的hadoop的文件放到 hadoop的bin目录下 三、添加环境变量的支持 HADOOP_HOME=e:hadoop/hadoop-2.7.7 Path=% ...
分类:
其他好文 时间:
2020-03-05 10:35:29
阅读次数:
71
记录下几种常用的控制小数点后位数的方法,除了这几种还有很多方法也可以控制,但是用得不常见,下面是比较常见的几种方法 使用BigDecimal类对超长数字进行格式化控制 使用DecimalFormat格式化十进制数字 使用printf格式化输出 具体实现 package _12_26_test; im ...
分类:
编程语言 时间:
2020-03-03 12:37:21
阅读次数:
79
1. Description: Notes: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 class Solution { 5 public int minAddToMakeValid(S ...
分类:
编程语言 时间:
2020-03-02 15:08:12
阅读次数:
76
1. Description: 2. Examples: 3.Solutions: 1 /** 2 * Created by sheepcore on 2019-05-07 3 */ 4 5 class Solution { 6 public boolean isValid(String s) { ...
分类:
编程语言 时间:
2020-03-02 14:28:01
阅读次数:
68
break会跳出当前循环,也就是整个循环都不会执行了。 package com.sunland.test; public class Test3 { public static void main(String[] args) { // TODO Auto-generated method stub ...
分类:
其他好文 时间:
2020-03-02 11:03:31
阅读次数:
69