Draft
RGB888 to BGR555
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
It's "least significant bits".
Either the reference solution is wrong, or some information is missing from the description.
Edit: I've looked at your solution, and it is indeed incorrect.
@author: are you still willing to solve the open issues?
What if it's already less than 5 digits? What if it's 6 digits long?
You will need to add extra zeroes to the beginning so that the number reaches 8 digits.
Should each hex character be converted to 4-digit binary representation, or should it be the whole hex pair, padded left to 8 digits?
each pair
Could you please explain then:
Where am I going wrong?
Since it's BGR555, you need to put the blue (00100) first and then green then red.
Thanks. I was dumb to not notice that... So now I'm passing the sample tests, but failing some random ones. Could be related to @FArekussu issue raised above, IDK.
No random tests. I suggest you unpublish immediately and add random tests. This is a requirement.
OK, I can.
Fixed!
tests/Fixture.cs(13,53): error CS1002: ; expected
Fixed.
i have to make another post to make it resolved because i forgot