This shows you the differences between two versions of the page.

Link to this comparison view

cs-142:hot-peppers [2015/05/11 14:53]
cs142ta created
cs-142:hot-peppers [2015/05/12 13:14] (current)
Line 9: Line 9:
 ==Solution== ==Solution==
 <code cpp> <code cpp>
 +Test Case 1:
 +Input: -5 (negative example)
 +Output: red bell pepper
 +Actual: red bell pepper
 +Test Case 2:
 +Input: 0 (border case)
 +Output: red bell pepper
 +Actual: red bell pepper
 +Test Case 3:
 +Input: 2000000
 +Output: trinidad
 +Actual: trinidad
 +Test Case 4:
 +Input: 2000001
 +Output: no pepper
 +Actual: no pepper
 #include <​iostream>​ #include <​iostream>​
 #include <​string>​ #include <​string>​
cs-142/hot-peppers.txt ยท Last modified: 2015/05/12 13:14 by cs142ta
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0