KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy 4.1 is correct but is in wrong format

  • 4.1 is correct but is in wrong format

    Posted by AAronD27 on March 12, 2025 at 11:15 am

    4.1 is correct for the first test case but wrong for the second one. Here’s my code:

    • This discussion was modified 1 day, 20 hours ago by  AAronD27.
    mwoods replied 1 day, 18 hours ago 2 Members · 1 Reply
  • 1 Reply
  • mwoods

    Administrator
    March 12, 2025 at 12:46 pm

    You should not need to filter out 

     time.minute > 09:30

    as when creating the buckets the first one will start 09:30 automatically given the dataset begins. You are filtering out some records between 09:30 and 09:31.
    Could also do 

     time.minute >= 09:30
    

    to include these.

Log in to reply.