Search:

Type: Posts; User: arp35

Search: Search took 0.01 seconds.

  1. Thank you very much. 🙂

    Thank you very much. 🙂
  2. 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:...
  3. 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...
  4. 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:
  5. 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...
  6. 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....
  7. 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...
  8. 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...
  9. Replies
    17
    Views
    468

    An algorithm for cutting a log into pieces

    Dear All,

    I would appreciated if anyone could give me advice about how to solve this problem in C:

    1) An integer list of values (lengths of needed pieces) is entered at the input. For example: ...
Results 1 to 9 of 9