En cours

sorte a line of strings containing integers and words

The goal is to sort this list in such a way that all words are in

alphabetical order and all integers are in numerical order.

Furthermore, if the nth element in the list is an integer it must

remain an integer, and if it is a word it must remain a word.

Input:

man girl 8 4 boy 6 1

Output:

boy girl 1 4 man 6 8

Your answer should include the topics below:

1. The Java code for the problem described above, It¡Çs better to show the program flow charts of your code through visio or other graph tools.

2. If others want to use your code in their program, which type of information will you put into the documents of the algorithm. Try to write your idea.

3. Analysis of the time complexity and space complexity of your method and total computation.

Compétences : Algorithme, Java

Voir plus : use of graph, use of algorithm, use a graph, time complexity of code, time complexity of an algorithm, time complexity of algorithm, time complexity in c, time complexity in algorithm, time complexity analysis, time complexity algorithm, time complexity, space complexity and time complexity, sort algorithm, problem graph, problem algorithm, other words for complexity, list graph, line in problem, line algorithm, java graph algorithm, integers and, in line program, graph problem, graph java, graph in java

Concernant l'employeur :
( 6 commentaires ) suzhou, China

N° du projet : #1677922

Décerné à :

duchuyctlk

It is an easy project for me. Pls read PMB for more detail.

4 $ USD / heure
(25 Commentaires)
4.0

2 freelances ont fait une offre moyenne de 6 $ /heure pour ce travail

aleexaibi

Hi, this is very easy job for me and i can do it for you . . :)

8 $ USD / heure
(2 Commentaires)
0.4