Frage im Vorstellungsgespräch bei Duo Security

Receive a string array with version numbers. Identify if the first in the array is greater.

Antwort im Vorstellungsgespräch

Anonym

20. Juli 2023

Split by the '.' to make it easier to compare. Be careful of versions that are not standard. Not all of them have Major.Minor.Hotfix, some are Major.Minor or just Major but have to compare to case with all 3.