• 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
ConsSorto Avatar
Name:Constantino Sorto Reyes
Clan:Unknown
Member Since:Jun 2024
Last Seen:Jul 2024
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (8)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • ConsSorto
    • commented on "Nesting Structure Comparison" kata
    • 13 months ago

    ok thanks

  • Custom User Avatar
    • Chrono79
    • commented on "Nesting Structure Comparison" kata
    • 13 months ago

    Do you understand that you're comparing NESTING STRUCTURE, right? Read the description again if not. You're not comparing data types.

    Complete the function/method (depending on the language) to return true/True when its argument is an array that has the same nesting structures and same corresponding length of nested arrays as the first array.

    It doesn't say anything about each element datatype matching. You can think of the list elements like list and not a list (it doesn't matter which datatype is) if you want.

    [1,'[',']'] same as ['[',']',1]
    [nal,nal,nal] same as [nal,nal,nal] nal: not a list
    
    [1,[1,1]] not same as [[2,2],2]
    [nal,list] not same as [list,nal] not the same
    
  • Custom User Avatar
    • ConsSorto
    • commented on "Nesting Structure Comparison" kata
    • 13 months ago

    not the same INT is not equal STR.

  • Custom User Avatar
    • Chrono79
    • resolved an issue on "Nesting Structure Comparison" kata
    • 13 months ago

    The nesting structure is the same, not a kata issue. The data type doesn't matter, unless it is a list, because they can be nested, unlike the other data types.

  • Custom User Avatar
    • ConsSorto
    • created an issue for "Nesting Structure Comparison" kata
    • 13 months ago

    Test that is wrong:

    Test :
    Testing to see if you tried a certain short-cut
    [1,'[',']'] same as ['[',']',1]: False should equal True

    3 elements but the first is INT and the first in the second is STR then is False not True

    in the example test
    test.assert_equals(same_structure_as([1,[1,1]],[[2,2],2]), False, "[1,[1,1]] not same as [[2,2],2]")

    2 elements but the first id INT and the first in the second is LIST then is False

  • Custom User Avatar
    • brakkum
    • commented on "Working with arrays I (and why your code fails in some katas)" python solution
    • 13 months ago

    Boy did I over think this one lol

  • Custom User Avatar
    • ConsSorto
    • commented on "Working with arrays I (and why your code fails in some katas)" python solution
    • 13 months ago

    my code is the same, hahhaha great

  • Custom User Avatar
    • ConsSorto
    • commented on "Working with arrays I (and why your code fails in some katas)" python solution
    • 13 months ago

    that is a new list great.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...