<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1-alpha" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Trovare la sottosequenza di valore massimo con il TDD</title>
	<link>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/</link>
	<description>Propulsione d'Improbabilità Infinita</description>
	<pubDate>Fri, 06 Nov 2009 07:20:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1-alpha</generator>

	<item>
		<title>by: Matteo</title>
		<link>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-969</link>
		<pubDate>Thu, 15 Mar 2007 20:15:18 +0000</pubDate>
		<guid>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-969</guid>
					<description>C'è un capitolo di Programming Pearls su questo (classico!) problema.  Dovresti riuscire a trovarlo online.</description>
		<content:encoded><![CDATA[	<p>C&#8217;è un capitolo di Programming Pearls su questo (classico!) problema.  Dovresti riuscire a trovarlo online.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: gabriele</title>
		<link>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-968</link>
		<pubDate>Wed, 14 Mar 2007 18:15:51 +0000</pubDate>
		<guid>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-968</guid>
					<description>grazie!
Si, mi sembra la stessa e nel frattempo mi ero trovato una specie di prova di correttezza pseudoformale, sono strafelice di sapere che è effettivamente così :) </description>
		<content:encoded><![CDATA[	<p>grazie!<br />
Si, mi sembra la stessa e nel frattempo mi ero trovato una specie di prova di correttezza pseudoformale, sono strafelice di sapere che è effettivamente così <img src='http://riffraff.blogsome.com/wp-images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Matteo</title>
		<link>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-967</link>
		<pubDate>Wed, 14 Mar 2007 15:53:43 +0000</pubDate>
		<guid>http://riffraff.blogsome.com/2007/03/12/trovare-la-sottosequenza-di-valore-massimo-con-il-tdd/#comment-967</guid>
					<description>Bravo Gabriele!  La tua soluzione mi pare la stessa che si trova in Coen, &quot;Programming in the 1990s&quot;.
&lt;code&gt;
int max_section_sum(int *b, int N) {
  int n=0, y=0, x=0;
  while (n != N) {
    y = max(b[n]+y, 0);
    x = max(x, y);
    n++;
  }
  return x;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[	<p>Bravo Gabriele!  La tua soluzione mi pare la stessa che si trova in Coen, &#8220;Programming in the 1990s&#8221;.<br />
<code><br />
int max_section_sum(int *b, int N) {<br />
  int n=0, y=0, x=0;<br />
  while (n != N) {<br />
    y = max(b[n]+y, 0);<br />
    x = max(x, y);<br />
    n++;<br />
  }<br />
  return x;<br />
}<br />
</code>
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
