Search:

Type: Posts; User: BroVic

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    6,553

    It's Log in - Codility...

    It's Log in - Codility. You'd have to sign up though. It's the second exercise among the training tasks.
  2. Replies
    8
    Views
    6,553

    Makes sense, though the task was agnostic as to...

    Makes sense, though the task was agnostic as to how the input vector was generated. Like I said originally, it was for a coding test and the emphasis was on both code correctness and efficiency.
  3. Replies
    8
    Views
    6,553

    Thanks again. The reason I created `inRange` is...

    Thanks again. The reason I created `inRange` is because one of the requirements of the task was to check the bounds of both the length of the array AND the value of each element in the array.
  4. Replies
    8
    Views
    6,553

    Thanks for your reply. Yes, it actually occurred...

    Thanks for your reply. Yes, it actually occurred to me to sort the vector first and check for adjacent equal pairs. However I think the problem requires a traversal of the whole vector because only...
  5. Replies
    8
    Views
    6,553

    Poor performance of code

    I just did an online coding test and my code was said to be correct but performance is an issue. Could anyone help me improve it?


    // C++ 14
    // 'solution' checks an uneven-length array...
Results 1 to 5 of 6