Ad
  • Custom User Avatar

    sometimes its better to just take the F, learn what you can and return to it

  • Custom User Avatar

    If you were confused by the problem statement as I was, hopefully this makes it a little clearer what is being asked of:

    The expression [ [p, sum of all ij of I for which p is a prime factor (p positive) of ij] ...] describes a nested array structure where:

    p represents a prime factor found within the elements of the input array I.
    The inner array [p, sum of all ij of I for which p is a prime factor (p positive) of ij] consists of two elements:

    The first element is the prime factor p.

    The second element is the sum of all elements in the array I for which p is a prime factor.
    In essence, for each unique prime factor p found in the elements of array I, the resulting structure contains an inner array with p as the first element and the sum of all elements in I for which p is a prime factor as the second element.

    For example:
    If I = [12, 15], the resulting structure would be [[2, 12], [3, 27], [5, 15]], where:

    • 2 is a prime factor of 12.
    • 3 is a prime factor of both 12 and 15.
    • 5 is a prime factor of 15.

    Hence, the inner arrays [2, 12], [3, 27], and [5, 15] denote the prime factors found in the elements of I along with the sum of those elements for which each prime factor is applicable.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    My solution works for everything except 'M'

    if M is:
    1110111

    "Dot" – is 1 time unit long.
    Pause between dots and dashes in a character – is 1 time unit long.

    Why is the pause between the two dots not 000 as the dot is smallest time unit (111)

    .0.
    Expected: 'M', instead got: ''

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
  • Custom User Avatar

    So happy I was able to get it"!!!

  • Custom User Avatar

    use chatgpt as an aid. If you don't know how to do the 8kyus you lack the fundamentals of the language. It is fine, just take the L and look at the solutions. Learn from them and work out what they mean. If you can't figure it out after 5/10 minutes just look at the answer. Using chatgpt you can say what does {insert code} mean in python/js/c++ {insert language} and it will break everything down for you. A brilliant learning resource. glhf

  • Custom User Avatar

    Please could someone point me in the right direction towards simplifying the expression as I'm lost.
    I'm not asking for the answer just a little more information.

  • Custom User Avatar

    All sorted, made everything private.

  • Loading more items...