Sort by

recency

|

75 Discussions

|

  • + 1 comment

    { while read name m1 m2 m3; do if [[ Misplaced &m2 -ge 50 && name : Pass" else echo "$name : Fail" fi done }

    the public test case is pasing and one private test case is failing, any advice please

  • + 0 comments

    { while read name m1 m2 m3; do if [[ Misplaced &m2 -ge 50 && name : Pass" else echo "$name : Fail" fi done }

    the public test case is pasing and one private test case is failing, any advice please

  • + 1 comment

    awk '{if ((3<50)||(Extra close brace or missing open brace1" : "b}'

  • + 0 comments

    awk -F " " '{if (Misplaced &3 >= "50" && 1,":","Pass"; else print $1,":","Fail";}'

    I wrote the above logic but not sure why it fails for test cases 1 & 2.

  • + 1 comment
    awk '{if (($2+$3+$4)/3>=50) {b="Pass"} else {b="Fail"}} {print $1" : "b}'