``````<!--
My solution to this guys challenge (question 5):

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour

It's more cute than elegant, surely nowhere near optimal (takes some 5-600 ms on my machine).  I iterate a base3 number and use that to pick out the permutations and eval brute force style.  Even though there isn't a lot of code, it took me well over an hour.  My take on this?  If you've never thought of such a problem (or a similar one), it can take you more than an hour, particularly during an interview. There are simply too many directions when it comes to programming to judge a candidate based on one type of problem (think shader guys vs database geeks).

Some better solutions and discussion here :

http://www.reddit.com/r/programming/comments/358tnp/five_programming_problems_every_software_engineer/

ps. I can't believe how involved people get in this stuff. Look at this :

https://css-tricks.com/tales-of-a-non-unicorn-a-story-about-the-trouble-with-job-titles-and-descriptions/

-->``````
``````html,
body {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
background-color: #1d1f20;
color: #ffa500;
font-weight : bold;
font-size:120%;
line-height: 140%;
text-align:center;
padding-top:20px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}``````
``````var numbers = "123456789".split(""),
options = ["", "+","-"],
i, base3, test, merged;

for(i=0; base3!="22222222"; i++){
base3 = i.toString( 3 );
test = ("00000000").substr(0, 8 - base3.length) + base3;
merged = "";
numbers.forEach(function(element, index){
merged += ( element + (options[ test.charAt(index) ] || ""));
});
if(eval(merged) == 100){
document.body.innerHTML += (merged + " = 100<br>");
}
}``````

### External CSS

This Pen doesn't use any external CSS resources.

### External JavaScript

This Pen doesn't use any external JavaScript resources.