DSA-Bootcamp-Java
DSA-Bootcamp-Java copied to clipboard
This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.
The calculation made while creating block[] array size will not work for all ranges. So we need to update it.
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; }
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 11 // condition for the target to lie in the range while (target > arr[end]) { int temp...
repeated question
Update FirstAndLastPosition.java comment for clarity
regarding insert method