Hi everyone,
Apologies if this has been answered elsewhere, but I couldn't find a definitive answer.
I want to know if creating my own code snippets for Data Structures (DSU, Trie, etc.) or Common Algorithms (KMP, Kruskal, etc.) and using them during a contest is against the rules.
If it is allowed, should I upload them to a public GitHub repository to establish "ownership"? I am worried about my solution being flagged by the plagiarism detector if the code looks similar to other submissions or standard implementations.
Thanks in advance!








No.
No, Using Snippets is not considered as cheating even I think everyone uses snippets.