2 votes 2 votes To find the total no of substring why we are not counting null substring https://stackoverflow.com/questions/12418590/finding-substrings-of-a-string https://gateoverflow.in/2458/gate1994-1-15 Quantitative Aptitude engineering-mathematics counting + – Gurdeep Saini asked Nov 26, 2018 edited Feb 19, 2021 by Gurdeep Saini Gurdeep Saini 320 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Shaik Masthan commented Nov 26, 2018 reply Follow Share if it is TOC, then you should count empty string. Otherwise you can't do that 3 votes 3 votes Arpita Nema commented Feb 18, 2021 reply Follow Share https://gateoverflow.in/87874/gate1989-4-i In this question why are we considering substring of length 0... although in both the questions .."all length inclusive"..is mentioned? 0 votes 0 votes Arpita Nema commented Feb 18, 2021 reply Follow Share * not considering 0 votes 0 votes Please log in or register to add a comment.