Since y=ex and y=logex are inverse to each other their graphs are symmetrical about y=x.
Minimum distance between the curves is the distance between the points on the curves where tangent is parallel to y=x or slope of tangent is 1 .
Now for y=ex,y′=ex, for ex=1,x=0, so the point on the curve y=ex is (0,1) and symmetric point on the curve y=logex is (1,0)
Distance between these points is 2.