Skip to content

Commit

Permalink
prs aceitos
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoarthurbm committed Feb 13, 2024
1 parent 7fc217a commit 5e2d798
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions conteudo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ <h3 id="árvores">Árvores</h3>
<ul>
<li><a href="http://joaoarthurbm.github.io/eda/posts/bst">Árvores Binárias de Pesquisa</a></li>
<li><a href="//joaoarthurbm.github.io/eda/posts/heap">Heap</a></li>
<li><a href="https://joaoarthurbm.github.io/eda/posts/avl/">Árvores Balanceadas(AVL)</a></li>
</ul>
<hr>
<h3 id="cite-este-material">Cite este material</h3>
Expand Down
1 change: 1 addition & 0 deletions index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ de ordenar dados.&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;http://joaoarthurbm.github.io/eda/posts/bst&#34;&gt;Árvores Binárias de Pesquisa&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;//joaoarthurbm.github.io/eda/posts/heap&#34;&gt;Heap&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://joaoarthurbm.github.io/eda/posts/avl/&#34;&gt;Árvores Balanceadas(AVL)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3 id=&#34;cite-este-material&#34;&gt;Cite este material&lt;/h3&gt;
Expand Down
2 changes: 1 addition & 1 deletion posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,7 @@ b&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;col
&lt;p&gt;Vamos analisar detalhadamente o código do método &lt;em&gt;&lt;strong&gt;add(int index, int value)&lt;/strong&gt;&lt;/em&gt; para discutirmos essas preocupações.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-java&#34; data-lang=&#34;java&#34;&gt;&lt;span style=&#34;color:#f92672&#34;&gt;...&lt;/span&gt;
&lt;span style=&#34;color:#66d9ef&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;void&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;add&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;int&lt;/span&gt; index&lt;span style=&#34;color:#f92672&#34;&gt;,&lt;/span&gt; Aluno aluno&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;{&lt;/span&gt;
&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;index &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; 0 &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; index &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt; size&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;
&lt;span style=&#34;color:#66d9ef&#34;&gt;if&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;index &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt; 0 &lt;span style=&#34;color:#f92672&#34;&gt;||&lt;/span&gt; index &lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;=&lt;/span&gt; size&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;
&lt;span style=&#34;color:#66d9ef&#34;&gt;throw&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; IndexOutOfBoundsException&lt;span style=&#34;color:#f92672&#34;&gt;();&lt;/span&gt;

Node newNode &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;new&lt;/span&gt; Node&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;aluno&lt;span style=&#34;color:#f92672&#34;&gt;);&lt;/span&gt;
Expand Down
2 changes: 1 addition & 1 deletion posts/linkedlist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ <h3 id="inserção">Inserção</h3>
<p>Vamos analisar detalhadamente o código do método <em><strong>add(int index, int value)</strong></em> para discutirmos essas preocupações.</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-java" data-lang="java"><span style="color:#f92672">...</span>
<span style="color:#66d9ef">public</span> <span style="color:#66d9ef">void</span> <span style="color:#a6e22e">add</span><span style="color:#f92672">(</span><span style="color:#66d9ef">int</span> index<span style="color:#f92672">,</span> Aluno aluno<span style="color:#f92672">)</span> <span style="color:#f92672">{</span>
<span style="color:#66d9ef">if</span> <span style="color:#f92672">(</span>index <span style="color:#f92672">&lt;</span> 0 <span style="color:#f92672">||</span> index <span style="color:#f92672">&gt;</span> size<span style="color:#f92672">)</span>
<span style="color:#66d9ef">if</span> <span style="color:#f92672">(</span>index <span style="color:#f92672">&lt;</span> 0 <span style="color:#f92672">||</span> index <span style="color:#f92672">&gt;=</span> size<span style="color:#f92672">)</span>
<span style="color:#66d9ef">throw</span> <span style="color:#66d9ef">new</span> IndexOutOfBoundsException<span style="color:#f92672">();</span>

Node newNode <span style="color:#f92672">=</span> <span style="color:#66d9ef">new</span> Node<span style="color:#f92672">(</span>aluno<span style="color:#f92672">);</span>
Expand Down

0 comments on commit 5e2d798

Please sign in to comment.