Rotate array elements k times (Left and Right rotation ) (C - program)
ฝัง
- เผยแพร่เมื่อ 16 ก.ย. 2024
- 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
Thanks for your explanation and effort, saved me a lot
Glad it helped...Watch Turing Machine problems in the following link
www.udemy.com/course/formal-languages-and-automata-theory/learn/lecture/17998421?
Time complexity is O(n^2)
No.. it's O(n*k)
Loved it
Thank you.. Keep Learning...
Please try this too...
Next 50 mcqs
th-cam.com/video/AlOQMTr5zD0/w-d-xo.html
Super explanation bro❤️❤️❤️
Glad you liked it... You can watch this playlist for more stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
Nice explanation bro keep it up 😊
Thank you...You can watch this playlist for more stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
@@CSEGURUS cyclical rotation means left or right?
I subscribed ❤️❤️❤️❤️❤️
Thank u..You can watch this playlist for more stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
Which type of data structure and algorithm it comes under.
Nice explanation ❤️❤️
Glad you liked it...
You can watch this playlist for more stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
Thanks a lot sir!
Most welcome..You can watch this playlist for more stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
thanks a lot
You are welcome...You can watch this playlist for placement related stuff in C
th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html
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
what is the solution of it
Errors in right rotation.
Liked and subscribed!
Most welcome.... Keep Learning... Watch Next 50 MCQs in C in the following link th-cam.com/video/AlOQMTr5zD0/w-d-xo.html
Brother please explain this with time complexity of O(n) or O(1)
I will upload soon..
why have you initialized j=1? in for loop and in right rotation i>=1?
i don't understand the k portion. if we are using scanf with k, then where are we exactly taking k's value from?
from the input (you)
It is failed for multiple test cases....array left rotation
Bro in 17th line use ( a[n]=temp ) for lest shift and ( a[0]=temp ) for right shift.
@@adityanarayanamanta6001 * a[n-1]=temp actually for left rotation
Why don't u try to optimise....
how can it be optimized?
Please speak lound bro..
Terminated due to time out
I vl post O(n) solution soon..