NAT · 2 marks · Regular Languages

GATE CS 2024 CS-1 — Q61

Consider the following two regular expressions over the alphabet \{0,1\}:
r=0∗+1∗r = 0^* + 1^*
s=01∗+10∗s = 01^* + 10^*
The total number of strings of length less than or equal to 5, which are neither in rr nor in ss, is _________