Array of objects Algorithms - Search, Sort, Reverse, Max, Min, Custom methods

preview_player
Показать описание
In this video, you will learn about algorithms and the most common operations used with arrays of objects. I will teach you how to perform searches for specific elements inside an array. You will also learn how to sort and reverse arrays, as well as how to find the minimum and maximum elements using specific criteria. To define these criteria, I'll teach you how to write custom methods for comparing elements within an array.
As usual, there will be a task for you at the end to test what you have learned from this video.

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
It is a powerful, secure text editor designed specifically for programmers.

However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Related videos:

Contents:
00:00 - What you will learn in this video
01:47 - Explaining initial code
02:47 - Creating and initializing array of objects
04:09 - Algorithm for searching objects in the array
07:55 - Algorithm for sorting objects in the array
10:26 - Implementing custom method for comparing objects in array
13:14 - Good programming practices - passing data by reference vs passing data by value
15:14 - Implementing another custom method for comparing objects in array
16:02 - ASCII code explained
17:26 - Reversing array
18:20 - Finding max element in array
20:10 - Finding min element in array
21:07 - Practical task for you

Add me on other platforms for more educational content:
Рекомендации по теме
Комментарии
Автор

📚 Learn programming with these Free E-Books ⬇
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

CodeBeauty
Автор

I'm a student and you're the only reason why I get good grades on my exams

milkamilkica
Автор

best explanation of arrays and algorithms on that i could find on youtube

codeoasis
Автор

I'm so happy that I found your channel. I can honesty say that you changed my life ❤❤

dundyd
Автор

I love the task at the end of the video. Very good for practicing

phoebewell
Автор

I am sure it is going to be amazing class

Alain-gz
Автор

thank you saldina, this is the video that I've been searching for

hilgicamala
Автор

The tips about using pass by reference was most helpful to me. I need to play around with that some more to fully understand it. Thanks!

OzzFan
Автор

Saldina should be grade 10 in the example 🥰

nvusb
Автор

right on point, as usual, clear and concise, precious :)

Sam-kii
Автор

very helpful, thank you so much <3

deanmorrison
Автор

great job, thank you Saldina, this is very helpful <3

MilesGerome
Автор

The best teacher ever, thank you for making anything easy 🤗🤗

muatzdaw
Автор

Excellent explanation and very good homework . Keep up doing new videos Saldina. I am very keen on programming 👍

valjo
Автор

Thanks, anything regarding data wrangling is interesting to me

bicycleninja
Автор

You always inspire me through programming.

austineodhiambo
Автор

superb Teacher thanks you so much.
Great job good teaching method

raohammadraza
Автор

Here's a new video idea: the same topics but using modern C++ features like ranges and lambdas. It would make for a nice contrast while making the code smaller, simpler and safer.

avion
Автор

After completing your video, something is definitely hard but its not the concept of array 😳❤

nissum
Автор

I am curious how "sort(students, student+5, compareByGrade)" works when compareByGrade would seem only to compare one element to the next. It would require many passes to sort the data, right? Is that what is happening automatically behind the scenes in sort(), or do I not understand?

Alexander-iqyq