ivanseidel / ivanseidel/LinkedList
it is hard to judge get() success or not?
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 364
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
template
T LinkedList::get(int index){
ListNode *tmp = getNode(index);
return (tmp ? tmp->data : T());
}
no matter success or not, an instance of T is returned, so how to judge?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting LinkedList::get(int) and getNode(index), then determine how the returned T is used. The issue does not specify an error-signaling API; completion would require an agreed way to distinguish a valid value from failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100