Beta
Bar Graph - Graphing #1
11matt c
Loading description...
Graphs
Arrays
Fundamentals
View
Career Accelerator
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.
Interesting problem, but most of my time was spent trying to figure out what it was asking rather than actually solving the problem. Perhaps its needs a more clear declaration of what its requesting. It also discusses the importance of the 'type' but then doesn't use it. Tests allow solutions that index graph arrays with index rather than by a graphs ID because tests use ID's of 0 or 1 in order, so graph ID 0 is always at array index 0, and others issues. But did enjoy solving it, definitely the intricacies of adding-to or creating objects as needed.
Fix please formatting of this kata description. It is difficult to understand task because of errors on Markdown, and bad formatting. But the task is very interesting. Thank you!
Done.
Random tests sometimes generate graphs with the same id (id collision) and the tests does not cater this scenario.
Should probably prevent people processing the graph at the wrong place, e.g My solution processes the graph at
getGraph
instead ofcreateBarGraph
.In the sample code
getBarGraph
is shown, but the actual method used isgetGraph
.