• “a”(0), “aa”(0–1) ,
  • “a”(1) ,
  • “b”(2) ,
  • “c”(3) , “cc” (3–4), “ccc”(3–5) ,
  • “c”(4) …

  1. L=1, R= 4
  2. L=1, R=5

  • The number of 1s and 0s in the substring are equal.
  • The…

Samarth Sewlani

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store