DEV Community

vishal.codes
vishal.codes

Posted on

Day 31/366

🚀 Today's Learning:

🌟 DSA

  • Bubble Sort
  • Insertion Sort

🌟 Dev

  • ReactJS vs React Native

🔍 Some Key Highlights:

DSA

Bubble sort is a simple sorting algorithm that iterates through a list, compares adjacent elements, and swaps them if they are in the wrong order. This process continues until the list is sorted. It gets its name because smaller elements "bubble" to the top of the list with each iteration, much like bubbles rising in water. The algorithm repeats this process for each element in the list until no more swaps are needed, indicating that the list is sorted.

Insertion sort is another elementary sorting algorithm that builds the final sorted list one element at a time. It starts with a sorted sub-list of one element and then repeatedly picks up the next unsorted element and inserts it into the correct position in the sorted sub-list. This insertion process continues until all elements are in the correct order. It is like sorting a hand of cards, where you pick up each card and insert it into its correct position among the already sorted cards.

DEV

React is a JavaScript library primarily used for building user interfaces for web applications. It allows developers to create reusable UI components and efficiently manage the state of these components. React uses a virtual DOM to improve performance by updating only the necessary parts of the actual DOM when changes occur. It's commonly used in web development to create dynamic and interactive user interfaces.

On the other hand, React Native is a framework developed by Facebook that allows developers to build mobile applications using JavaScript and React. While React is focused on web development, React Native extends its capabilities to mobile app development. It allows developers to write code once and deploy it across multiple platforms, including iOS and Android, providing a more efficient and cost-effective solution for building mobile apps compared to developing separate native apps for each platform. React Native achieves this by translating React components into native UI components, ensuring a native look and feel for the app on each platform.

#100daysofcode #1percentplusplus #coding #dsa

Top comments (0)