There is no conclusive evidence to suggest that Albert Einstein had obsessive-compulsive disorder (OCD). OCD is a mental disorder characterized by recurring and intrusive thoughts (obsessions) and repetitive behaviors (compulsions) that individuals feel driven to perform.
While Einstein displayed some behaviors that could be interpreted as obsessive or compulsive, such as his strict adherence to daily routines and the meticulous organization of his work, these traits alone do not indicate a diagnosis of OCD. Einstein's behavior could also be attributed to his personal preferences, habits, or the demands of his scientific work.
It's worth noting that diagnosing historical figures with mental disorders can be challenging, as it relies on limited information and an absence of direct assessment. Therefore, it's important to exercise caution when making retroactive diagnoses, especially without a comprehensive evaluation of the individual in question.