#JW4 may be wrong

I’m stuck on Stage #JW4.

I’ve tried to solve this stage, but even though my code outputs the correct answer, tester keeps sending this back “Expected 5 elements in array, got 8 ([“raspberry”, “blueberry”, “banana”, “apple”, “mango”, “pineapple”, “grape”, “orange”])”.

This is the input I am receiving “524544495330303131fa0972656469732d76657205372e322e30fa0a72656469732d62697473c040fe00fb0500000972617370626572727909626c75656265727279000662616e616e61056170706c6500056170706c650972617370626572727900056d616e676f0970696e656170706c6500056772617065066f72616e6765fff35683ce6ed673fa0a”

I double checked with ChatGPT and he is giving me the reason. Can you guys check this? I am not able to move on.

God bless

Hey @ENez7, the data stored in RDB files are key-value pairs, but the output suggests even the values are being interpreted as keys.

Let me know if you’d like help debugging further!

Didn’t figure that out. Maybe I should stop coding while being half asleep. Thx. God bless

1 Like