ABCDEFGHIJKLMNOPQRSTUVWXYZAAAB
1
WebsiteProblemSolved onIn Contest/Virtual/PracticeTime Taken (Rough)Notes
2
cf946A20/5In Contest30Noticed that it was greedy fast. Wasted too much time in implementation because didn't consider that the 2x2 blocks were independent
3
cf946B20/5In Contest15Noticed that encoding and decoding were symmetric, coded it up decently fast
4
cf946D20/5In Contest50Noticed the idea pretty fast, wasted time on implementation
5
cf946E21/5Practice100
Realised it was DP in contest but couldn't figure out that DP was to be done on maximum cost at given happiness. Could have figured it out by reading constraints better. Wasted a lot of time on a silly for loop condition while implementing in practice
6
csesstatic range min21/5Practice40Watched takeUforward vid on seg tree. made silly mistake in query loop and forgot to 0 index queries which wasted a lot of time.
7
csesdynamic range min21/5Practice30Watched takeUforward vid on seg tree update, implementation was bad because I was passing vector where not required otherwise could have been faster
8
csesdynamic range sum21/5Practice5Just had to change the min to sum so pretty fast
9
cf944D21/5Practice60
wasted too much time in contest as could not think clearly about the solution so i kept trying to add conditions for edge cases. Idea was pretty simple and I had seen it but to clearly express it as total blocks -1 iff '01' is found was not done. Read editorial
10
codechefINVEQ22/5In Contest8made silly mistakes and was submitting answer as no. of changes-1 instead of ceil of changes/2. Should have seen it instantly if I was paying more attention to it.
11
codechefCHANGEXY22/5In Contest10Did not think clearly in the beginning so started trying to construct with a instead of lower from b. corrected it pretty fast though, however could have been much faster.
12
cf947A25/5In Contest25 Took way too long to think through the conditions of the problem because I woke up late and was not in the correct mindset (very groggy)
13
cf947B25/5In Contest15Figured out the conditions pretty fast but one dumb submission and took good amount of time to code up apart from that
14
cf947C25/5Practice150
Did not think clearly at all in the contest. I kept thinking that taking maximum of the first n-1 elements would just work because I didn't consider that in taking median sorting would change the order. Approached terribly becuase I was unwilling to accept that I was wrong, submitted 6 WAs. Idea was simply to take the maximum of first (n-2) medians, which was trivial for a C problem but I approached it like shit.
15
cf948A26/5In Contest2Solved fast, possibly could have gone even faster if workflow was faster/compiled
16
cf948B26/5In Contest30Noticed idea very fast. Implementation was slow compared to that.
17
csesJosephus126/5Practice15Did not know that set.erase also removes the iterator. Need to create temporary iterators to save their value.
18
codechefFIRSTGEO29/5In Contest4Understood the conditions pretty fast but doubted myself initially so didn't implement as fast as I could have.
19
leetcodesubbaray sum = k29/5Practice15
this idea used in contest but I hadn't been able to solve so read algo. Idea is to use prefix sums and a map. iterate once and check what values of prefix sum have already occured. Learnt more details about STL map. if you access element thats not already there its freq is set to 0.
20
codechefSUMMODE29/5In Practice140
Couldn't come up with O(n) solution even after realising that whether 1 or 2 is added depends on number of 1s and 0s only. Should have searched and used above leetcode algorithm as a blackbox.
21
leetcodemerge k sorted lists30/5Practice15Learnt syntax for operator new and pointer stuff in cpp. Adding to heap was pretty standard.
22
cfedu166A30/5In Contest7Noticed idea fast. There was a gap between implementation speed even though I knew idea would work
23
cfedu166B30/5In Contest30Noticed Idea fast, wrong implementation 4 times. Failed System Tests??
24
cf949A31/5In Contest11got distracted and was thinking about no. of divisors etc. didn't notice pattern of 2**n fast enough and then there was a small gap in implementation speed also
25
cf949B31/5In Contest60Was sleepy. Unable to think clearly for a good amount of time. When I finally thought the idea I didn't consider the case where a smaller number is also there. Implementation also seemed hard.
26
cf950A3/6In Contest4Got the logic very fast. Had some indecision about whether to use a hashmap or a freq arr and also because didn't add that the min to subtract is 0 condition. Could have done it in ~2 min probably.
27
cf 950B3/6In Contest9Got the logic very fast again. Little bit indecision in implementing the exact conditions. Lost time because I didn't read that it was non-decreasing instead of non-increasing.
28
cf 950C3/6In Contest49
Didn't think carefully enough about the implementation/exact solution initially. This led me to just implement with multiset whose syntax I wasn't very clear with. Wasted lot of time in debugging and had a point in the middle where I thought logic wouldn't work because I was adding everything back to multiset instead of setting a flag. This was less about observation and more implementation.
29
cf951A6.6In Contest6Net problems, thought wrong idea first time around then immediately noticed after test case.
30
cf951B6/6In Contest7Noticed idea pretty fast, implementation could have been much more optimal
31
cf951C6/6In Contest45Got idea pretty fast, but wasn't sure my idea was correct so didn't submit for long time. Was only missing small >= sign
32
cf952A11/6In Contest4Didn't know how std::swap worked so time wasted trying to write without it
33
cf952B11/6In Contest
34
cf952C11/6In Contest13
Had to wait for logic (thought of sorting etc. for some reason but then realised largest was enough a little late) finally in implementation didn't account for max initially so wasted bit more time there also
35
cf952D11/6In Contest
36
cf952F11/6In Contest
37
cf952G11/6In Contest40
FUCKED UP. whole binary exponentiation idea I immediately got when I got TLE, implementation was also correct but forgot to change one digit from the old implementation, so got AC as soon as I changed that. Didn't have time in contest.
38
codechefLONGDRIVE13/6In Contest7wasted quite a lot of time here trying to solve a quadratic for some reason. just needed to look carefully at constraints to immediately realise I can just loop over all values.
39
codechefDISTSUB13/6In Contest12retarded mistake. the +1 in q*q+1 was outside bracket so I was getting q^2 +1 instead of q^2+q. shouldn't have wasted that much time here.
40
codechefTRIPRI13/6In Contest15liked this problem and solved decently fast also. key observation was seeing that atleast one of the primes needs to be 2. still not extremely comfortable with set implementation etc.
41
codechefAPOWBMODC13/6In Contest20
wasted lot of time because I had read the problem statement wrong. at this point I was thinking that I was already doing well in the contest which is a dangerous thing to think. You always need to be focused. Eventually when I read it correctly then solved pretty easily. hadn't thought of the edge case with a =2 so that took a little bit longer.
42
codechefPREFSUFF13/6In Contest20
I was a bit lazy with thinking this through again because I thought I was doing well already. idea was to see that AND is monotonically decreasing and you can always keep XOR same or increase it by continuosly XORing with the same number. didn't think my intution would directly work. implementation could have also been a tad bit faster.
43
codechefMODE_PROB13/6In Contest30
Was thinking segment trees for some reason and wasted time starting to read up about them for a bit. key idea was to see that the total required sum was dependent only on frequencies. Don't know till now why my initial implementation using a vector as a hash table failed but worked when I changed it to an unordered map (map was also TLE which is quite interesting).
44
cf953A16/6In Contest
45
cf953B16/6In Contest
46
cf953C16/6In Contest
47
cf 702A17/6In Contest(Virtual)12Slow implementation, took time to think also and didn't take as seroiusly because virtual
48
cf702B17/6In Contest(Virtual)50very slow implementation. lazy and sloppy thinking.
49
cf702C17/6In Contest(Virtual)79I was fucking around with two for loops trying to precompute everything and do it in O(1). idea was to add all cubes to a set then iterate over one and search in the set to give O(nlogn)
50
leetcode26821/6Practice3already knew the problem
51
leetcode12121/66had some idea about the mex problem, implemented it pretty decently.
52
leetcode5021/65already knew this was binary exponentiation, didn't read constraints and see that negative values of n were also to be accounted for.
53
leetcode9747/7Practice10Had thought of logic. very similar to subarray sum=k. Only change is to take mod of prefix sum with k.
54
cf958A15/7In Contest22thought too long and complicated about dividing, answer was much simpler
55
cf958B15/7In Contest10Understood and implemented pretty fast, could have gone faster
56
cf958C15/7In Contest25Long long int error AGAIN. logic immediately struck me but I took a bit longer than necessary to implement and also. obs: no seq greater than no. of ones in binary expansion can be formed
57
cf702C15/7Practice100I was trying a dumb approach of precomputing the sum of all cubes and then O(1) lookup which would not work because of space complexity. other solutoin is pretty easy
58
csesstick lengths16/7Practice50Needed a lot of time to implement even after I had thought of it. Thought of averaging first before I didn't observe that changes happen only at array values so can binary search.
59
cf959A18/7In Contest15Thoght of shifting the array one place down or below. making a[i][j]=a[i][j]+1 was much easier and if == m*n then set 1. had to look up syntax for rotate also.
60
cf959B18/7In Contest15Ad Hoc idea, didn't think it would work but it did. Could have possibly implemented a bit faster, but wasn't 100 percent sure of my logic.
61
csesapples19/7Practice20already knew how to solve this. implementation still took a lot of time.
62
cf963A3/8In Contest
63
cf963B3/8In Contest
64
cf963C3/8In Contest
65
cf964A7/8In Contest1
66
cf964B7/8In Contest15
67
cf964C7/8In Contest5
68
cf964D7/8In Contest10
69
cf964E7/8In Contest40
70
cf965A11/8In Contest3Could have done this even faster, if there wasn't the network problem and putting spaces in between. Good implementation otherwise
71
cf965B11/8In Contest5Couldh have done it even faster if I had not doubted myself before this.
72
cf2002A12/8In Contest5implemented as fast as I could understand it. took me a little bit.
73
cf2002B12/8In Contest22Would have solved faster if didn't have the self doubt (how can q be so easy). Logic is technically checking more than necessary but itworks.
74
cf2002C12/8In Contest47Would have done much faster if didn't have the floating point problem and trusted myself a bit more about it
75
cf966A13/8In Contest9Network issue and kept making silly mistake plus took a bit for implementing, could have been a bit more careful
76
cf966B13/8In Contest7Decent implementationa
77
cf966C13/8In Contest20Made dumb mistake of not checking both ways. caused two penalties also, wasn't careful enough
78
cf966D13/8In Contest16Decent implementation, solved pretty nicely
79
cf966E13/8In Contest40Could have solved earlier if I thought more clearly
80
cf
81
cf
82
cf
83
cf967C
84
cf968A25/8In Contest2Good implementation, could have been even faster, problem was trivial
85
cf968B25/8In Contest25Shit implementation and thought process as well. Was thinking about too many things for a trivial problem
86
cf968C25/8In Contest34Shit implementation, knew the logic but took way too long to code up.
87
cf968D125/8Practice65Shit implementation, had figured out the logic but couldn't code it up in constant due to silly debugging error
88
csesTree Diameter27/8Practice20Decent implementation, can do better need to be more familiar with implementing trees and graphs fast
89
csesSubarray Sum227/8Practice15Knew the idea from before, need to be able to this much faster and with lesser errors.
90
cf969A30/8Contest7took a little more time than normal to get idea. Implementation was also a bit rocky but was okay after
91
cf969B30/8Contest8decent implementation and speed.
92
cf969C30/8COntest60
immediately noticed bezout's identity from the question. got the idea to take modulo GCD. but then didn't think of the O(n) searching for max until 40 min later. just took 5 min to prove that claim once I thought clearly
93
csesbuild teams1/9Practice15pretty easy idea with bfs but helped improve implementation. Need to improve implementation with graphs
94
cses
95
csessubarray divisiblity7/9
96
97
cf973A21/9Contest2Pretty fast and good implementation
98
cf973B21/9Contest7Pretty fast and good implementation
99
cf973C21/9Contest33thought of it a bit and didn't have confidence in solution, could have done it a bit faster if I realised the thing about being able to skip atleast one decision in the backward pass on the substring
100