Search found 1 match

by davidrobert
Fri Sep 17, 2004 6:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10152 - ShellSort
Replies: 33
Views: 14775

O(n)

#include <cstdio>
#include <cstring>

const int MAX_LEN = 100;
const int MAX_NUM = 1000;

char inicial[ MAX_NUM ][ MAX_LEN ];
char objetivo[ MAX_NUM ][ MAX_LEN ];
int num_tartarugas;

void read();
void computa();

int
main()
{
int num_casos;
scanf( " %d ", &num_casos );
for( int case_num = 0 ...

Go to advanced search