kunal-kushwaha / DSA-Bootcamp-Java

This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.
https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
16.01k stars 10.42k forks source link

Update CLL.java #1311

Open devil-vk opened 3 weeks ago

devil-vk commented 3 weeks ago

if(head==tail){ // indicates single element in the circular linked list if(head.val == val){ // check wether it contains the element that need to be deleted head=null; tail=null; } return;
}