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 graph, time complexity code, time complexity algorithm, time complexity, sort algorithm, problem graph, problem algorithm, words complexity, list graph, line problem, line algorithm, java graph algorithm, integers and, graph problem, graph java, graph algorithm java, flow problem, flow algorithm, element 8, computation complexity, complexity computation, code line, algorithm sort, algorithm input, algorithm graph

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