Search found 565 matches

by lrcvs
Jul 22, 2019 5:35
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, fxm:

As always, thank you for your observations.

Apologies
by lrcvs
Jul 22, 2019 5:23
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

'lrcvs 2019.jul.21 'program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing the time of "cleaning the repeated elements". '3)It is a small improvement of the ...
by lrcvs
Nov 25, 2017 20:37
Forum: General
Topic: QuickSort Text
Replies: 3
Views: 326

Re: QuickSort Text

Deleted, it does not work well.

Apologies.
by lrcvs
Nov 25, 2017 8:53
Forum: General
Topic: QuickSort Text
Replies: 3
Views: 326

QuickSort Text

Deleted, it does not work well.

Apologies.
by lrcvs
Nov 06, 2017 5:33
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi: Part # 2: With the previous program, we obtain the unique elements of a list / array (or remove the repeated ones.) Now, we show the original list / array, without the repeated elements and in the initial order. 'lrcvs 01.10.17 'program to eliminate repeated elements in an array. '1) we sort the...
by lrcvs
Nov 05, 2017 12:19
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, fxm: Thank you very much for your observation. I modify the program with your indications. 'lrcvs 01.10.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing t...
by lrcvs
Nov 05, 2017 5:00
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi My apologies, now is perfect. 'lrcvs 01.10.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing the time of "cleaning the repeated elements". DECLARE...
by lrcvs
Nov 04, 2017 6:05
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi I have modidied the entry of values in the array to "0" 'lrcvs 01.10.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing the time of "cleaning ...
by lrcvs
Nov 03, 2017 21:58
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi: 1) Thank you very much everyone! 2) LOL, I've been working erroneously well all my life! I modified the program a bit. (I hope I did not have more errors) 'lrcvs 01.10.17 'program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeat...
by lrcvs
Nov 03, 2017 7:21
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi


Editor Fb:


FB IDE See 0.4.6, February 19, 2006, wxwidgets 2.2.2
by lrcvs
Nov 03, 2017 6:09
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, sancho3:


... but with the editor, there is no error... and... is a good idea!

... 3.000.000 of elements <= 1 second!


Init array of 3000000 elements, some repeated

There are 1896773 unique elements

end


Regards
by lrcvs
Nov 03, 2017 5:27
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, sancho3:

You're right!

I have never tried "fbc -exx" xxx.bas "

and yes, it indicates the same error as you.

... but with the editor, there is no error.
by lrcvs
Nov 02, 2017 18:46
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, Sorry for the delay in responding. Well, I work with this: FB IDE See 0.4.6, February 19, 2006, wxwidgets 2.2.2 And with this editor, the program does not indicate error. Here you have a sample: 13 10 18 18 16 3 20 7 3 17 13 14 16 8 19 14 8 13 8 13 Init array of 20 elements, some repeated 3 7 8 ...
by lrcvs
Nov 02, 2017 5:30
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi The program does not indicate an error. 'lrcvs 01.10.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing the time of "cleaning the repeated elements"...
by lrcvs
Nov 02, 2017 4:45
Forum: General
Topic: Remove elements repeted
Replies: 26
Views: 3994

Re: Remove elements repeted

Hi, all!

Thanks to both of you.
I change the lines of code that you indicate to me.

Go to advanced search