Тёмный
No video :(

Arrays DS in C/C++ - HackerRank Data Structures Solutions in C/C++ 

nexTRIE
Подписаться 6 тыс.
Просмотров 14 тыс.
50% 1

HackerRank solution in C and C++ for Arrays - DS. This HackerRank problem solving exercise consists of reversing an array of integers. The aim is not to sort the array, but simply to swap the values at different indices in the array to rearrange it backwards. That is how to reverse an array in C or C++, for this coding challenge.
In the C solution, we will create a variable to loop through the array until its middle position, and swap the values in a for loop through a temporary variable. In the C++ solution, we will do something similar, except that we will use the built-in swap function in C++ from the algorithm header to perform the swapping of values in the array. When we are done, we will return the array by reference.
Arrays are important data structures which are important to master both in C and C++ for competitive programming purposes.
All HackerRank solutions on GitHub (please leave a star): github.com/Isa...
HackerRank's Array Data Structures coding challenge: www.hackerrank...

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@pragyachauhan
@pragyachauhan 4 года назад
You are doing a great job! Keep making these videos as it is difficult to find solutions for Hackrrank and Leetcode in C++. I am a job seeker, preparing for interviews and cannot thank you enough for this.
@nextrie
@nextrie 4 года назад
Hey Pragya, thanks so much for this comment. I wish you the best with your job search. I have a lot more C++ videos coming up, so I hope you subscribe and turn on your notifications. Maybe I'll also try Leetcode, someday.
@pragyachauhan
@pragyachauhan 4 года назад
@@nextrie Yep subscribed and rung the bell!
@nextrie
@nextrie 4 года назад
Thanks, you're the best!
@adityachauhan1182
@adityachauhan1182 3 года назад
Thanks for this amazing problem ,I just started competitive coding on Hackerrank and this tutorial helps me a lot to understand.
@nextrie
@nextrie 3 года назад
Thanks so much, Aditya! Please turn on your notifications to make sure you don't miss my new tutorials and solution videos :)
@goldenwind5681
@goldenwind5681 10 месяцев назад
Thanks bro
@nextrie
@nextrie 10 месяцев назад
You're welcome, bro!
@ezkakashi7598
@ezkakashi7598 3 года назад
try to delete that pre-defined code and make your own....will be easy even for us to understand :)
@nextrie
@nextrie 3 года назад
Hey EZ, the reason why I don't delete pre-defined code in the main function (even when it's editable), is because I want viewers to be able to replicate my code (if they're struggling), and still pass all the test cases. If I change the pre-defined code, there's always a chance that it will fail on HackerRank after a few months if they change a few things on their backend. But I can definitely spend a bit more time explaining their code to help viewers understand why/how my solutions work.
@abhinandanpanua2369
@abhinandanpanua2369 3 года назад
Nice explanation bro....👌
@nextrie
@nextrie 3 года назад
Thabks Abhinandan! Hope you subscribe too :)
@abhinandanpanua2369
@abhinandanpanua2369 3 года назад
@@nextrie yes subscribed and also pressed the Bell icon too🔥
@nextrie
@nextrie 3 года назад
@@abhinandanpanua2369 Thanks so much! 😃
@ritikaprasad4971
@ritikaprasad4971 3 года назад
can u please reply need to thank you u boosted my confidence good luck to you
@nextrie
@nextrie 3 года назад
That's amazing, Ritika!
@ritikaprasad4971
@ritikaprasad4971 3 года назад
@@nextrie no man you r amazing 👍
@nextrie
@nextrie 3 года назад
@@ritikaprasad4971 thanks Ritika! I hope you subscribe!
Далее
10 Common Coding Interview Problems - Solved!
2:10:50
Просмотров 573 тыс.
HackerRank Solution: Vector-Erase in C++
9:56
Просмотров 13 тыс.
Hackerrank #5: 2d Array Hourglass | C++ | Solution
10:33
Stack Data Structure In STL | C++ Tutorial
16:59
Просмотров 11 тыс.
Dynamic Array | HackerRank
7:01
Просмотров 11 тыс.