括号先后成对出现,适合使用栈结构进行处理。 JAVA : public final String minRemoveToMakeValid(String s) { if (s == null || s.length() == 0) return ""; StringBuilder sb = new ...
分类:
其他好文 时间:
2020-12-31 11:42:50
阅读次数:
0
写脚本有时候需要选择颜色,在AutoHotkey论坛上看到了 ChooseColor 函数,由于原来的算法有点麻烦,我稍微调整了下分享出来。 并增加了 argb 的选项(不过生成的都是完全不透明的颜色,有需求的可自行调整) ; https://docs.microsoft.com/en-us/win ...
分类:
其他好文 时间:
2020-12-31 11:41:56
阅读次数:
0
java代码: 1 import java.math.BigInteger; 2 import java.util.Scanner; 3 4 public class Main 5 { 6 public static void solve(int n) 7 { 8 BigInteger N, p1, ...
分类:
其他好文 时间:
2020-12-31 11:41:33
阅读次数:
0
思路:和108题类似,链表需要通过双指针寻找中间节点。 class Solution { public TreeNode sortedListToBST(ListNode head) { if (head == null) return null; if (head.next == null) re ...
分类:
其他好文 时间:
2020-12-30 11:35:50
阅读次数:
0
axios等待同步请求 methods: { getLightList() { let that = this; return new Promise((resolve, reject) => { that.query.type = '0';// 灯光 getLightList(this.query ...
分类:
移动开发 时间:
2020-12-30 11:21:01
阅读次数:
0
原创/朱季谦 在Spring Security权限框架里,若要对后端http接口实现权限授权控制,有两种实现方式。 一、一种是基于注解方法级的鉴权,其中,注解方式又有@Secured和@PreAuthorize两种。 @Secured如: 1 @PostMapping("/test") 2 @Sec ...
分类:
编程语言 时间:
2020-12-30 10:55:50
阅读次数:
0
题目: 给定一个正整数 n,生成一个包含 1 到 n2 所有元素,且元素按顺时针顺序螺旋排列的正方形矩阵。 示例: 输入: 3 输出: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [ 7, 6, 5 ] ] 代码: 1 class Solution { 2 public int[][] ...
分类:
其他好文 时间:
2020-12-30 10:52:55
阅读次数:
0
两种方式都可以,主要是后台传过来数据,有的是字母比如,NY之类的,N代表好,Y代表不好,我们在页面显示时候要显示文字,这个时候用 <el-table-column prop="createTime" label="创建时间" :formatter="dateFormat"> 然后js dateFor ...
分类:
其他好文 时间:
2020-12-30 10:34:26
阅读次数:
0
socketserver 重写处理函数 import http.server import socketserver import os,io import urllib from http import HTTPStatus import email.utils import datetime i ...
分类:
编程语言 时间:
2020-12-29 11:43:36
阅读次数:
0
<template> <section> <h1>hello world~</h1> </section> </template> <script> export default { data() { return { timer: '', value: 0 }; }, methods: { get ...
分类:
其他好文 时间:
2020-12-29 11:36:07
阅读次数:
0