PYTHON Code : Test Cases Failing

please look into the code and point out the cases on which failing

def lex_unique(s):
    last_index=[-1]*26
    out_arr=[False]*26
    for i in range(len(s)):
        last_index[ord(s[i])-ord('a')]=i
    stack=[]
    for i in range(len(s)):
        if not out_arr[ord(s[i])-ord('a')]:
            while len(stack)>0 and last_index[ord(stack[-1])-ord('a')]>i and ord(s[i])<ord(stack[-1]):
                out_arr[ord(stack[-1])-ord('a')]=False
                stack.pop()
            stack.append(s[i])
            out_arr[ord(s[i])-ord('a')]=True
    return stack



s=input()
print(''.join(lex_unique(s)))

@asaurabh_26 @tarunluthra @mr.encoder @A17LP0026
can any of you please take up this doubt. it’s almost 12 hours.

Hello @ritvikagrawal1, okay I will check your code and let you know within an hour.

Bro, your code is alright but the given input is way too large on which they are testing. The test case includes a very very large string of ababab… Both the failing test cases are same. And it might be possible it is taking a longer time so that’s why it stops executing in btw and resulting in run-error, although your code is absolutely fine. I will try to get it check with the team.

ok, check and let me know

@A17LP0026
please reply. you have not yet checked and replied

@ritvikagrawal1, I had informed this my upper management team. Let them tell me what is the issue. And if you have so many doubts, we can decide a time and see all your doubts one by one. How about tom, 8 or 9 pm ??

@A17LP0026
Email me your contact/email
can we keep on Thursday morning or afternoon ?

Okay, I will let you know about my Thursday availability. Although pls let me know your time preferences.

@A17LP0026
any day - any time
before 3pm or after 11pm

hey pls tell me all the questions in which you have a doubt? I will try to solve them as soon as possible.

@A17LP0026 please reply to doubt ASAP whenever asked.
I will not be doing this course forever just because TAs don’t resolve doubt on time.
After 15 days even I forget where I was exactly stuck.

Hey, I can understand your frustration but I told you, your code was correct there was some mistake from the backend side in testing, so in that case, you might move ahead of this question. Focus on learning and concepts these question scores won’t matter in the long run.
Hope you will understand and I also try to improve the service.

@A17LP0026 for me you back-end has to pass all testcases for me to satisfy.

Do you solve without getting all test cases passed OR does any company shortlist based on partial test case ? :neutral_face:

This is irritating but I complained to them and this is not in my hands I am just a TA and yes I manually checked your codes and from my side, it was fine and passing all the cases.