Тёмный
No video :(

Java program to right rotate an Array by 1 element 

QAFox
Подписаться 100 тыс.
Просмотров 7 тыс.
50% 1

View Notes Here - www.evernote.co...

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

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@sakshikesarkar1049
@sakshikesarkar1049 2 года назад
The way you teach.. Awesome...👍
@QAFox
@QAFox 2 года назад
Thank you :)
@Kris-nf2ld
@Kris-nf2ld Год назад
Thank you for this video! In 13 mins you managed to help me understand shifting elems in array better than in 1 hour of my "Java course" :) Thanks for your work!
@QAFox
@QAFox Год назад
Glad it helped!
@ilonaharadzetskaya8093
@ilonaharadzetskaya8093 6 месяцев назад
thank you
@ana-mariagarlau798
@ana-mariagarlau798 3 года назад
Thank you so much, i totally understand your explanation! I was trying to do something similar but i thought i could do it with incrementing i. Could you help me understand what I am missing in the following code? public static void rotateGroceries(String[] groceryList) { if(groceryList.length>1){ String lastElement = groceryList[groceryList.length-1]; for(int i = 0; i< groceryList.length-1; i++){ if(i==0){ groceryList[i] = lastElement; }else{ groceryList[i] = groceryList[i+1]; } } In my output, the last element seems to take over most of the positions but I don t really understand why
@Toonzzpoint
@Toonzzpoint Год назад
great explanation sir!!
@QAFox
@QAFox Год назад
Thank you :)
@punk199615
@punk199615 2 года назад
Thank you!
@QAFox
@QAFox 2 года назад
Welcome :)
Далее
Java program to right rotate an Array by 3 elements
14:22
Remove Duplicates from sorted Array
21:22
Просмотров 169 тыс.
Как дела перцы?
00:25
Просмотров 84 тыс.
Timings hated him #standoff #timing #meme
00:14
Просмотров 519 тыс.
Butch REACT to Creative way to fix damaged tile!
00:46
Просмотров 727 тыс.
Java Program to right rotate a String by 3 positions
13:35
Rotate Array - Leetcode 189 - Python
8:59
Просмотров 144 тыс.