please check the error in my code it is not giving correct output for this question.
Question link :: https://practice.geeksforgeeks.org/problems/length-of-the-longest-substring/0
Code link :: https://ide.codingblocks.com/s/106084
Longest length substring with unique char
u r checking only one time
u have to check substring starting from each character ur
are only cheking for only certain character
make a loop
for(int i=0;i<string size;i++)
{
for(int j=i;j<string size;j++{
now here make all substring and check for there unqiue elemnet and find the max one
sir but in one loop also all the possible SUBSTRING will be included ??? the way in which i am doing all the possible subarray will get included !
how u can consider all possible substring in one loop
if string is abc
then
sub string are
a
ab
abc
b
bc
c
how can this all be consider in one loop