Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 858 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 858 Bytes

s9e\ShortestCommonSuperstring takes a list of strings and returns a single string that contains all of the given input. The implementation uses a greedy approximation algorithm.

Build Status Code Coverage Scrutinizer Code Quality

Usage

$scs = new s9e\ShortestCommonSuperstring\ShortestCommonSuperstring;
echo $scs->getShortest(['abb', 'bba', 'bbb']);
abbba