Skip to content

CodingBat-Logic1-inOrder #256

@divinedragon

Description

@divinedragon

Write code and JUnit test cases for CodingBat-Logic1-inOrder

Url - http://codingbat.com/prob/p154188

Problem Statement:

Given three ints, a b c, return true if b is greater than a, and c is greater than b. However, with the exception that if "bOk" is true, b does not need to be greater than a.

inOrder(1, 2, 4, false) → true
inOrder(1, 2, 1, false) → false
inOrder(1, 1, 2, true) → true

Expected method declaration

public boolean inOrder(int a, int b, int c, boolean bOk) {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions