Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
KPACUBO
thanks for the explanation dude.
but Why in I = [12, 15] we didn't get [2, 12], [3, 27], [4, 12] and [5, 15]
sometimes its better to just take the F, learn what you can and return to it
The irony of this explanation being marked as spoiler...
But I do agree that the description it wasn't very clear, I postponed doing this kata for a few months because I couldn't understand it well at a first read.
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:
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.
Oh god I am already scared of attempting this now lol
This comment is hidden because it contains spoiler information about the solution
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: ''
zzz
beautiful
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
bruh
This comment is hidden because it contains spoiler information about the solution
thanks
Loading more items...