• 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
Roolen Avatar
Name:Artem
Clan:MGTU
Member Since:Oct 2017
Last Seen:Jul 2024
Profiles:
Following:4
Followers:5
Allies:4
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (8)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • hploszay
    • commented on "Beginner Series #1 School Paperwork" csharp solution
    • 11 months ago

    lamda operator combined with ternary expression

  • Custom User Avatar
    • SalvadorMaxStep
    • commented on "Beginner Series #1 School Paperwork" csharp solution
    • 17 months ago

    It checks, if both values are above 0, if so, it calculates results, if any of the numbers are below 0, result is 0.
    In logical sense of this task, if 0 classmates ask him to do any amount of work ( none of them asks), there is no work to be done, if 1+ calssmates ask him to do 0 or less work, there is still no work to be done.

  • Custom User Avatar
    • L1z4rd
    • commented on "Beginner Series #1 School Paperwork" csharp solution
    • 17 months ago

    is this correct given that he used && and it was spcified "or" in the task.

  • Custom User Avatar
    • Roolen
    • commented on "Basic Sequence Practice" kata
    • 5 years ago

    I changed the clojure test case for negative numbers.

  • Custom User Avatar
    • Roolen
    • commented on "Basic Sequence Practice" clojure solution
    • 5 years ago

    Indeed, the tests do not take into account negative numbers, and I did not notice.

  • Custom User Avatar
    • qmstuart
    • commented on "Basic Sequence Practice" clojure solution
    • 5 years ago

    When I try this for negative numbers, e.g. -5. I get (0) as

    (let [n -5]
    (range (+ 1 n)))
    ;=> ()

  • Custom User Avatar
    • blizzard47
    • commented on "Beginner Series #1 School Paperwork" csharp solution
    • 5 years ago

    Elements on the left side of this operator => are arguments to the class, elements on the right side is the expreison of the class. ? and : are operators of boolean (if-else) expression, simply if "(n > 0 && m > 0)" is true it uses the left side of : operator if false right side. You can read more about other operators here: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/opsummary.html

  • Custom User Avatar
    • SpookyBoogie
    • commented on "Beginner Series #1 School Paperwork" csharp solution
    • 5 years ago

    I've never seen a method that looks like this. Can some explain how this works?

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...