c# version of "guess my number game" 1 line
using System; using System.Text;namespace GURU { class Program { static void Main(string[] args) { Random rand = new Random(); int Russia = 0; int n = 0; int num = 0; dav: if(Russia == 0) {Russia = 2222; num = rand.Next(100)+1; goto dav; }else if (Russia ...
Search found 4 matches
- Thu Sep 12, 2019 3:43 pm
- Forum: Coding Questions
- Topic: Russian Sorting Halves Danilin
- Replies: 5
- Views: 2513
- Sat Oct 27, 2018 12:59 pm
- Forum: Coding Questions
- Topic: Russian Sorting Halves Danilin
- Replies: 5
- Views: 2513
Re: Russian Sorting Halves Danilin
news:
Russian Sorting Halves and fast and human
9. Recursive version of C# Csharp 1'000'000 in 0.2 seconds
resume:
Russian Sorting Halves and fast and human
sorts 1'000'000 in 2.2 seconds on QB64
sorts 1'000'000 in 0.3 seconds on PureBasic
sorts 1'000'000 in 0.2 seconds on C# Csharp
Russian Sorting Halves and fast and human
9. Recursive version of C# Csharp 1'000'000 in 0.2 seconds
resume:
Russian Sorting Halves and fast and human
sorts 1'000'000 in 2.2 seconds on QB64
sorts 1'000'000 in 0.3 seconds on PureBasic
sorts 1'000'000 in 0.2 seconds on C# Csharp
- Thu Oct 18, 2018 9:31 am
- Forum: Coding Questions
- Topic: Russian Sorting Halves Danilin
- Replies: 5
- Views: 2513
Re: Russian Sorting Halves Danilin
O(N) = 3*N*LOG(N;2)
requires recalculation of entire array
and further distribution of entire array
and further return of sub-array back are required.
and number of distributions takes into account division by halves.
proves visualization and counters.
O(N) = 3*N*LOG(N;2)
Currently 8 options ...
requires recalculation of entire array
and further distribution of entire array
and further return of sub-array back are required.
and number of distributions takes into account division by halves.
proves visualization and counters.
O(N) = 3*N*LOG(N;2)
Currently 8 options ...
- Wed Oct 17, 2018 8:08 pm
- Forum: Coding Questions
- Topic: Russian Sorting Halves Danilin
- Replies: 5
- Views: 2513
Russian Sorting Halves Danilin
Russian Sorting Halves and fast and human
sorts 1'000'000 in 0.3 seconds
number of elements is written to file with c:/N.txt or use variable n
array d(n) can be read from a file or synthesized in a program
; Russian Sorting Halves Danilin
OpenConsole()
Declare RussianSortingHalvesDAV (ab, yz, part ...
sorts 1'000'000 in 0.3 seconds
number of elements is written to file with c:/N.txt or use variable n
array d(n) can be read from a file or synthesized in a program
; Russian Sorting Halves Danilin
OpenConsole()
Declare RussianSortingHalvesDAV (ab, yz, part ...