DEV Community

Cover image for Day 21: Unveiling the Magic of INTRODUCTION in Java, C++, Python, and Kotlin!

Posted on

Day 21: Unveiling the Magic of INTRODUCTION in Java, C++, Python, and Kotlin!

DAY - 21

Today’s Learning :-

Now Basics Has been completed.

For Python I will be Following CampusX and MysirG.
For Java I will be Following kunal kushwaha.
For C++ I will be following Rohit Negi ( CoderArmy ).

Why am I learning 3 languages?

Reason :
Python is my main language because I want to be in the Data World.
I am an ongoing college student. 2nd year - 4th Semester ( I have to study java and c++ for my exam ).
Doing the same concept with different teachers can help me to revise and also to think differently with the different mindset of a teacher.
Everyone has a unique way of solving problems.

All the practice code will be available in GitHub Repository.


Sorting is a fundamental operation in computer science that involves arranging elements of a collection or dataset in a specific order. The goal of sorting is to make it easier to search for elements, identify patterns, or perform other operations efficiently.

Here's an overview of sorting:
Objective: The primary objective of sorting is to arrange elements in either ascending or descending order based on some criteria, such as numerical value, alphabetical order, or any user-defined metric.

Types of Sorting Algorithms: There are various sorting algorithms, each with its own advantages and disadvantages. Some common sorting algorithms include:

Selection Sort
Bubble Sort
Insertion Sort
Merge Sort
Quick Sort

We will Do Selection Sort.

Selection Sort: This algorithm divides the input list into two parts: the sublist of items already sorted and the sublist of items remaining to be sorted. It repeatedly selects the smallest (or largest) element from the unsorted sublist and moves it to the sorted sublist.

Array in python.

From array import *
a1= array(argument1 , [ ])

The first argument specifies the data type of the elements in the array. For example:
'i' for integers
'f' for floating-point numbers
'u' for Unicode characters
'B' for unsigned bytes

Feel free to share this post to enhance awareness and understanding of these fundamental concepts in statistical analysis!

🙏 Thank you all for your time and support! 🙏
Don't forget to catch me daily for the latest updates on my programming journey! Let's continue to learn, grow, and inspire together! 💻✨

Top comments (0)