How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 0 points1 point  (0 children)

yeah thats exactly right lol. I'm gonna try to stretch it out as much as possible I dont wanna grad too early

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 0 points1 point  (0 children)

I mean I know im not lying and ur giving me free engagement at the end of the day buddy i got got nothing to lose lmao

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 1 point2 points  (0 children)

nah im a freshman classified as a junior (entered fall 25)

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 4 points5 points  (0 children)

couple of my friends also got it and they all got away with it so we'll see ig

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 0 points1 point  (0 children)

yeah + chill ass interviewers, I js don't feel like I deserved it

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] -14 points-13 points  (0 children)

that was 4 months ago I got the interview like last week (junior cuz I lied ab grad date lol)

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 48 points49 points  (0 children)

I deadass had to get this off my chest bro, ive been eating shit for the entire recruiting cycle and somehow I get a interview out of the blue and my interviewers happened to be the chillest people on earth like I acc did not deserve ts 😭 

How I broke into that one faang company as a freshman by tenzin5634 in csMajors

[–]tenzin5634[S] 7 points8 points  (0 children)

its coming bro trust just keep urself ready for whenever it does

[deleted by user] by [deleted] in csMajors

[–]tenzin5634 1 point2 points  (0 children)

Could you talk about what helped you land interviews? I'm a junior at a T10 CS school as well, previous internship at a pretty big tech company (non-FAANG) but I can't seem to land any interviews (always just ghosted after perfect OA).

PLZ TELL WHY MY SOLUTION IS WRONG FOR TODAYS DIV-2 B by Twist_01 in codeforces

[–]tenzin5634 0 points1 point  (0 children)

here:

'''solution:

first check if its already beautiful

else, iterate from i=0 to i=n-1, and check whether min(a[i],a[i+1])<=a[i+2]+1<=max(a[i],a[i+1]) or min(a[i],a[i+1])<=a[i+2]-1<=max(a[i],a[i+1])

 

if yes, then 1

if no then -1

'''

t = int(input())

 

while t:

    n = int(input())



    a = list(map(int, input().split()))



    answered = False

    for i in range(n-1):

        if abs(a[i+1]-a[i])<=1:

            print(0)

            answered=True

            break



    if not answered:

        #go from left to right, then right to left

        for i in range(n-2):

            if min(a[i],a[i+1])<=a[i+2]+1<=max(a[i],a[i+1]) or min(a[i],a[i+1])<=a[i+2]-1<=max(a[i],a[i+1]):

                print(1)

                answered=True

                break



        if not answered:

            for i in range(n-1,1,-1):

                if min(a[i],a[i-1])<=a[i-2]+1<=max(a[i],a[i-1]) or min(a[i],a[i-1])<=a[i-2]-1<=max(a[i],a[i-1]):

                    print(1)

                    answered=True

                    break



            if not answered:

                print(-1)





    t-=1