> {maxim dintr-un vector cu divide et impera} program maxim; var v:array[1..10] of integer; n,i:integer; …
Tag:
Divide et impera
-
-
> {turnurile din Hanoi} program hanoitowers; var a,b,c:char; n:integer; procedure han(n:integer; a,b,c:char); begin if n=1 …
-
{sortare prin interclasare – divide et impera} program sortare; type vector=array[1..10] of integer; var a:vector; …