How to Reverse an Array in Java - Animation
HTML-код
- Опубликовано: 18 окт 2024
- ►Full DSA Course - • Data Structures and Al...
►Follow me on Instagram - bit.ly/intrvwk...
►Follow me on LinkedIn - bit.ly/fllwlkdn
►Enroll in the complete course: bit.ly/3W4qthg
►Source Code - github.com/din...
►Download DSA Animation Slides - techready.in/c...
►Click here to subscribe - www.youtube.co...
Watch all my playlist here:
►Data Structures and Algorithms Course playlist: • Data Structures and Al...
►Mastering JUnit 5 - www.youtube.co...
►Mastering Mockito 3 - • Mockito 3 Tutorials
►Analysis of Algorithms - • Analysis of Algorithms
►Linked List Data Structures - • Linked List Data Struc...
►Array Data Structures - • Playlist
►Stack Data Structure - • Stack Data Structure
►Queue Data Structure - • Queue Data Structure
►Binary Tree Data Structure - • Binary Tree Data Struc...
►Graph Data Structure - • Graph Data Structure
►Binary Heap Data Structure - • Binary Heap Data Struc...
►Trie Data Structure - • Trie Data Structure
►Dynamic Programming Algorithms - • Dynamic Programming Al...
►Hashing Data Structures - • Hashing Data Structures
►Sorting and Searching - • Sorting and Searching
►String Algorithms - • String Algorithms
Want to land a software engineering job in the IT industry? This course - 'Visualizing Data Structures and Algorithms' is here to help. The course walks you through multiple Java algorithms, data structures problems, and their solutions with step by step visualizations, so that you are actually learning instead of blindly memorizing solutions.
The course covers in and outs of Data Structures and Algorithms in Java. Java is used as the programming language in the course. Students familiar with Javascript, Python, C#, C++, C, etc will also get to learn concepts without any difficulty. The implementation of various Algorithms and Data Structures have been demonstrated and implemented through animated slides. It covers many interview room questions on Algorithms and Data Structures. The questions and solutions are demonstrated by -
1. Animated slide. (To make visualization of algorithms faster)
2. Coding algorithm on IDE.
The course covers topics such as -
0. Algorithm Analysis
1. Arrays
2. Matrix
3. Singly Linked List
4. Doubly Linked List
5. Circular Singly Linked List
6. Stacks
7. Queues
8. Binary Tree
9. Binary Search Tree
10. Graphs
11. Priority Queues and Heaps
12. Recursion
13. Searching
14. Sorting
15. Strings
16. Trie Data Structure
17. Dynamic Programming
and many more ...
#dsa #algorithms #coding
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over RUclips with java implementation and found this. Hats Off To You Man....Excellent Work. GOD BLESS YOU :)
Thanks !!!
When am watching everying single video and While explaining You told the idea behind that particular algo and aftre that i pause the video and try to implement it on my own and match with your code some time it was right some time not and i correct mycode .Great videos😍
Awesome !!! Perfect way to learn is to try first and after that look for code !!! Well done !!! Keep it up !!!
Thank you so much sir .Every videos of concept explaining very easy method .❤
Thanks !!!
Way of your explanation is very good.❤👌
Thanks !!!
Your course is best in the youtube as my personal opinion.
Thanks !!!
Thanku🙏 also give all concept which used during program..
thanks !!!
Thank u so much for making this tutorial for free
welcome !!!
Thank you Sir, nice explanation!
Welcome !!!
Sir , i have a doubt why is it possible in reverse array function with void and
without return type and here not?
If we have odd number of values then how we apply the same algorithm for it.
It will work ... The middle element wont be touched !!!
true@@itsdineshvaryani
thank you so much sir
Welcome !!!
Nice work
Thanks !!!
wow please drop more videos ur god
can you tag leetcode question for the problem?
Sir app Data structure with java k hackerrank k problem solving videos bna k upload kriye we need to understand how to solve hackerrank problem plz sir do it.
Ok will do it ... But currently have been away for a while ... Will post once i restart making videos again !!!
Yes sir sure. Will waiting!
thanx sir
This method is the simple method .
public class reverse
{
public reverse()
{
int arr[]=new int[]{1,2,3,4,5};
int p=arr.length;
System.out.println("Original");
for(int i=0;i
Thank you so much, my brother
You are very welcome
Sir Ye full DSA hai?
It gets updated frequently !!
@@itsdineshvaryani Sir how much time it will take to complete this playlist if i start from today?
@@somyabhardwaj1902 it depends on how fast u watch n grasp ...
@@itsdineshvaryani Ok Sir thank u so much. Actually i have seen many Dsa videos but that doesnt satisfied my understanding but this looks better from others
@@somyabhardwaj1902 thanks so go for it and share with ur friends and colleagues as well ...
You did a great job. May Allah guide us all to the truth.
Yes, thank you
how about this? I used for loop for this
int[] reverseArray(int[] arr) {
int n = arr.length;
int[] result = new int[n];
int index = 0;
for (int i = n -1; i >= 0; i--){
result[index] = arr[i];
index++;
}
return result;
}
int[] a= {2,11,5,10,7,8};
for(int i=0;i
Collections.reverse(list);
Internally reverse method does similar thing only !!!