Pergunta de entrevista da empresa ByteDance

Parse a log entry string. Shortest distance between any two points of a given set. some DP