Skip to content

Latest commit

 

History

History

320-addOperators

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

addOperators

Interview question of the issue #320 of rendezvous with cassidoo.

The Question

Given two integers source and target, add operators in the source number to make it equal target, if possible. You can return just one, or all possibilities for this!

Example:

> addOperators(123, 6)
> ["1*2*3", "1+2+3"]

> addOperators(3456237490, 9191)
> [] // none possible

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!