Leetcode weekly contest 390 - Video Editorial
HTML-код
- Опубликовано: 25 июн 2024
- 0:00 - A
4:02 - B
13:58 - C
22:38 - D (Probably wrong, read pinned comment)
Contest Link - leetcode.com/contest/weekly-c...
If you have any queries, you can contact me on LinkedIn, I will definitely try to resolve your query.
About Me -
I am Aniket, a third year CS student
LinkedIn - / aniket-more-5a928822a
Twitter - / an1ket_more
Join telegram - t.me/aniketmorecp
#leetcode #competitiveprogramming #codeforces #programming #datastructures #algorithm #codeforces
For D, Ideal solution is to use trie, but I first used string hashing with mod value as 1e9+9, but got WA on hidden test case which means there are collisions so then I fine tuned the mod value to avoid those collisions, So this is not an ideal solution which also might fail if contest authors add more testcases.
Solution Link - leetcode.com/contest/weekly-contest-390/submissions/detail/1212164285/
Tried 3 one with multiset but was failing on the last testcase.
Great solutions Aniket!!!