By the end of the 14th century Lithuania was the largest state in Europe .