Program to find all possible smart arrays that can be constructed using a string of digits. A smart array is an array where if we remove spaces among integers, it becomes the same string from which it has been created. Also, a smart array should not have any leading zeroes.

Program to find k-th Lexicographical String from all Happy Strings of length n in Java

A happy string is a string that:

  • consists only of letters of the set ['a', 'b', 'c'].
  • s[i] != s[i + 1] for all values of i from 1 to s.length - 1 (string is…


Software Developer

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