• 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
JonnathanLS Avatar
Name:Jonnathan Lacerda Santos
Clan:Santander Tecnologia
Member Since:Nov 2019
Last Seen:Aug 2022
Profiles:
Following:2
Followers:3
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (20)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • andrnaz
    • commented on "Counting Duplicates" typescript solution
    • 15 months ago

    Good

  • Custom User Avatar
    • professor-oats
    • commented on "Counting Duplicates" typescript solution
    • 16 months ago

    Cool solution.

    Could someone give an explanation? I understand the overall idea but get lost in
    const count = ...expression

  • Custom User Avatar
    • Awaisahmed12
    • commented on "Tribonacci Sequence" typescript solution
    • 2 years ago

    the slicing is smart, but causes unnecessary calculations instead of just cutting off the less than 4 cases, no?

  • Custom User Avatar
    • Nun-of-the-Above
    • commented on "Tribonacci Sequence" typescript solution
    • 2 years ago

    Ohh the slicing is smart. I just handle the edge cases with n < 3 by early return.

  • Custom User Avatar
    • JonnathanLS
    • commented on "Tribonacci Sequence" typescript solution
    • 3 years ago

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

  • Custom User Avatar
    • JonnathanLS
    • commented on "Tribonacci Sequence" typescript solution
    • 3 years ago

    reviewing the code, it got a bit confusing, i will practice refactoring to apply the solution with recursion

  • Custom User Avatar
    • JonnathanLS
    • commented on "Tribonacci Sequence" typescript solution
    • 3 years ago

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

  • Custom User Avatar
    • alexander__k
    • commented on "Tribonacci Sequence" typescript solution
    • 3 years ago

    Good and clear solution.
    But I prefer not to mutate function arguments such as objects and arrays. It can lead to unexpected results outside the function. But for this kata it is OK.

  • Custom User Avatar
    • yefimchuk
    • commented on "Tribonacci Sequence" typescript solution
    • 3 years ago

    nice solution

  • Custom User Avatar
    • JonnathanLS
    • commented on "Tribonacci Sequence" typescript solution
    • 4 years ago

    ❤️

  • Custom User Avatar
    • hannesschaletzky
    • commented on "Tribonacci Sequence" typescript solution
    • 4 years ago

    lovely solution!

  • Custom User Avatar
    • davorpa
    • commented on "Two Oldest Ages" typescript solution
    • 4 years ago

    Array.sort makes in-place operations so inmutability of ages array is not guaranteed. It implies having side effects after executing function.

  • Custom User Avatar
    • JonnathanLS
    • commented on "Tribonacci Sequence" typescript solution
    • 5 years ago

    @wailmadrane

    To be able to get the desired amount of the tribonacci sequence.
    For example, in this scenario I want to test you only 1 item of the sequence:

    Test -> tester([1, 1, 1], 1, [1]);

    Input Sequence -> [1, 1, 1]
    Desired Quantity -> 1
    Expected Sequence -> [1]

  • Custom User Avatar
    • wailmadrane
    • commented on "Tribonacci Sequence" typescript solution
    • 5 years ago

    why do you slice?

  • Custom User Avatar
    • JonnathanLS
    • commented on "Grasshopper - Summation" typescript solution
    • 5 years ago

    WoW

    Great !

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...