Ad
  • Custom User Avatar

    In PHP, tests expect you to preserve keys of items which were kept. I would consider it a bug in tests, or at least an insufficient specification.

  • Custom User Avatar

    This Problem is so weird. I solved it with JavaScript, but when I try to solve it with the same logic by PHP, it passes the test but doesn't pass the attempt because failed to assert one of the test cases. Even though I try to make ChatGPT solve it with PHP, he fails also.