Where is 132 patter in following test case?


  • 1
    K

    My code fails in this test case:

    [3,5,0,3,4]
    Expected output: true

    Can someone show me the 132 pattern in this test case?
    If there is none then how can I report it?


  • 0
    P

    Hi, did you figure it out? this test is failing for me too.
    case 3<0<5 : false
    case 5<3<0 : false
    case 0<4<3: false

    how can expected answer be true


  • 1
    K

    Hi
    Yes, I did. 132 pattern does not have to be in sequence.
    In the above case it
    3<4<5
    ai<ak<aj


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.