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.
sometimes its better to just take the F, learn what you can and return to it
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.
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
So happy I was able to get it"!!!
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
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.
All sorted, made everything private.
Loading more items...