Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character
Anasayfa Programlama Haskell H?zl? S?ralama (QuickSort)


H?zl? S?ralama (QuickSort)

Haskell programlama dilinde yaz?lm?? bu fonksiyonda h?zl? s?ralama yap?lm??t?r. Kullan?c?dan bir liste al?narak bu dizi s?ralan?p sonuç olarak geri döndürülür. Burada yap?lan s?ralama türü h?zl? s?ralama yani quick sort olarak bilinir.

Program Kodu :

  1.  
  2. quicks :: [Int] -> [Int]
  3. quicks [] = []
  4. quicks (x:xs) = quicks [y | y <-xs , y <= x] ++ [x] ++ quicks [s | s <- xs , s > x ]
  5.  
  6.  

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
 
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.