What is the supremum, infimum, maximum and minimum of the set $$B:=\{x \in\mathbb{R}, \left|\left|x-1\right|-\left|x-2\right|\right|<1 \}?$$
I am not sure how to find any of them. I thought I have to find for which values is the equation right and then from the values I could have some interval for which I could say what is the min, max, sup and inf.. But whatever I put for $x$ I get that $1 < 1$.

If $x \le 1$ then $$|1-x + x - 2|\lt 1 \implies 1 \lt 1$$Which is a contradiction. If $1\lt x \le 2$ then $$|x-1 + x - 2| \lt 1 \implies 1 \lt x \lt 2$$And if $x\gt 2$ then $$|x - 1 - x + 2| \lt 1 \implies 1 \lt 1$$ So the answer is $A = \{x \in \mathbb{R} | 1\lt x \lt2\}$. I think you can find the values that you've mentioned then.