<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: harshitaayyala</title>
    <description>The latest articles on DEV Community by harshitaayyala (@harshita1786).</description>
    <link>https://dev.to/harshita1786</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F537615%2Fc4519b29-d8c3-4c96-9883-a75214ca8d61.png</url>
      <title>DEV Community: harshitaayyala</title>
      <link>https://dev.to/harshita1786</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harshita1786"/>
    <language>en</language>
    <item>
      <title>Recursion</title>
      <dc:creator>harshitaayyala</dc:creator>
      <pubDate>Sun, 09 May 2021 10:00:11 +0000</pubDate>
      <link>https://dev.to/harshita1786/recursion-3nkd</link>
      <guid>https://dev.to/harshita1786/recursion-3nkd</guid>
      <description>&lt;p&gt;What is Recursion?&lt;/p&gt;

&lt;p&gt;The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Recursion involves several numbers of recursive calls. However, it is important to impose a termination condition of recursion. Recursion code is shorter than iterative code however it is difficult to understand. Recursion cannot be applied to all the problems, but it is more useful for the tasks that can be defined in terms of similar subtasks. For Example, recursion may be applied to sorting, searching, and traversal problems. The idea is to represent a problem in terms of one or more smaller problems, and add one or more base conditions that stops the recursion.&lt;/p&gt;

&lt;p&gt;What is a Recursive Function?&lt;/p&gt;

&lt;p&gt;A recursive function performs the tasks by dividing them into subtasks. There is a termination condition defined in the function which is satisfied by some specific subtask. After this, the recursion stops, and the final result is returned from the function.&lt;/p&gt;

&lt;p&gt;How is memory allocation of the Recursive method done?&lt;/p&gt;

&lt;p&gt;Each recursive call creates a new copy of that method in the memory. Once some data is returned by the method, the copy is removed from the memory. Since all the variables and other stuff declared inside a function get stored in the stack, therefore a separate stack is maintained at each recursive call.&lt;/p&gt;

</description>
      <category>programming</category>
    </item>
    <item>
      <title>Arrays vs Lists</title>
      <dc:creator>harshitaayyala</dc:creator>
      <pubDate>Thu, 10 Dec 2020 09:31:12 +0000</pubDate>
      <link>https://dev.to/harshita1786/arrays-vs-lists-3icg</link>
      <guid>https://dev.to/harshita1786/arrays-vs-lists-3icg</guid>
      <description>&lt;p&gt;Arrays and Lists are almost similar but a little different.&lt;br&gt;
Array is a container which can hold a fix number of items and these items should be of the same type. &lt;br&gt;
List are used to store multiple items in a single variable. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;SIZE: &lt;br&gt;
Array - Fixed size, as resizing is expensive.&lt;br&gt;
List - It has dynamic size.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;INSERSIONS/DELETIONS:&lt;br&gt;
Array - Elements are usually shifted, they are inefficient.&lt;br&gt;
List - There is not shifting, hence, efficient.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ACCESS:&lt;br&gt;
Array - Random access is suitable, i.e. efficient indexing.&lt;br&gt;
List - It is not suitable for operations requiring accessing elements by index such as sorting.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;MEMORY ALLOCATION:&lt;br&gt;
Array - No memory is wasted if the memory is full or almost full, otherwise the memory is wasted.&lt;br&gt;
List - Since memory is allocated dynamically, there is no wastage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SEQUENTIAL ACCESS:&lt;br&gt;
Array - It is faster, because the elements are in contagious memory locations.&lt;br&gt;
List - It is slower, because the elements are not in contagious memory locations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;SEARCHING:&lt;br&gt;
Array - It uses binary and linear search.&lt;br&gt;
List - It uses linear search only.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ORDER &amp;amp; SORTING:&lt;br&gt;
Array - Elements are stored consecutively.&lt;br&gt;
List - Elements are stored randomly.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>differences</category>
      <category>arrays</category>
      <category>lists</category>
      <category>python</category>
    </item>
  </channel>
</rss>
