Coding-Ninjas-Data-Structures icon indicating copy to clipboard operation
Coding-Ninjas-Data-Structures copied to clipboard

This repo contains solutions to problem of data structures in c++

Results 10 Coding-Ninjas-Data-Structures issues
Sort by recently updated
recently updated
newest added

i added the other approach.

//more optimised way to attempt bool checkAB(char input[]) { if (input [0] == '\0') { return true; } if (input [0] != 'a') { return false; } if (input [1]...

previous one did not work because 'h' is updated as 0 everytime recursion calls.

another recursive code for removing duplicates.

if we have a LL without any node then it will fail

I hope u will like it....i proposed this because i find your solution a little complex and hard to dry run..hope u accept the solution

line number 12 is my edit as the previous code was failing one test case

character array and 2D array topic is missing ![Screenshot 2023-08-28 230142](https://github.com/ashish-3916/Coding-Ninjas-Data-Structures/assets/113281443/6c096bb9-955f-4c96-b07e-4fde371ccada)

Finally i figure out simple method to solve it.

some of the test cases were wrong now they are corrected