[Index] [Catalog] [Bottom] R: 66 / P: 20 / Connecting

File: images(1).jpg (7.4KB, 588x309)
Post Image
Here we discuss DSA, Competitive Programming (hence the title), practice and study material, etc. To participate you must commit to participate in at elast one contest every week regardless of result >https://leetcode.com/problem-list/22fmu8yh/https://leetcode.com/problem-list/22fmu8yh/ >https://leetcode.com/problem-list/rabvlt31/https://leetcode.com/problem-list/rabvlt31/ of course smaller more focused versions of these exists. I found the original blind75 to be useful. filter by is not premium and you should be fine
>>358 fyi codeforces contest today
???
>>360
>>359 >>360 >>361 Do it for yourself,no point in circlejerking and what are you even gonna discuss in the age of AI?
>>364 idk. i feel it enough people interested in this topic - and it's an easy topic to jump into - we would eventually have some quality discussions
I'm interested what should I do ??
>>366 give contest, discuss if needed
>>367 let's fix some rules. post your rating, how many you solved in recent contest, any interesting problem you solved etc >401 (literally gave 1 contest and got 1 problem) >all 4 in biweekly contest leetcode >only first in weekly leetcode i could've done more but got stuck in the wrong approach when dfs with greedy base case would've worked maybe we can discuss problems from new contests? i give leetcode and sometimes codeforces (if this general works i will commit for all codeforces) and we can help each other improve no spoilers till t+1 days (codeforces comtests are evening 8pm so not an issue, leetcode weekly is morning so yeah) examples - >Q3 was hard >simple brute force and dfs fails for Q3 =xor of the same number gives 0 <Q3 is Kadane's algo with some modifications sometimes mentioning the algo is a spoiler so avoid. ofc next day everything is allowed so take the embargo to self improve. aim for 1 question per contest after with no time limit + reading solutions for all post resources, progress, interesting problems, help for non contest problems (this is not to facilitate cheating, violation will be reported, hopefully admins collaborate)
>>368 rating is for codeforces.on leetcode i am 1460 contest ranking, not unlocked global ranking for leetcode
File: images(1).png (4.2KB, 321x163)
Post Image
fyi
https://addons.mozilla.org/en-US/firefox/addon/competitive-companion/https://addons.mozilla.org/en-US/firefox/addon/competitive-companion/ https://chromewebstore.google.com/detail/competitive-companion/cjnmckjndlpiamhfimnnjmnckgghkjbl?pli=1https://chromewebstore.google.com/detail/competitive-companion/cjnmckjndlpiamhfimnnjmnckgghkjbl?pli=1 https://marketplace.visualstudio.com/items?itemName=DivyanshuAgrawal.competitive-programming-helperhttps://marketplace.visualstudio.com/items?itemName=DivyanshuAgrawal.competitive-programming-helper
1 was smooth, struggled through 2. for 3 i read the question and had an idea. then i realized it was count the number of reachable and not is it reachable. anyways i have an idea for how to solve problem 3 I'll do it tomorrow
Word Search ii is a good problem to solve if you want to learn/practice prefix tree/trie
i wont click links, either post screenshot or copy paste problems here to discuss.
>>374 where did you see a link? and those extensions are not required obviously. and i did post the title of the problem not any link
>>375 just post the problem bruh.
>>376 https://leetcode.com/problems/word-search-ii/https://leetcode.com/problems/word-search-ii/
https://codeforces.com/blog/entry/155047https://codeforces.com/blog/entry/155047 tutorials btw. i was solve C as predicted but I couldn't make the observation for D. i will read E and F
kinda demotivating noone else is participating here. ill probably practice by myself moving forward
>>368 i feel, i should also start giving contest now. i am just left with graphs(Ongoing) and DP. i havent solved many problems, would be around 250 if i include all platforms.
>>380 will be participating in atcoder beginner contest this 11th.
>>381 isn't atcoder more difficult and calculus involved? LC and CF are more approachable for beginners from what i understand >>380 yeah i give contest. actually i am the only person in the genral. like of the 21 posts im probably 15
ill probably make a new bake if this reaches 50 with more nutritious bread
File: Screenshot_2026-07-09_16-02-02(...) (194.7KB, 1080x1115)
Post Image
Atcoder seems like the better beginner contest platform, though i will likey continue both
>>382 there are 2 types 1. beginner contest 2. regular contest beginner is for those just starting
>>358 reminder for atcoder today
>>393 solved 2, doing 3rd,
>>397 its almost over, 3rd problem, i couldnt understand how this will work like i couldnt understand working in itself and format too. so i need to see if this is something asked in atcoder. also 4th problem, i have though up logic but since time is over like 1 min left, i am done with it. i would upsolve 3 and 4, rest 5 and 6, anyone can pick it up. if i feel i will.
>>398 https://atcoder.jp/contests/abc466https://atcoder.jp/contests/abc466 contest link
>>398 same, i got stuck for 3rd because maybe im not used to doing it with reviewer agent. ill practice some atcoder and come back next contest
>>400 how many did you solve? i will do 3rd and 4th later around 12am
>>401 i feel only way to git gud is giving contests, i have tried to solve medium and hard by giving time and i feell it doesnt really help that much. contests for some reason stay in memory
>>401 1 and 2. i feel like 3 was really easy and if i was better at the reviewer i could have done better. it was completely new workflow for me because usually i have a few test cases to try out before, now i was one shotting every submission >>402 ofc. I am following n+1 every contest and solution for rest but i think i will get used to the reviewer agent and try more for this one specifically
like if it was an array i could have done it better so that is the bottleneck i need practice in
>>408 from what i have read, you are only given n and you will be then input i, j and you have to check if i,j returns a string yes or no, if yes then that means you have to calculate the pairs but i am still a little confused. will read more on it.
File: ClipboardImage.png (11.5KB, 273x132)
Post Image
>>410 no that is not what i understood. it was basically this - >given n this translates to <[1, 2, 3, 4, 5 ... n] in that order, but it is better to think as 1-based index as we will not be using these values now preserving this order there is a secret array <[1s, 2s, 3s ... ns] both are in ascending order. >valid pair choose an i, j from the given array (this means select i,j such that 1 <= i < j <= n). The pair is valid if the reviewer says it is. >how to ask reviewer print('?', i, j) response = input() this is how output - number of valid pairs
>>412 what is this? i do not see any codeforces contest. is it some reminder application?
>>413 there is an upper limit of 2*N questions you can ask reviewer
>>413 if you want to ask if 2s,3s is valid you would do ```print('?', 2, 3) response = input()``` then if you want to ask if 1,5 is valid ```print('?', 1, 5) response = input()``` etc
how do you code block in indiachan?
>>414 google calendar >>413 is reviewer here pre-written function that checks i, j validity? or do we check it ourselves?
>>418 prewriten. it will be executed by the atcoder after submission. you do not need to write it unless you want to execute locally and test for errors
>>419 it was quite simple then, i was confused how the yes no will be checked.
>>420 Yeah it was easy i think. Maybe a two pointer like approach as if 5 is in range with 10 then every number between 5 and 10 is also in range with 10. so left and right iterates only once (meaning N+N) and we use PnC to count
yaar 4 is easier than 3 today
i will try a bit more but basically i have given up
did 1,2,4
>>358 thanks for the links yaar i did my first problem valid palindrome
File: Spoiler Image (6.8KB, 400x400)
Post Image
i have concepts of a plan for 3. essentially if you have on trivial path (top row and last column) and want to add another path (first column and last row), we can just push it in and make it the next available index. i hate that i didn't discover this earlier, i first saw constraints as 10x10x4 and thought i can just brute force, then i started seeing if factorization would help because every row multiplies to next, i just had to add one to the previous column I have not submitted yet so idk if it works but i would hate it if it works
>>429 great, we were discussing today's contest in case you don't understand the context. if you are just starting, leetcode shows that graph of how fast your algorithm was, so to study you can see samples of what a faster algorigthm is. sometimes cheaters are fastest as you can just write to a file where time is stored and sometimes it is some one liner magic that is incomprehensible so it isn't always good. in solutions tab you can also see answers with explaination but they are user generated and i personally do not find them to be very useful. if you are following neetcode list his YT has video explainations too. striver also has a list but i am not too familiar with that and i was told it is easier. i will add all this to the next general
>>431 thank you very much for your explanation :) <3 I'll look up the resources you mentioned
>>430 nvm this only works for last column. idk i'll attempt after a break
>>433 https://cses.fi/problemset/https://cses.fi/problemset/ idk how much completion i should aim for in these problemsets and all
>>430 I hate this problem. k<=4 so you only need the last row/column. make some special cases. it is so over
TT missed yesterday's codeforces contest. there is a contest tomorrow. it is Div 3 not 2 so it will be easier than the previous ones
so it looks like >leetcode saturday 8:00pm alternate sunday 8:00am >atcoder saturday, sunday 5:30pm >codeforces random days 8:00pm that is like 4 a week. i don't think we need more. >>418 thanks anon i will set up. does it notify with time also?
I cannot do the atcoder tutorial for interactive. I am absolutely cocked
it was nice knowing you. I cannot do the atcoder practice problem 2. i am literally stuck in the tutorial
REMINDER to everyone - Codeforces Div 3 today. it is easier than the previous Div 2 contests we have given before. Div 4 is easiest so not that much but easier nonetheless
its a lot easier. breezed through A and B. till now 2 was my entire limit
srsly? A tree problem in CF? that is new
FUUUUUCCKKCKK I SHOULD HAVE SKIPPED F I think i can do G. i have had this feeling before so pretty sure i can
did ABCDE, probable wrong attempted G, skipped F
File: ClipboardImage.png (14.8KB, 1122x162)
Post Image
>>475 I hate myself. I gave it unrated by accident. this could have been like +500 rating. fml
like i just threw away suck a good score

[Post Reply]
[Index] [Catalog] [Top] R: 66 / P: 20 / Connecting

Theme: