Hi Sir,
I think there is something wrong in the way the Node is created. Compiler is saying error: cannot find symbol node.value
My code:
class Solution {
public static boolean search(Node head, int num) {
// Write your code here
// Do not change the input parameters
// Change the return type of this function to "boolean"
if(head==null){
return false;
}else if(head.value == num){
return true;
}else{
return search(head.next,num);
}
// To be modified according to your code should return "true" or "false"
}
}
Course: https://www.educative.io/collection/10370001/5996180548878336
Lesson: https://www.educative.io/collection/page/10370001/5996180548878336/6706400417808384