のは難しかった

was difficult to

→ の
phrase Rare #24,511
was difficult to の turns an action into a noun-like phrase, so the expression means that doing that action was difficult.
JA: 駅まで歩くのは難しかった。
EN: It was difficult to walk to the station.

少しでも伸びたのか、見分けるのは難しかった。

It was hard to tell whether it had grown at all.

その双子はとてもよく似ていたので、二人を区別するのは難しかった。

The twins looked so much alike that it was difficult to tell them apart.

作るのは難しかったですか。

Was it difficult to make?

そのパズルを解くのは難しかった。

That puzzle was difficult to solve.

彼の講演の主題を理解するのは難しかった。

It was difficult to understand the main topic of his lecture.

隣の人とうまくやるのは難しかった。

It was difficult to get along with the person next door.

自分の言うことを理解してもらうのは難しかった。

It was hard to make myself understood.

だが船首越しに見ても、どちらがどちらなのか見分けるのは難しかった。

But even looking over the bow, it was hard to tell which was which.

彼に決心を変えるように説得するのは難しかった。

It was difficult to persuade him to change his mind.