好久不做 \(AC\) 自动机题了,今天水一道 Description link 给定一些字符串,然后给出每个字符的概率 \(p_i\),和一个长度 \(L\) 我们现在要构造一个长度为 \(L\) 的字符串,对于这个字符串的每个位置,每个字符有 \(p_i\) 的概率出现在这个位置 求有多大的概率 ...
分类:
其他好文 时间:
2020-07-12 11:52:35
阅读次数:
61
题目链接 https://leetcode-cn.com/problems/merge-two-sorted-lists/description/ 题目分析 两个链表已排序 新链表应该是两个链表拼接起来的,而非new出来的 链表中头结点的val应该是有意义的 题解一:迭代 思路 先new一个无意义的 ...
分类:
其他好文 时间:
2020-07-11 19:10:40
阅读次数:
83
Description Name: dpwwn: 2 Date release: 8 Aug 2019 DHCP service: Disabled Static IP address: 10.10.10.10/24 Goal: Get the root shell i.e.(root@dpwwn- ...
分类:
其他好文 时间:
2020-07-11 17:44:46
阅读次数:
69
题目链接 https://leetcode-cn.com/problems/reverse-linked-list/description/ 题目分析 要求:反转一个单向链表 代码模板里的ListNode给了3个构造函数,明显是方便我们构造结点用的(如果要new,最好要delete) 可以迭代实现, ...
分类:
其他好文 时间:
2020-07-11 17:17:33
阅读次数:
55
package com.example.lettcode.offer; import java.util.ArrayList; import java.util.List; /** * @Class FindContinuousSequence * @Description 剑指offer57 和为 ...
分类:
其他好文 时间:
2020-07-11 16:53:13
阅读次数:
51
Description Name: Hackademic: RTB2 Date release: 6 Sep 2011 DHCP service: Enabled IP address: Automatically assign Task:get root and read the file key ...
分类:
其他好文 时间:
2020-07-10 17:09:19
阅读次数:
93
SELECT users.UserID AS Id, users.UserName, users.TrueName, users.Phone, users.Email, STUFF( ( SELECT ',' + roles.Description FROM Accounts_UserRoles u ...
分类:
其他好文 时间:
2020-07-10 15:11:25
阅读次数:
65
Silver Cow Party Description One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at ...
分类:
其他好文 时间:
2020-07-10 13:33:46
阅读次数:
81
linux自定义服务并设置开机自启动 【init.d】 服务脚本 #!/bin/sh #chkconfig: 2345 80 05 #description: api-server start() { nohup java -jar ./ } stop() { } status() { `ps -e ...
分类:
其他好文 时间:
2020-07-10 13:32:25
阅读次数:
70
package LeetCode_680 /** * 680. Valid Palindrome II * https://leetcode.com/problems/delete-operation-for-two-strings/description/ * * Given two words ...
分类:
其他好文 时间:
2020-07-10 09:29:42
阅读次数:
68