It was mentioned the person was trying to memorize all these with anki or something. There's actually no need. You only need to memorize 2 key signatures and the rest follow a pattern.
C major has 0 sharps/flats F major has 1 flat
Every sharp key is a half step up from the last sharp shown. G major has 1 sharp F#. G is a half step up from F#. In A major the last sharp is G#, etc.
In flat keys, it's the second flat to the right. Bb has two flats in the signature. Bb and Eb. Ab has 4 where Ab is the 3rd.
All minor keys are a minor third down from their major key. Of course, you have to look at more of the music to determine if it is a in major or minor key.
If you can remember that you can tell what any key signature is pretty quickly.