If $M_{n\times n}$ is the set of invertible matrices with real entries. Find two matrices $A,B\in M_{n \times n}$ with the propriety that there not exists such a continuous function
$$f:[0,1]\to M, \quad f(0)=A, f(1)=B $$
the only way i was thinking was is the inverse function such as $f^{-1}(A)=0, \quad f^{-1}(B)=1,$ but this doesnt seem to get me anywhere.
If $\det(A)>0>\det(B)$, then there is no such function, because otherwise the range of the map $\det\circ f$ would contain $\det(A)$ and $\det(B)$, but not $0$.