Тёмный

Rotate array elements k times (Left and Right rotation ) (C - program) 

CSE GURUS
Подписаться 71 тыс.
Просмотров 39 тыс.
50% 1

Technical lectures by Shravan Kumar Manthri.
Watch "Patterns in C- Tips & Tricks " in the following link...
www.udemy.com/...
You can watch "Tricky 150 mcqs in C" in the following link
www.udemy.com/...
Technical lectures by Shravan Kumar Manthri.
Watch Technical C programming
• Technical C coding : p...
Watch Data Warehousing & Data Mining
• 1. Multi-Dimensional ...
Watch Design & Analysis of Algorithms
• 1. Introduction to the...
Watch Formal Languages & Automata theory
• 1. Introduction to Aut...
Visit us: www.csegurus.com
Contact me @ fb : shravan.kites@gmail.com
Like us on fb: CSE GURUS
This video explains Rotation of array elements k times (Left and Right rotation ) with execution. #ShravankumarManthri#CSEGURUS #ShravankumarManthri#CSEGURUS

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

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@tuna5395
@tuna5395 2 года назад
Thanks for your explanation and effort, saved me a lot
@CSEGURUS
@CSEGURUS 2 года назад
Glad it helped...Watch Turing Machine problems in the following link www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
@atharvsharma6056
@atharvsharma6056 3 года назад
Time complexity is O(n^2)
@Saurabh-lb1uv
@Saurabh-lb1uv 2 года назад
No.. it's O(n*k)
@harshpatil01403
@harshpatil01403 2 года назад
Which type of data structure and algorithm it comes under.
@AliAhmad-gh2zt
@AliAhmad-gh2zt 4 года назад
write only pseudo code for that . 1-> given a starting point in a 2d array of size X Y you have to rotate subarray of size N staring from given starting point. 2-> there are a lot of strings like "ab" , "bc","cd","ad" and u have to find the longest string can be made like ab+bc+cd = abcd = 4(answer) but keep in mind that ending character of first string should be first character of next string
@AliAhmad-gh2zt
@AliAhmad-gh2zt 4 года назад
what is the solution of it
@amisha7591
@amisha7591 3 года назад
why have you initialized j=1? in for loop and in right rotation i>=1?
@manikantatirumani3371
@manikantatirumani3371 3 года назад
Nice explanation bro keep it up 😊
@CSEGURUS
@CSEGURUS 3 года назад
Thank you...You can watch this playlist for more stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@pavanirayapati6512
@pavanirayapati6512 2 года назад
@@CSEGURUS cyclical rotation means left or right?
@pavankumar1004
@pavankumar1004 3 года назад
Super explanation bro❤️❤️❤️
@CSEGURUS
@CSEGURUS 3 года назад
Glad you liked it... You can watch this playlist for more stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@apporvaarya
@apporvaarya 4 года назад
Loved it
@CSEGURUS
@CSEGURUS 4 года назад
Thank you.. Keep Learning... Please try this too... Next 50 mcqs ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AlOQMTr5zD0.html
@pavankumar1004
@pavankumar1004 3 года назад
I subscribed ❤️❤️❤️❤️❤️
@CSEGURUS
@CSEGURUS 3 года назад
Thank u..You can watch this playlist for more stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@chandutejareddy7764
@chandutejareddy7764 3 года назад
Brother please explain this with time complexity of O(n) or O(1)
@CSEGURUS
@CSEGURUS 3 года назад
I will upload soon..
@saitejanagishetty8075
@saitejanagishetty8075 3 года назад
Thanks a lot sir!
@CSEGURUS
@CSEGURUS 3 года назад
Most welcome..You can watch this playlist for more stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@naveen2105
@naveen2105 2 года назад
thanks a lot
@CSEGURUS
@CSEGURUS 2 года назад
You are welcome...You can watch this playlist for placement related stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@sudipsen3677
@sudipsen3677 3 года назад
Nice explanation ❤️❤️
@CSEGURUS
@CSEGURUS 2 года назад
Glad you liked it... You can watch this playlist for more stuff in C ru-vid.com/group/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe
@vaishnavichoudhari5032
@vaishnavichoudhari5032 3 года назад
i don't understand the k portion. if we are using scanf with k, then where are we exactly taking k's value from?
@Darktiger754
@Darktiger754 2 года назад
from the input (you)
@sumitnegi7529
@sumitnegi7529 3 года назад
Errors in right rotation.
@virenkamra5050
@virenkamra5050 4 года назад
Liked and subscribed!
@CSEGURUS
@CSEGURUS 4 года назад
Most welcome.... Keep Learning... Watch Next 50 MCQs in C in the following link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-AlOQMTr5zD0.html
@casual.creator_
@casual.creator_ 4 года назад
It is failed for multiple test cases....array left rotation
@adityanarayanamanta6001
@adityanarayanamanta6001 4 года назад
Bro in 17th line use ( a[n]=temp ) for lest shift and ( a[0]=temp ) for right shift.
@lil_romcik
@lil_romcik 3 года назад
@@adityanarayanamanta6001 * a[n-1]=temp actually for left rotation
@Bobby-mf6fw
@Bobby-mf6fw 4 года назад
Why don't u try to optimise....
@TheAbhidugar
@TheAbhidugar 3 года назад
how can it be optimized?
@thumanapallyvomann9017
@thumanapallyvomann9017 3 года назад
Terminated due to time out
@CSEGURUS
@CSEGURUS 3 года назад
I vl post O(n) solution soon..
@ogive3602
@ogive3602 Год назад
Please speak lound bro..
Далее
Array Rotation In Place using C++ (Juggling Algorithm)
14:42
Array Programs with clear explanation
1:40:16
Просмотров 189 тыс.
ROTATION of an array (REVERSAL Algorithm)
7:52
Просмотров 51 тыс.
Rotate Matrix/Image by 90 Degrees | Brute - Optimal
17:47
Rotate An Array Left | C Programming Example
5:24
Просмотров 8 тыс.
Number based programs (Loops in C)
34:50
Просмотров 8 тыс.