Simplified Logistics Problem

Asked at Amazon · Coding & Leetcode-style Questions · Difficulty: Easy

You have a string representing a path of cargo. The string consists of lowercase letters where each letter represents a different path node. Some nodes in the network are represented by empty spaces and need to be handled. Write a program that can parse this string and return a path without spaces.

Loading the problem…