| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Website | Problem | Solved on | In Contest/Virtual/Practice | Time Taken (Rough) | Notes | ||||||||||||||||||||||
2 | cf | 946A | 20/5 | In Contest | 30 | Noticed that it was greedy fast. Wasted too much time in implementation because didn't consider that the 2x2 blocks were independent | ||||||||||||||||||||||
3 | cf | 946B | 20/5 | In Contest | 15 | Noticed that encoding and decoding were symmetric, coded it up decently fast | ||||||||||||||||||||||
4 | cf | 946D | 20/5 | In Contest | 50 | Noticed the idea pretty fast, wasted time on implementation | ||||||||||||||||||||||
5 | cf | 946E | 21/5 | Practice | 100 | 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 | cses | static range min | 21/5 | Practice | 40 | Watched takeUforward vid on seg tree. made silly mistake in query loop and forgot to 0 index queries which wasted a lot of time. | ||||||||||||||||||||||
7 | cses | dynamic range min | 21/5 | Practice | 30 | Watched takeUforward vid on seg tree update, implementation was bad because I was passing vector where not required otherwise could have been faster | ||||||||||||||||||||||
8 | cses | dynamic range sum | 21/5 | Practice | 5 | Just had to change the min to sum so pretty fast | ||||||||||||||||||||||
9 | cf | 944D | 21/5 | Practice | 60 | 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 | codechef | INVEQ | 22/5 | In Contest | 8 | made 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 | codechef | CHANGEXY | 22/5 | In Contest | 10 | Did 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 | cf | 947A | 25/5 | In Contest | 25 | 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 | cf | 947B | 25/5 | In Contest | 15 | Figured out the conditions pretty fast but one dumb submission and took good amount of time to code up apart from that | ||||||||||||||||||||||
14 | cf | 947C | 25/5 | Practice | 150 | 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 | cf | 948A | 26/5 | In Contest | 2 | Solved fast, possibly could have gone even faster if workflow was faster/compiled | ||||||||||||||||||||||
16 | cf | 948B | 26/5 | In Contest | 30 | Noticed idea very fast. Implementation was slow compared to that. | ||||||||||||||||||||||
17 | cses | Josephus1 | 26/5 | Practice | 15 | Did not know that set.erase also removes the iterator. Need to create temporary iterators to save their value. | ||||||||||||||||||||||
18 | codechef | FIRSTGEO | 29/5 | In Contest | 4 | Understood the conditions pretty fast but doubted myself initially so didn't implement as fast as I could have. | ||||||||||||||||||||||
19 | leetcode | subbaray sum = k | 29/5 | Practice | 15 | 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 | codechef | SUMMODE | 29/5 | In Practice | 140 | 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 | leetcode | merge k sorted lists | 30/5 | Practice | 15 | Learnt syntax for operator new and pointer stuff in cpp. Adding to heap was pretty standard. | ||||||||||||||||||||||
22 | cf | edu166A | 30/5 | In Contest | 7 | Noticed idea fast. There was a gap between implementation speed even though I knew idea would work | ||||||||||||||||||||||
23 | cf | edu166B | 30/5 | In Contest | 30 | Noticed Idea fast, wrong implementation 4 times. Failed System Tests?? | ||||||||||||||||||||||
24 | cf | 949A | 31/5 | In Contest | 11 | got 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 | cf | 949B | 31/5 | In Contest | 60 | Was 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 | cf | 950A | 3/6 | In Contest | 4 | Got 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 | 950B | 3/6 | In Contest | 9 | Got 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 | 950C | 3/6 | In Contest | 49 | 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 | cf | 951A | 6.6 | In Contest | 6 | Net problems, thought wrong idea first time around then immediately noticed after test case. | ||||||||||||||||||||||
30 | cf | 951B | 6/6 | In Contest | 7 | Noticed idea pretty fast, implementation could have been much more optimal | ||||||||||||||||||||||
31 | cf | 951C | 6/6 | In Contest | 45 | Got idea pretty fast, but wasn't sure my idea was correct so didn't submit for long time. Was only missing small >= sign | ||||||||||||||||||||||
32 | cf | 952A | 11/6 | In Contest | 4 | Didn't know how std::swap worked so time wasted trying to write without it | ||||||||||||||||||||||
33 | cf | 952B | 11/6 | In Contest | ||||||||||||||||||||||||
34 | cf | 952C | 11/6 | In Contest | 13 | 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 | cf | 952D | 11/6 | In Contest | ||||||||||||||||||||||||
36 | cf | 952F | 11/6 | In Contest | ||||||||||||||||||||||||
37 | cf | 952G | 11/6 | In Contest | 40 | 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 | codechef | LONGDRIVE | 13/6 | In Contest | 7 | wasted 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 | codechef | DISTSUB | 13/6 | In Contest | 12 | retarded 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 | codechef | TRIPRI | 13/6 | In Contest | 15 | liked 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 | codechef | APOWBMODC | 13/6 | In Contest | 20 | 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 | codechef | PREFSUFF | 13/6 | In Contest | 20 | 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 | codechef | MODE_PROB | 13/6 | In Contest | 30 | 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 | cf | 953A | 16/6 | In Contest | ||||||||||||||||||||||||
45 | cf | 953B | 16/6 | In Contest | ||||||||||||||||||||||||
46 | cf | 953C | 16/6 | In Contest | ||||||||||||||||||||||||
47 | cf | 702A | 17/6 | In Contest(Virtual) | 12 | Slow implementation, took time to think also and didn't take as seroiusly because virtual | ||||||||||||||||||||||
48 | cf | 702B | 17/6 | In Contest(Virtual) | 50 | very slow implementation. lazy and sloppy thinking. | ||||||||||||||||||||||
49 | cf | 702C | 17/6 | In Contest(Virtual) | 79 | I 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 | leetcode | 268 | 21/6 | Practice | 3 | already knew the problem | ||||||||||||||||||||||
51 | leetcode | 121 | 21/6 | 6 | had some idea about the mex problem, implemented it pretty decently. | |||||||||||||||||||||||
52 | leetcode | 50 | 21/6 | 5 | already knew this was binary exponentiation, didn't read constraints and see that negative values of n were also to be accounted for. | |||||||||||||||||||||||
53 | leetcode | 974 | 7/7 | Practice | 10 | Had thought of logic. very similar to subarray sum=k. Only change is to take mod of prefix sum with k. | ||||||||||||||||||||||
54 | cf | 958A | 15/7 | In Contest | 22 | thought too long and complicated about dividing, answer was much simpler | ||||||||||||||||||||||
55 | cf | 958B | 15/7 | In Contest | 10 | Understood and implemented pretty fast, could have gone faster | ||||||||||||||||||||||
56 | cf | 958C | 15/7 | In Contest | 25 | Long 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 | cf | 702C | 15/7 | Practice | 100 | I 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 | cses | stick lengths | 16/7 | Practice | 50 | Needed 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 | cf | 959A | 18/7 | In Contest | 15 | Thoght 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 | cf | 959B | 18/7 | In Contest | 15 | Ad 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 | cses | apples | 19/7 | Practice | 20 | already knew how to solve this. implementation still took a lot of time. | ||||||||||||||||||||||
62 | cf | 963A | 3/8 | In Contest | ||||||||||||||||||||||||
63 | cf | 963B | 3/8 | In Contest | ||||||||||||||||||||||||
64 | cf | 963C | 3/8 | In Contest | ||||||||||||||||||||||||
65 | cf | 964A | 7/8 | In Contest | 1 | |||||||||||||||||||||||
66 | cf | 964B | 7/8 | In Contest | 15 | |||||||||||||||||||||||
67 | cf | 964C | 7/8 | In Contest | 5 | |||||||||||||||||||||||
68 | cf | 964D | 7/8 | In Contest | 10 | |||||||||||||||||||||||
69 | cf | 964E | 7/8 | In Contest | 40 | |||||||||||||||||||||||
70 | cf | 965A | 11/8 | In Contest | 3 | Could have done this even faster, if there wasn't the network problem and putting spaces in between. Good implementation otherwise | ||||||||||||||||||||||
71 | cf | 965B | 11/8 | In Contest | 5 | Couldh have done it even faster if I had not doubted myself before this. | ||||||||||||||||||||||
72 | cf | 2002A | 12/8 | In Contest | 5 | implemented as fast as I could understand it. took me a little bit. | ||||||||||||||||||||||
73 | cf | 2002B | 12/8 | In Contest | 22 | Would 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 | cf | 2002C | 12/8 | In Contest | 47 | Would have done much faster if didn't have the floating point problem and trusted myself a bit more about it | ||||||||||||||||||||||
75 | cf | 966A | 13/8 | In Contest | 9 | Network issue and kept making silly mistake plus took a bit for implementing, could have been a bit more careful | ||||||||||||||||||||||
76 | cf | 966B | 13/8 | In Contest | 7 | Decent implementationa | ||||||||||||||||||||||
77 | cf | 966C | 13/8 | In Contest | 20 | Made dumb mistake of not checking both ways. caused two penalties also, wasn't careful enough | ||||||||||||||||||||||
78 | cf | 966D | 13/8 | In Contest | 16 | Decent implementation, solved pretty nicely | ||||||||||||||||||||||
79 | cf | 966E | 13/8 | In Contest | 40 | Could have solved earlier if I thought more clearly | ||||||||||||||||||||||
80 | cf | |||||||||||||||||||||||||||
81 | cf | |||||||||||||||||||||||||||
82 | cf | |||||||||||||||||||||||||||
83 | cf | 967C | ||||||||||||||||||||||||||
84 | cf | 968A | 25/8 | In Contest | 2 | Good implementation, could have been even faster, problem was trivial | ||||||||||||||||||||||
85 | cf | 968B | 25/8 | In Contest | 25 | Shit implementation and thought process as well. Was thinking about too many things for a trivial problem | ||||||||||||||||||||||
86 | cf | 968C | 25/8 | In Contest | 34 | Shit implementation, knew the logic but took way too long to code up. | ||||||||||||||||||||||
87 | cf | 968D1 | 25/8 | Practice | 65 | Shit implementation, had figured out the logic but couldn't code it up in constant due to silly debugging error | ||||||||||||||||||||||
88 | cses | Tree Diameter | 27/8 | Practice | 20 | Decent implementation, can do better need to be more familiar with implementing trees and graphs fast | ||||||||||||||||||||||
89 | cses | Subarray Sum2 | 27/8 | Practice | 15 | Knew the idea from before, need to be able to this much faster and with lesser errors. | ||||||||||||||||||||||
90 | cf | 969A | 30/8 | Contest | 7 | took a little more time than normal to get idea. Implementation was also a bit rocky but was okay after | ||||||||||||||||||||||
91 | cf | 969B | 30/8 | Contest | 8 | decent implementation and speed. | ||||||||||||||||||||||
92 | cf | 969C | 30/8 | COntest | 60 | 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 | cses | build teams | 1/9 | Practice | 15 | pretty easy idea with bfs but helped improve implementation. Need to improve implementation with graphs | ||||||||||||||||||||||
94 | cses | |||||||||||||||||||||||||||
95 | cses | subarray divisiblity | 7/9 | |||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||||
97 | cf | 973A | 21/9 | Contest | 2 | Pretty fast and good implementation | ||||||||||||||||||||||
98 | cf | 973B | 21/9 | Contest | 7 | Pretty fast and good implementation | ||||||||||||||||||||||
99 | cf | 973C | 21/9 | Contest | 33 | thought 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 |