• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Snabbaspirit Avatar
Name:Unknown
Clan:Unknown
Member Since:Apr 2019
Last Seen:Jun 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (15)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Snabbaspirit
    • commented on "Sum of Intervals" kata
    • 2 years ago

    ok, got it, thanks for the reply

  • Custom User Avatar
    • Chrono79
    • commented on "Sum of Intervals" kata
    • 2 years ago

    Those 3 can become [1,11], but you have there [10,20] too, and in the end, all of them become [1,20].

  • Custom User Avatar
    • Snabbaspirit
    • commented on "Sum of Intervals" kata
    • 2 years ago

    can someone explain please why for this intervals [[1, 5],[10, 20],[1, 6],[16, 19],[5, 11]] the sum is 19?
    how do they merge? why [[1,5],[1,6],[5,11]] does not become [1,11] ?

  • Custom User Avatar
    • Snabbaspirit
    • commented on "Sum by Factors" kata
    • 4 years ago

    nope they're not

  • Custom User Avatar
    • Snabbaspirit
    • commented on "Sum by Factors" kata
    • 4 years ago

    Turns out that only 2,3,5,7 are valid numbers

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    Thanks! :D.

  • Custom User Avatar
    • Awesome A.D.
    • commented on "Sum by Factors" kata
    • 4 years ago

    @kingcobra_

    You need to find the prime factors of all elements of I, then produce the sum of all elements of I that share that prime factor: [(prime factor p1, sum of all elements of I with prime factor p), (prime factor p2, sum of all elements of I with prime factor p2), ...]

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    i actually didnt understand the kata.
    is it like finding the factor of a number which is prime?

  • Custom User Avatar
    • Chrono79
    • commented on "Sum by Factors" kata
    • 4 years ago

    Yes, that's why you get [3, 27 = 12 + 15] and [5, 15]

  • Custom User Avatar
    • Kingcobra_
    • commented on "Sum by Factors" kata
    • 4 years ago

    but 5 and 3 are prime factors of 15 right

  • Custom User Avatar
    • Chrono79
    • commented on "Sum by Factors" kata
    • 4 years ago

    6 is not a prime number.

  • Custom User Avatar
    • Snabbaspirit
    • commented on "Sum by Factors" kata
    • 4 years ago

    I = [12, 15]; //result = [[2, 12], [3, 27], [5, 15]]
    Why result doesn't include [6, 12] ??
    Thats also a valid value

  • Custom User Avatar
    • Snabbaspirit
    • resolved a question on "Calculator" kata
    • 4 years ago

    Appreciated!

    But there is something wrong with tests. I reloaded the page after typing log and all of them passed
    Well actually they had to
    It was pretty tricky to solve this kata steadily adding conditiions which could happen
    Something like '(-2 - 2 + (21.32 - (4 * 1)) + (3 * -2.22)) + 3 + (1 + 2) + (11 * 1 - (22 + 2 / -77.44 + (77 / -7.3 - 4 + 2 * 2.11 / 1 * 2 * 3)))' is not written as a possible input value but might be there, obviously

  • Custom User Avatar
    • hobovsky
    • commented on "Calculator" kata
    • 4 years ago

    https://docs.codewars.com/training/troubleshooting#print-input

  • Custom User Avatar
    • Snabbaspirit
    • created a question for "Calculator" kata
    • 4 years ago

    Help please, where can I see the input values of random tests?

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...