• Leetcode 466 - 统计重复个数

    Leetcode 466 - 统计重复个数 Leetcode 466 - 统计重复个数 - 题解以及解析 题目描述 由 n 个连接的字符串 s 组成字符串 S,记作?S = [s,n]。例如,[abc,3]=“abcabcabc”。 如果我们可以从 s2?中删除某些字符使其变为 s1,则称字符串 s1?可以从字符串 s2 获得。例如,...

    2020-04-24 16:03:13 定义用户IE反思PStimAVHTTPS<the

  • 2020年04月19日个人赛

    2020年04月19日个人赛 A - Buggy Sorting 题意:这个题意就是给你一个错误的排序方式,要求你在它的这个排序方式下判断是否存在正确的运行结果。若存在正确的结果,则输出-1,否则输出一个例子说明是错误的。题目的输入是元素的个数n。 题解:这一题比较有意思,很容易...

    2020-04-23 16:01:29 定义BugiOS<数字name代码容易数组方式

  • LeetCode 199. 二叉树的右视图

    LeetCode 199. 二叉树的右视图 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 199. 二叉树的右视图 题目 给定一棵二叉树,想象自己站在它的右侧,按照从顶部到底部的顺序,返回...

    2020-04-22 16:07:54 IEPSAVHTTPS<层次视图whileDESCOM

  • java练习 简单DFS POJ-1979 Red and Black

    java练习 简单DFS POJ-1979 Red and Black 题目地址 https://vjudge.net/problem/POJ-1979 题目描述 有一个房间地上方砖只有红、黑两色。 以某一块黑砖作为起点,可以向相邻四块磁砖(上下左右)移动。但是,不踩红砖,只能踩黑砖。 输出最多可以踩多少黑砖。 '.' 黑砖...

    2020-04-22 16:03:17 PSAVHTTPS<NET.NET搜索地址whilesys

  • LeetCode 560. 和为K的子数组

    LeetCode 560. 和为K的子数组 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 560. 和为K的子数组 题目 给定一个整数数组和一个整数?k,你需要找到该数组中和为?k?的连续的子数...

    2020-04-21 16:09:15 IEPSAVHTTPS<添加解析DESCOMHTTP

  • LeetCode 1248. 统计「优美子数组」

    LeetCode 1248. 统计「优美子数组」 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 1248. 统计「优美子数组」 题目 给你一个整数数组?nums 和一个整数 k。 如果某个 连续 子数...

    2020-04-21 16:08:29 IEPSAVHTTPS<添加数字whileDES代码

  • LeetCode 200. 岛屿数量

    LeetCode 200. 岛屿数量 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 200. 岛屿数量 题目 给你一个由?'1'(陆地)和 '0'(水)组成的的二维网格,请你计算网格中岛屿的数量。...

    2020-04-20 16:01:20 技巧IEPSAVHTTPS<whileDES计算COM

  • LeetCode 466. 统计重复个数

    LeetCode 466. 统计重复个数 我的LeetCode:https://leetcode-cn.com/u/ituring/ 我的LeetCode刷题源码[GitHub]:https://github.com/izhoujie/Algorithmcii LeetCode 466. 统计重复个数 题目 由 n 个连接的字符串 s 组成字符串 S,记作?S = [s,n]。例如,[abc,3]=“ab...

    2020-04-20 16:01:05 定义qqIEPSCFAVHTTPS<theDES

  • 2020年04月12日个人赛

    2020年04月12日个人赛 A - Balloons 题意:本题的题意比较简单,简单说就是分数字,使得A得到的数字之和大于B得到的数字之和,然后输出分给A的数字的下标。 题解:要注意特判n==1和n==2的情况,属于签到题。 代码: #includeiostream #include algorithm #include cstr...

    2020-04-18 16:00:52 iOS<数字name代码数组break记录数据POST

  • 【数据结构】树套树——线段树套平衡树

    【数据结构】树套树——线段树套平衡树 线段树套平衡树 可能后面还会写其他类型的树套树,这里写的是线段树套平衡树。 这里看一下某谷的模板题https://www.luogu.com.cn/problem/P3380 其实作为蒟蒻,我是没有看出来树套树的,在大佬们的帮助下,我理解了思路。 其实特...

    2020-04-18 16:00:27 iOSPSHTTPS<the修改namecasewhileping