Coding-Ninjas-Data-Structures
Coding-Ninjas-Data-Structures copied to clipboard
This repo contains solutions to problem of data structures in c++
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 
Finally i figure out simple method to solve it.
some of the test cases were wrong now they are corrected