1 2 4 3
原创 2022-08-16 14:35:09
34阅读
2019-09-27 22:39:24 总体感受:这次比赛心态不够好,最后导致没有很好的完成比赛。 注意点: 1)保持心态稳定,是情商的体现; 2)hard题的覆盖还是明显不够; 1201. Ugly Number III 问题描述: 问题求解: 本体中的数据规模已经决定了使用O(n)的解法是肯定会
转载 2019-09-27 22:40:00
80阅读
2评论
2019-10-29 16:36:24 总体感受:有一段时间没有打比赛,手居然有生疏的感觉,这次肯定是要掉分了,然后在做combination问题的时候没有敲对代码,很伤。 注意点:依然需要多练习,很多题目不练习就会手生。 1238. Circular Permutation in Binary R
转载 2019-10-29 16:38:00
109阅读
2评论
2019-10-14 15:30:38 总体感受:这次依然很快搞定了前三题,最后一题乍看之下还是比较简单的,但是出奇多的corner case让我非常苦恼,这也让我意识到要想真正征服最后一题,还有一个能力需要培养,就是自己设计case的能力。 这也让我想到了当初实习的最后一次面试,xu问的问题题面非
转载 2019-10-14 15:53:00
65阅读
2评论
2019-09-16 17:22:28 总体感受:这次比赛的模版题也太多了吧,两条模版题没有想出来。总的来说,还是自己的刷题量还是严重的不够。 注意点: 1)提升刷题量和覆盖率非常重要; 2)在碰到大数处理的时候,还是会出现一些问题,有两个路径吧,一个是使用long来测试一下;二是使用bigInte
转载 2019-09-16 17:23:00
59阅读
2评论
2019-09-01 20:59:55 总体感受:最近几次参加contest发现自己的水平还是严重的不够,尤其是在处理一些异常情况的时候,遇到TLE,MLE如何有效的进行Debug是需要去锻炼的。 注意点: 1)TLE,首先可以通过加上特殊判断进行解决,这个需要在实际的问题中考虑好特殊的情况,过滤掉
转载 2019-09-01 23:50:00
120阅读
2评论
2019-06-16 14:35:52 1089. Duplicate Zeros - Easy 问题描述: 问题求解: 很显然的可以使用O(n), O(n)的解法。主要问题在于如何在O(1)空间复杂度完成求解。 答案就是通过两次遍历,第一次求出复制后的数组的长度,第二次遍历填写数组。 1090. 
转载 2019-06-16 16:45:00
100阅读
2评论
2019-09-14 23:16:25 总体感受:节奏尚可,难度尚可。然而还是卡在了最后一题,完全没有想到使用dp。 注意点: 1)Contest的最后一题往往是DP,Graph,这个敏感度需要提高; 2)DP的题目还是远远不够熟练。 801. Minimum Swaps To Make Seque
转载 2019-09-14 23:17:00
99阅读
2评论
状压DP。。。。 Contest Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 666 Accepted Submission(s): 300
原创 2022-01-12 13:41:23
15阅读
<String...
原创 2022-02-28 13:54:16
68阅读
题 题意 n个问题,解决的顺序影响正确的概率,无论之前解决的问题是否答对,当前问题 j 答对概率为max{a[i][j]} (i为解决过的问题)。求答对题目的最大期望和对应的答题顺序。T组测试,T (0 < T ≤ 100), n (0 < n ≤ 10)。 分析 n那么小,就想到状态压缩DP(我不
原创 2021-07-22 14:03:57
61阅读
1051. Height Checker Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students not sta
转载 2019-05-26 12:43:00
131阅读
2评论
1046. Last Stone Weight We have a collection of rocks, each rock has a positive integer weight. Each turn, we choose the two heaviest rocks and smash
转载 2019-05-19 15:21:00
115阅读
2评论
961. N-Repeated Element in Size 2N Array In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times
转载 2018-12-23 12:57:00
82阅读
2评论
1021. Remove Outermost Parentheses A valid parentheses string is either empty (""), "(" + A + ")", or A + B, where A and B are valid parentheses strin
转载 2019-04-07 20:39:00
108阅读
2评论
945. Minimum Increment to Make Array Unique Given an array of integers A, a move consists of choosing any A[i], and incrementing it by 1. Return the l
转载 2018-11-25 12:44:00
81阅读
2评论
Andrew Stankevich Contest
原创 2022-08-11 15:34:10
38阅读
这次终于四题全过了。 这次比赛也确实比较简单 "第一题"
原创 2022-10-18 13:40:05
56阅读
https://leetcode-cn.com/contest/weekly-contest-102/problems/sort-array-by-parity/水题 我的解决方案:class Solution { public int[] sortArrayByParity(int[] A) { int[] B = new int[A.length]; int
原创 2022-02-28 13:47:14
46阅读
传送门思路:找出不同的n个最后输出即可,注意特例。412241233此时尾部应该是两个1。我太弱了,当时没想到。代码;#include<stdio.h>#include<algorithm>#include<iostream>#include<cmath>#include<string.h>using namespace...
原创 2022-06-29 10:04:44
15阅读
  • 1
  • 2
  • 3
  • 4
  • 5