Pseudocode teaching

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Algorithm( OriginalWord , Permutation ){
	if ( OriginalWord is empty ){
		write permutation
	}
	
	for i <- 0 to OriginalWord size length
		TemporaryWords <- OriginalWords
		
		TemporaryWords.erase( i position , for one character )
		
		TemporaryPermutation = Permutation
		
		TemporaryPermutation += OriginalWord.at( i position )
		
		Algorithm( TemporaryWords , TemporaryPermutation ) // Recursive
	end for


can i ask did i write correctly this time?
i follow that what i normally do and translate to english only
Topic archived. No new replies allowed.