网站首页 站内搜索

搜索结果

查询Tags标签: Medium,共有 43条记录
  • MySQL修改密码安全策略

    MySQL修改密码安全策略 MySQL跳过密码登录 1.编辑/etc/my.cnf文件,添加skip-grant-tables 2.重启MySQL服务即可 重置密码安全策略 MySQL密码策略默认是通过validate_password_policy属性进行设置的。我们可以通过下面语句进行查询: mysql> select @@validate_passwor…

    2021/9/28 19:11:16 人评论 次浏览
  • MySQL修改密码安全策略

    MySQL修改密码安全策略 MySQL跳过密码登录 1.编辑/etc/my.cnf文件,添加skip-grant-tables 2.重启MySQL服务即可 重置密码安全策略 MySQL密码策略默认是通过validate_password_policy属性进行设置的。我们可以通过下面语句进行查询: mysql> select @@validate_passwor…

    2021/9/28 19:11:16 人评论 次浏览
  • 299. Bulls and Cows [Medium]

    /*** Runtime: 18 ms, faster than 11.23%* Memory Usage: 39 MB, less than 67.38%*/ class Solution {public String getHint(String secret, String guess) {int a = 0, b = 0;char[] sec = secret.toCharArray();char[] gue = guess.toCharArray();// find all afor (…

    2021/9/24 23:10:48 人评论 次浏览
  • 299. Bulls and Cows [Medium]

    /*** Runtime: 18 ms, faster than 11.23%* Memory Usage: 39 MB, less than 67.38%*/ class Solution {public String getHint(String secret, String guess) {int a = 0, b = 0;char[] sec = secret.toCharArray();char[] gue = guess.toCharArray();// find all afor (…

    2021/9/24 23:10:48 人评论 次浏览
  • [LeetCode] 382. Linked List Random Node_Medium tag: linked list, math

    Given a singly linked list, return a random nodes value from the linked list. Each node must have the same probability of being chosen. Implement the Solution class:Solution(ListNode head) Initializes the object with the integer array nums. int getRan…

    2021/8/23 9:28:45 人评论 次浏览
  • [LeetCode] 382. Linked List Random Node_Medium tag: linked list, math

    Given a singly linked list, return a random nodes value from the linked list. Each node must have the same probability of being chosen. Implement the Solution class:Solution(ListNode head) Initializes the object with the integer array nums. int getRan…

    2021/8/23 9:28:45 人评论 次浏览
  • 20210819 Emotional Flutter,Medium Counting,Huge Counting,字符消除2

    考场 T1 一下想到了这题,将白块缩短 \(s\) 后维护类似的区间即可。 T2 T3 俩计数,直接跳了。 T4 的可行 \(t\) 集合相同相当与从 \(n\) 往前跳 kmp 数组,途径点相同,从前往后构造即可。 问题是可能会出现一个区间分裂成好几个(开个队列),\(k\) 很小而 \(a_i\) 很大…

    2021/8/20 6:35:49 人评论 次浏览
  • 20210819 Emotional Flutter,Medium Counting,Huge Counting,字符消除2

    考场 T1 一下想到了这题,将白块缩短 \(s\) 后维护类似的区间即可。 T2 T3 俩计数,直接跳了。 T4 的可行 \(t\) 集合相同相当与从 \(n\) 往前跳 kmp 数组,途径点相同,从前往后构造即可。 问题是可能会出现一个区间分裂成好几个(开个队列),\(k\) 很小而 \(a_i\) 很大…

    2021/8/20 6:35:49 人评论 次浏览
  • [LeetCode] 833. Find And Replace in String_Medium tag: array

    Y ou are given a 0-indexed string s that you must perform k replacement operations on. The replacement operations are given as three 0-indexed parallel arrays, indices, sources, and targets, all of length k. To complete the ith replacement operation:C…

    2021/8/12 6:36:46 人评论 次浏览
  • [LeetCode] 833. Find And Replace in String_Medium tag: array

    Y ou are given a 0-indexed string s that you must perform k replacement operations on. The replacement operations are given as three 0-indexed parallel arrays, indices, sources, and targets, all of length k. To complete the ith replacement operation:C…

    2021/8/12 6:36:46 人评论 次浏览
  • [LeetCode] 809. Expressive Words_Medium tag: array, two pointers

    Sometimes people repeat letters to represent extra feeling. For example:"hello" -> "heeellooo" "hi" -> "hiiii"In these strings like "heeellooo", we have groups of adjacent letters that are all th…

    2021/8/12 6:07:45 人评论 次浏览
  • [LeetCode] 809. Expressive Words_Medium tag: array, two pointers

    Sometimes people repeat letters to represent extra feeling. For example:"hello" -> "heeellooo" "hi" -> "hiiii"In these strings like "heeellooo", we have groups of adjacent letters that are all th…

    2021/8/12 6:07:45 人评论 次浏览
  • 数据结构与算法(7-4)最短路径(迪杰斯特拉(Dijkstra)算法、弗洛伊德(Floyd)算法)

    目录 一、最短路径概念 二、迪杰斯特拉(Dijkstra)算法(单源最短路径) 1、原理 2、过程3、代码 三、弗洛伊德(Floyd)算法(多源最短路径) 1、原理 2、存储 3、遍历 4、代码 参考资料 一、最短路径概念 最短路径,顾名思义,两结点之间最短的路径(可以是非邻接结点)。…

    2021/8/9 22:06:12 人评论 次浏览
  • 数据结构与算法(7-4)最短路径(迪杰斯特拉(Dijkstra)算法、弗洛伊德(Floyd)算法)

    目录 一、最短路径概念 二、迪杰斯特拉(Dijkstra)算法(单源最短路径) 1、原理 2、过程3、代码 三、弗洛伊德(Floyd)算法(多源最短路径) 1、原理 2、存储 3、遍历 4、代码 参考资料 一、最短路径概念 最短路径,顾名思义,两结点之间最短的路径(可以是非邻接结点)。…

    2021/8/9 22:06:12 人评论 次浏览
  • [LeetCode] 3. Longest Substring Without Repeating Characters_Medium tag: two pointers

    Given a string s, find the length of the longest substring without repeating characters.Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3.Example 2: Input: s = "bbbbb" Outpu…

    2021/8/5 6:08:37 人评论 次浏览
扫一扫关注最新编程教程