Sort by Extension

Sort by Extension

您将得到一串文件。您需要根据文件扩展名对该序列进行排序。具有相同扩展名(或没有扩展名)的文件应按名称排序。

一些可能的情况:

  • 文件名不能为空字符串;
  • 排序顺序:没有名称的文件、没有扩展名的文件、有名称和扩展名的文件;
  • 文件名.configconfig. 都是带空扩展名的名称;
  • 文件名如str1.str2.str3 ,扩展名为str3 ,名称为str1.str2
  • .str1.str2 这样的文件名有一个扩展名str2 和一个名称.str1...
You should be an authorized user in order to see the full description and start solving this mission.
40