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

preview_player
Показать описание
Technical lectures by Shravan Kumar Manthri.
Watch "Patterns in C- Tips & Tricks " in the following link...

You can watch "Tricky 150 mcqs in C" in the following link

Technical lectures by Shravan Kumar Manthri.
Watch Technical C programming

Watch Data Warehousing & Data Mining

Watch Design & Analysis of Algorithms

Watch Formal Languages & Automata theory

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
Рекомендации по теме
Комментарии
Автор

Thanks for your explanation and effort, saved me a lot

tuna
Автор

Which type of data structure and algorithm it comes under.

harshpatilhp
Автор

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-ghzt
Автор

why have you initialized j=1? in for loop and in right rotation i>=1?

amisha
Автор

i don't understand the k portion. if we are using scanf with k, then where are we exactly taking k's value from?

vaishnavichoudhari
Автор

Brother please explain this with time complexity of O(n) or O(1)

chandutejareddy
Автор

It is failed for multiple test cases....array left rotation

casual.creator_
welcome to shbcf.ru