I build first and last occ ike this ,,is it fine?
hello @nmoudgil_be19
a)declare ur function return type.
b) handle they case when element is not present in array.
c) ![]()
here it should be return last(arr,n,x);
okay otherwise the algo and working is finr right?
yeah …
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.