🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #435

Re: problem w c

#435
From: lukrak
Date: Thu, 22 Jan 2004 21:47
42 lines
1836 bytes
> Zapisz w postaci funkcji algorytm: dane s_ dwa zbiory A i B ( n-elementowy
i
> elementowy)
>
> o elementach b�d�cych liczbami ca�kowitymi. Elementy tych zbior�w dane s�
za
> pomoc
>
> _ dw�ch tablic uporz�dkowanych rosn� co. Wyznacz liczb� element�w
nale��cych
>
> do zbioru A \ B (r�nica zbior�w ).
>
> {
> int ilosc = 0;
> for(i = 0; i < N; i++)
> {
>     bool found = false;
>     for(j = 0; j < M; j++)
>     {
>         if(A[i] == B[j])
>         {
>             found = true;
>             break;
>         }
>     }
>     if(!found)
>         ilosc++;
> }
>
> return ilosc;
> }
>  mam cos takiego i moje pytanie b�mi czy  wykona sie prawid�owo i jak
> obliczy� do tego z�o�ono�� (czas wykonania algorytmu) oraz jak zbudowa�
> prosty schamat blokowy.
>
> pom�cie mi
> odpiszcie na adres luk...@xl.wp.pl prosze to wa�ne
>
>
>
Technical Details
Message-ID: <bupghc$706$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "lukrak" <luk...@o2.pl>
Newsgroups: alt.pl.comp.lang.csharp,alt.pl.www.jezyki,pl.comp.lang.c,pl.comp.nowe-programy
Subject: Re: problem w c
Date: Thu, 22 Jan 2004 22:47:40 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 44
Message-ID: <bupghc$706$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: pb80.ciechanow.cvx.ppp.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1074808174 7174 213.77.203.80 (22 Jan 2004 21:49:34 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Thu, 22 Jan 2004 21:49:34 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit