This pull request fixes the issue #210 ... passed all testcases .
question:Given a singly linked list and a key, count the number of occurrences of the given key in the linked list.
Fixes: #210
Type of Change
[ ✅] Question Added
[✅ ] Solution Added
Checklist
[✅ ] I have performed a self-review of my code.
[✅ ] I have commented my code, particularly in hard-to-understand areas.
[✅ ] I have made corresponding changes to the documentation (if applicable).
[ ✅] My changes generate no new warnings.
[ ✅] I have added tests to cover my changes (if applicable).
Description
This pull request fixes the issue #210 ... passed all testcases . question:Given a singly linked list and a key, count the number of occurrences of the given key in the linked list.
Fixes: #210
Type of Change
Checklist