# Search:

Type: Posts; User: arp35

1. ## Thread: Dynamically allocated 2D array of chars - unkwnown number of rows and columns

by arp35
Replies
3
Views
203

### Thank you very much. 🙂

Thank you very much. 🙂
2. ## Thread: Dynamically allocated 2D array of chars - unkwnown number of rows and columns

by arp35
Replies
3
Views
203

### Dynamically allocated 2D array of chars - unkwnown number of rows and columns

Dear All,

I am trying to solve a problem of dynamically allocated 2D array. My goal is to develop program that will scan at the input unknown number of sentences of unknown length in this format:...

by arp35
Replies
17
Views
468

### It is a problem regarding school homework but it...

It is a problem regarding school homework but it is not written in english. I only know that the reference solution consists of 6 functions and 92 lines of code and the correct answer for these...

by arp35
Replies
17
Views
468

### Thank you. The maximum at the input is 500 000...

Thank you.

The maximum at the input is 500 000 elements (lengths). :frown:

by arp35
Replies
17
Views
468

### Maybe you're allowed to rearrange the pieces so...

Maybe you're allowed to rearrange the pieces so you can cut more than one log at once.

No matter how many logs is cutting at once. The price is always the length of the log. I am not allowed to...

by arp35
Replies
17
Views
468

### The log here means part of tree. It could be...

The log here means part of tree. It could be pipe, beam etc....

by arp35
Replies
17
Views
468

### [QUOTE=john.c;1291304]How exactly do you solve...

[QUOTE=john.c;1291304]How exactly do you solve that example and get 849?[/QUOTE

I do not know how to solve it, 849 comes from the correct reference solution (i do not know the code) and my aim is...

by arp35
Replies
17
Views
468

### Unfortunately, doing it in order from the highest...

Unfortunately, doing it in order from the highest to the lowest number is not always correct solution. If I have a list of 1 ,2, 3, 8, 9, 9, 21, 31, 45, 71 and 124, I would get a price 868, but the...

by arp35
Replies
17
Views
468