Friday, March 27, 2020

UVa - 12592 - Slogan Learning of Princess

Link to pdf on UVa OJ

This is a use-case for map data structure. At first I wanted to define another class that included a map in it :D haha, then I thought now that all the functionality I need is save and retrieve pairs, I have to use the map itself, getting rid of boilerplate code that doesn't add any advantage to my code.

Link to my code on github.

No comments:

Post a Comment

USACO - Prime Palindromes

I just skimmed the problem statement and panicked of the high boundary of the input, but something inside told me don't worry everyth...