$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #104
What is printed?
print({1, 2} | {2, 3}, {1, 2} & {2, 3})
{1, 2, 3} {2}
{1, 2, 3} {1, 3}
{2} {1, 2, 3}
{1, 2, 2, 3} {2}
| is set union and & is set intersection.
Play Problem Solving ▸
◂ #103
all Problem Solving — predict the output questions
#105 ▸