Ad
  • Custom User Avatar

    😅 I was deep in thought, trying to figure out how to approach this… then I hit "Run Tests" just to see what would break — and everything passed!
    I honestly don’t know how or why it worked, but it did.
    Sometimes Codewars blesses us with happy little mysteries. 😄
    Is that an issue with the kata… or do I just not understand what's going on yet?
    Either way, time to dive back in and reverse-engineer what’s actually happening!

  • Custom User Avatar
  • Custom User Avatar

    No, JavaScript's interpreter understands both cases with the same way, it's a little bit styled.

  • Custom User Avatar

    is there a reason to put it in bracets?

  • Custom User Avatar

    Hi,

    1. spoiler flag, please
    2. you don't need the first approach here, if you programmed the other one correctly
  • Custom User Avatar

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

  • Custom User Avatar
  • Custom User Avatar

    I found quite a few, you arrogant dutch-man:

    • The example shows the quota as a ceiled integer, is that for display purposes or hidden spec that we need to ceil total votes over total seats?
    • You don't explain which method of "highest average of votes per seat" to use. Only in the wiki page there is a reference to the method used in Dutch elections. I'm not even sure you use that one.
    • You don't explain whether continious updates of seats should be used in assigning residual votes, or a snapshot should be taken a priori, both in first phase, as in recalculation of seats in coalitions.
  • Custom User Avatar

    of course it's this simple and of course I had to complicate it haha well done

  • Custom User Avatar

    Really good kata. Lots of thinking, typing and learning. Well done!

  • Custom User Avatar
  • Custom User Avatar

    You don't want to be patronized?

    I tried very very hard to understand what you do not understand. Everything is written down. What is not to understand about the line below? Is it maybe the word 'standard' that you read as 'allocation of seats excluding residual seats'? No clue, the sentence below talks about 'standard allocation' as opposed to 'allocation within combination'.

    'A combination is treated as 1 party but after the standard allocation the seats gathered by the combination need to be allocated again to its individual members.'

    Keep opposing bad specs! You will not find them in this kata.

  • Custom User Avatar

    Don't patronise me, in my long career I've always challenged bad specs.

  • Custom User Avatar

    Everything you need to know is in the description. Just read better. From my 30 years of experience that is sometimes hard for developers (also when I read the comments here).

    And yes, kata is hard. I did the kata myself too and had a problem with it.

  • Custom User Avatar

    Made playground in c# sealed and added image.

  • Loading more items...