Trie

Правка en13, от Lvl_Insane, 2025-04-25 21:23:50

Hello Codeforces Community!

This is my first ever blog on Codeforces and I’m super excited to be here!

Please read this before proceeding
The purpose of this blog
The Story Behind This Blog

This blog focuses on providing an implementation of the Trie data structure in C++ without using pointers.

After spending time exploring and experimenting, here is the Trie template I came up with. It's designed to be clean, efficient, and adheres to modern C++ practices.

Trie
Bit_Trie
Note

Video Tutorials on Trie

Here are some additional templates I have created that you may find useful:

Macros used in below templates
Debug
Linear_Sieve
Binary_Exponentiation
Combinations_Number_Theory
Dijkstra
Disjoint_Set_Union
Minimum_Spanning_Tree
Z_Function

"I may add more templates in the future, if feasible."


Thanks for stopping by, and feel free to drop a comment or suggestion. Happy coding!

Теги #trie, #strings

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en16 Английский Lvl_Insane 2025-04-25 22:24:29 0 (published)
en15 Английский Lvl_Insane 2025-04-25 22:21:39 64 Tiny change: '/h1>\n\n<p>Writing m' -> '/h1>\n\n<p style="color: grey; opacity: 0.5;">Writing m'
en14 Английский Lvl_Insane 2025-04-25 21:51:50 600 Tiny change: 'es was an exciting c' -> 'es was an <s>hard</s>exciting c'
en13 Английский Lvl_Insane 2025-04-25 21:23:50 5524 Tiny change: 's.</b>\n\nSo, after spend' -> 's.</b>\n\nAfter spend'
en12 Английский Lvl_Insane 2025-04-25 01:19:50 197 Tiny change: 'mission:316601516]\n</spoil' -> 'mission:317109011]\n</spoil'
en11 Английский Lvl_Insane 2025-04-25 00:43:01 3731
en10 Английский Lvl_Insane 2025-04-24 23:46:41 2494
en9 Английский Lvl_Insane 2025-04-24 23:34:46 504 Tiny change: 'ssion/314585911)\n</spoil' -> 'ssion/314598135)\n</spoil'
en8 Английский Lvl_Insane 2025-04-24 17:31:01 6728 Tiny change: 'es and Bit Tries. \n<' -> 'es and Bit_Tries. \n<'
en7 Английский Lvl_Insane 2025-04-24 16:50:55 262 Tiny change: 'actices.\n\n<spoil' -> 'actices.\n<br/><br/>\n\n<spoil'
en6 Английский Lvl_Insane 2025-04-24 16:26:57 6 Tiny change: 'be here!\n<br/>\n\n<spoiler' -> 'be here!\n\n<br/>\n<spoiler'
en5 Английский Lvl_Insane 2025-04-24 16:25:50 3 Tiny change: 'be here!\n\n<br/>\n\' -> 'be here!\n<br/>\n\'
en4 Английский Lvl_Insane 2025-04-24 16:25:26 0 Tiny change: 'n\n<br/>\n\n<spoiler' -> 'n\n<br/>\n<spoiler'
en3 Английский Lvl_Insane 2025-04-24 16:24:53 6 Tiny change: ' here!\n\n\n<spoiler' -> ' here!\n\n<br/>\n<spoiler'
en2 Английский Lvl_Insane 2025-04-24 16:24:21 4 Tiny change: ' here!\n\n<spoil' -> ' here!\n\n\n<spoil'
en1 Английский Lvl_Insane 2025-04-24 16:22:03 1409 Initial revision (saved to drafts)