subject

- An online shop sells T-shirts of three sizes: S (small), M (medium) and L (large). Write a function solution that, given a string T of length N containing letters S, M and L, returns a sorted string T by T-shirt sizes from the smallest to the largest. Examples: Given T = "MSSLS", the function should return "SSSML". Given T = "LLMS", the function should return "SMLL". Given T = "SMS", the function should return "SSM". Write an efficient algorithm for the following assumptions: N is an integer within the range (1..200,000); string T consists only of the following characters: "s", "M" and/or "L". in C#

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 23:30, cam961
What are "open-loop" and "closed-loop" systems
Answers: 1
image
Computers and Technology, 24.06.2019 09:50, potatocow
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
image
Computers and Technology, 24.06.2019 16:30, magalya01
Which program can damage your computer?
Answers: 1
image
Computers and Technology, 25.06.2019 04:00, anthonypacheco
What was the name of the first computer (machine) language?
Answers: 2
You know the right answer?
- An online shop sells T-shirts of three sizes: S (small), M (medium) and L (large). Write a functio...

Questions in other subjects:

Konu
Arts, 23.09.2021 16:30