Skip to content

romaopedro/FlagManagerQuestion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flag Manager Question Build Status

Given 4 boolean flags a, b, c, d

Implement the method areAllFlagsOff so it only returns true when all of the flags are false

Proposing a solution

  • The project contains tests to cover all of the combinations possible
  • run the ./gradlew test to see if your solution works
  • Open a pull request with a possible solution for this problem

Run the performance test:

./gradlew runApp

Running 10 million times took: 34.991 milliseconds

Pull request template

Title: Describe what you did

Description: the line with the code that was missing

Performance: Go to your travis-ci build and copy the performance test and paste the result

Sample: https://github.com/cesarferreira/FlagManagerQuestion/pull/1

About

Simple question with 10s of possible implementations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%