Doubt regarding linked list mid delletion


i feel deletion from mid is incomplete please tell me should we add a check if head==null and p>len and what is missing in code


u can read the algo from here