This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#' Inner recursive routine for solving Countdown numbers puzzle | |
#' | |
#' @param nums What numbers are left to select from? | |
#' @param value the current calculated value | |
#' @param expr the current readable expression | |
#' @param verbose output solutions as they are found? default: FALSE | |
#' | |
#' @return Character vector of solutions if any are found, otherwise NULL | |
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |