Apaxiaaaaaaaaaaaans!

Question

Solution

Idea

This question I would say is another pretty elegant question. The genius idea here is to store the char you have printed temp and compare the char from your source character with temp, if it is the same, move on. Otherwise, update print the different char and update temp.

Code

https://github.com/mendax1234/Coding-Problems/blob/main/kattis/apaxiaaans/apaxiaaans.c

Last updated