Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

insotriplesix/csssr-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csssr-task

Description

Given a string of words separated by spaces. You have to transform this string into a data structure that groups these words by their first letters.

The groups should be sorted in alphabetical order. Inner words should be sorted by their lengths and also in alphabetical order if the lengths are equal.

Example

before = "сапог сарай арбуз болт бокс биржа"

// transform
. . .

after = "[б=[биржа, бокс, болт], c=[caпог, сарай]]"

About

Implementation of prefix data structures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages