AmShZ

136 posts

AmShZ

AmShZ

@_AmShZ_

IGM at codeforces | ICPC WF'25 16th, WF'24 23rd | Author of IOI 2023 problem: Beech Tree | TCS Researcher

Katılım Mayıs 2024
221 Takip Edilen308 Takipçiler
Harsh Jain
Harsh Jain@HarshJain_Coder·
@_AmShZ_ I once brute forced this when required using prefix sums of the sorted arrya and all values between min and max element. Constraints allowed me to do so at that time but later I came to know about this trick and it's proof as well 😅 It's really cool to be honest
English
1
0
1
27
AmShZ
AmShZ@_AmShZ_·
If you have n numbers and want to minimize the sum of absolute differences to all of them, pick the median. Sort the array and take the middle element. If n is even, any value between the two middle elements works.
English
0
0
14
291
AmShZ
AmShZ@_AmShZ_·
When a function needs too many parameters, it is often asking for a small struct.
English
0
0
12
174
AmShZ
AmShZ@_AmShZ_·
Use assertions while building. They turn silent wrong assumptions into loud, useful failures.
English
0
0
7
82
AmShZ
AmShZ@_AmShZ_·
If a bug disappears when you add prints, suspect undefined behavior, uninitialized variables, or timing issues.
English
0
0
9
78
AmShZ
AmShZ@_AmShZ_·
Autocorrect can make mistakes. Check important info.
English
0
0
12
180
priyanshu.sol
priyanshu.sol@priyanshudotsol·
someone wrote a 680 page interactive book on cs algorithms
English
98
1.7K
16.2K
937.4K
AmShZ retweetledi
Repovive.
Repovive.@repovive·
👀Stop guessing when to use greedy algorithms. Our new video series covers: → Core patterns & when they work → 22 problems: basics to advanced → Time Machine Technique 312 min of structured learning. Taught by Candidate Master itself. repovive.com/video/greedy-a…
Repovive. tweet media
English
0
1
10
128
Hamza Hassanain
Hamza Hassanain@HamzaHassanain0·
We successfully hosted another Repovive Round without any technical issues. This shows that our judge and contest preparation pipeline is more stable than ever. Special thanks go to AmShZ for their exceptional effort in organizing the round, and to everyone who participated.
Hamza Hassanain tweet media
English
2
1
18
401
chilli
chilli@chillestmofoo·
@_AmShZ_ India, in terms of cheating. Yeah Not everyone but many, its actually sad.
English
1
0
3
97
AmShZ
AmShZ@_AmShZ_·
Which country do you think has improved the most in competitive programming in recent years?
English
5
0
15
961
Nima Naderi
Nima Naderi@NimaNaderi2004·
@_AmShZ_ Israel, for sure. Both in IOI and ICPC, they are dominating after just a few years of investment.
English
1
0
2
218
AmShZ
AmShZ@_AmShZ_·
India?
Português
3
0
8
325
AmShZ
AmShZ@_AmShZ_·
We solved only 5 problems during the contest😵‍💫
AmShZ tweet media
English
2
0
23
741
AmShZ
AmShZ@_AmShZ_·
@erfnzdeh Interesting. Can you give an example?
English
1
0
0
13
AmShZ
AmShZ@_AmShZ_·
I like code that looks calm under pressure.
English
2
0
19
288
AmShZ
AmShZ@_AmShZ_·
@Keshiii42 Too many contests, too many bugs, and too much code that panics before I do.
English
0
0
1
13
AmShZ
AmShZ@_AmShZ_·
Everything that can be implemented with recursion also has a non-recursive implementation.
English
0
0
19
381