"# JavaLinkedList"
I have tested myself multiple combination of scenarios but please ask someone to do one round of testing again to be sure.
first two methods were straight forward so my main focus was to test last method only.
I used following test cases for last method( Remove all element in the linked list that is greater than a target value ) :
- List -> 1 target value -> 1 List after operation -> 1
- List -> 1 target value -> 0 List after operation -> empty list
- List -> 1,5,1 target value -> 6 List after operation -> 1,5,1
- List -> 1,5,1 target value -> 3 List after operation -> 1,1
- List -> 5,1,5 target value -> 6 List after operation -> 5,1,5
- List -> 5,1,5 target value -> 3 List after operation -> 1
- List -> 5,1,5 target value -> 0 List after operation -> empty list
- List -> 1,2,3,4,3,2,1 target value -> 3 List after operation -> 1,2,3,3,2,1
- List -> 100,2,13,51,23,2,101,23,50,40,40,90,32,4,101,4 target value -> 50 List after operation -> 2,13,23,2,23,50,40,40,32,4,4