Super Functional Strings

Sort by

recency

|

14 Discussions

|

  • + 0 comments

    Unable to understand the problem statement.

  • + 0 comments

    Here is my solution in java, javascript, python, c, c++, Csharp HackerRank Super Functional Strings Solution

  • + 0 comments

    Here is the solution of Super Functional Strings Click Here

  • + 0 comments

    Here is Super functional strings problem solution in python java c++ and c programming - https://programs.programmingoneonone.com/2021/07/hackerrank-super-functional-strings-problem-solution.html

  • + 2 comments
    def superFunctionalStrings(s):
        sss = []
        sum_= 0
        for i in range(len(s)):
            for j in range(i+1,len(s)+1):
                if s[i:j] not in sss:
                    sss.append(s[i:j])
                    sum_ += (len(s[i:j])**len(set(list(s[i:j]))))%(1000000007)
        return(sum_%(1000000007))
    

    it only passes test cases