For a pre-20th century textbook: <A HREF="https://archive.org/details/3rdedlessonintro00salmuoft">Modern Higher Algebra</A> by George Salmon (1876) has exercises (with solutions).