Skip to content

I Interviewed ChatGPT 🔥


Tags:

34 thoughts on “I Interviewed ChatGPT 🔥”

  1. a = [3, 5, 7, 3, 5, 7, 3, 545, 34, 235, 234, 3]

    # Sort the array in ascending order
    a.sort()

    # Conditions
    if a[6] < a[-1]:
    # Swap seventh element with the last element
    a[6], a[-1] = a[-1], a[6]

    if a[1] <= a[-1]:
    # Swap second element with the last element
    a[1], a[-1] = a[-1], a[1]

    if a[-2] >= a[7] + a[5]:
    # Swap second last element with the sum of eighth and sixth element
    a[-2], a[7] + a[5] = a[7] + a[5], a[-2]

    print(a)

  2. Hm bhai bahut mehnat lagta hai ai se solve karwane me isse achha khud hi kr lete hai bas ye hai ki ye thoda help kar deta hai kuchh chijo ko samjhne me isliye use karta hu

Comments are closed.