ako ludia, neni to zly napad... ja len zasa napriklad neholdujem velmi etanolovym jedom
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Zobrazi» príspevky MenuQuote from: Zuzka on 03.02.2007, 02:28:34ja sa dobrovolne ponuknemQuote from: DeeL on 03.02.2007, 01:23:55heh..ale ja sa ani nemam s cim hrat
no co sa smejes? ... ja by som mozno tiez tak dakedy reagoval, ale ked ma uz prestava bavit sa hrat normalne, uz len cakam, kedy skoncim na takych hrach
Quote from: joker on 02.02.2007, 16:35:42presne tak... a to bola podstata zadania ... druha skupina mala prave strom zobrazovat, tato uloha bola len o vytvoreni stromu a nie jeho vypisani...
Deel - este k tomu stromu ti chyba vypis stromu ... cez toto show s totymi zatvorkami... bo ta funkcia ti ten strom len urobi...
reverse :: [a] -> [a]
reverse (x:xs) = reverse xs ++ [a]
(+-+) :: [a] -> [a] -> [a]
[] +-+ ys = ys
(x:xs) +-+ ys = x : (xs +-+ ys)
rv :: [a] -> [a]
rv [] = []
rv (x:xs) = foldr op [] (x:xs)
where
op a b = b ++ [a]
foldl1 :: (a -> a -> a) -> [a] -> a
foldl1 f (x:xs) = foldl f x xs
g :: [[a]] -> [(Int,[a])]
f :: [a] -> (Int,[a])
f xs = (length xs, xs)
data Btree a = Tip a | Bin (Btree a) (Btree a)
strom :: [a] -> Btree
strom [a] = Tip a
strom xs = Bin (strom us) (strom ps)
where
us = take len xs
ps = drop len xs
len = (length xs) 'div' 2
Quote from: Zuzka on 01.02.2007, 21:45:15no vidiiis... a hned sa to tu rozbehne ... napokon ani dostatok satelitov a mesiacikov nebudeQuote from: nemtom on 01.02.2007, 21:39:30no presne, a este im poviem o vasom sarme a hned pridu :-P
tu nejde o posty ale o to aby sa nenudila, a aby sirila medzi kolegyne ze informatici neziju len pre svoje pc