Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!border3.nntp.ams.giganews.com!backlog3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 10 Aug 2014 08:07:31 -0500 Date: Sun, 10 Aug 2014 14:07:31 +0100 From: lipska the kat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: in1To10 References: <0c8de66a-429a-4697-b575-35f37a7b6882@googlegroups.com> In-Reply-To: <0c8de66a-429a-4697-b575-35f37a7b6882@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 31 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-Oa7G/ZLzIMFioZEYDpw/vNOKeJ9F5TK/FdeaWngi8IN2wfKHXCf27BFdqzb3FDSJS/ZdyPt+YZJEDmG!dd57V8Ize8qZvWFO4p93vUWR57Lc10Ymzgx/xTDz+GXZJcuQEJ2EQKzEpqN5fC7ANc5k5SlIjgE= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2083 Xref: csiph.com comp.lang.java.programmer:29622 On 09/08/14 20:12, cdalten@gmail.com wrote: > from the url > > http://codingbat.com/prob/p137365 > > > Would both catch all the cases? If not, which one would? > > Chad > Well, by now you should have a whole raft of 'solutions' to your problem. How do you know if any of them are 'correct' What is correct anyway? What you *really* need is a test plan, I'm surprised nobody has mentioned it. Devise a test plan that meets the requirements and you can test all of these solutions with the same cases. You'll soon discover which ones are winners and which are not. Has anyone discussed testing on your course. Do you know what a 'boundary case' is? -- lipska the kat - treacherous feline. Proudly nominated for IPOTY 2014 - LIGAF GNU/Linux user #560883 - linuxcounter.net