I think today's challenge's one of the tests is wrong!

The second test says:

numberOfVideos(2000, “B”, 1, “TB”) should return “Invalid video unit”.

The first 2 constraints say:

The unit for the video size can be bytes (“B”), kilobytes (“KB”), megabytes (“MB”), or gigabytes (“GB”).•

If not given one of the video units above, return “Invalid video unit”.

1 Like

Can you please report the issue.

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

I reported this issue a little while ago. Yes, there’s an error in the challenge.

It’s an experience to find the mistake and be recommended to go to GitHub issues and learn about how to post a problem or an issue.

Once in a while you should make mistakes like that about the challenges lol

1 Like

I agree. I’ve actually done that a couple of times, now, and I think it’s taught me something about defining problems.

Maybe I should aim in the future to submitting my own PR’s to fix such problems.

Reading other people’s code is a skill to acquire.

Maybe some challenges should offer for example 3 different ways to solve a challenge and others fake wrong solutions that don’t.

The user will have to read each solution and see how many solutions they can figure out to be proper.

Maybe the fakes solutions need a little alteration to work properly.

To not overwhelm the user, offer 3 choices one is a real solution and 2 need a alteration to work as a solutions

But: how to make the user avoid random choosing for luck.

I think knowing how to solve one problem in many ways is powerful.

I kind of like where you’re headed here. A coding challenge that consists of a code review? I think you’re on to something. I especially like the idea when there are really like ten different things wrong with the given code, that the fake-user is doing things really bass-ackwards but they work, except for one little thing. Do you point out the one little thing or do you tell him the whole thing is really bass-ackwards?

Now that you made me think of it again

I think you put a challenge and you offer three solutions that are not working properly and invite the user to find the thing that they need to add or alter or change for the solution to work.

This will make the user memorize that solution because he’s going to read it a lot to figure out what’s missing and that way we are enriching coders variety of solutions and creativity.

And finally the score of the challenge is that how many solutions he can fix and made them work.

Of course you can put the best awkward thing if you want to add fun to it.

I believe just some challenges should be in this style, others should be like regular ones offered right now, i like them.

1 Like