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

ความคิดเห็น • 42

  • @tuna5395
    @tuna5395 2 ปีที่แล้ว +5

    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 ปีที่แล้ว +6

    Time complexity is O(n^2)

  • @apporvaarya
    @apporvaarya 4 ปีที่แล้ว +2

    Loved it

    • @CSEGURUS
      @CSEGURUS  4 ปีที่แล้ว +1

      Thank you.. Keep Learning...
      Please try this too...
      Next 50 mcqs
      th-cam.com/video/AlOQMTr5zD0/w-d-xo.html

  • @pavankumar1004
    @pavankumar1004 3 ปีที่แล้ว +1

    Super explanation bro❤️❤️❤️

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว

      Glad you liked it... You can watch this playlist for more stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @manikantatirumani3371
    @manikantatirumani3371 3 ปีที่แล้ว +2

    Nice explanation bro keep it up 😊

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว

      Thank you...You can watch this playlist for more stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

    • @pavanirayapati6512
      @pavanirayapati6512 2 ปีที่แล้ว

      @@CSEGURUS cyclical rotation means left or right?

  • @pavankumar1004
    @pavankumar1004 3 ปีที่แล้ว +1

    I subscribed ❤️❤️❤️❤️❤️

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว +1

      Thank u..You can watch this playlist for more stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @harshpatil01403
    @harshpatil01403 2 ปีที่แล้ว +1

    Which type of data structure and algorithm it comes under.

  • @sudipsen3677
    @sudipsen3677 2 ปีที่แล้ว

    Nice explanation ❤️❤️

    • @CSEGURUS
      @CSEGURUS  2 ปีที่แล้ว

      Glad you liked it...
      You can watch this playlist for more stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @saitejanagishetty8075
    @saitejanagishetty8075 3 ปีที่แล้ว

    Thanks a lot sir!

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว

      Most welcome..You can watch this playlist for more stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @naveen2105
    @naveen2105 2 ปีที่แล้ว

    thanks a lot

    • @CSEGURUS
      @CSEGURUS  2 ปีที่แล้ว

      You are welcome...You can watch this playlist for placement related stuff in C
      th-cam.com/play/PLYT7YDstBQmEGhVqAoubBS0OE_5m4JDUe.html

  • @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

  • @sumitnegi7529
    @sumitnegi7529 3 ปีที่แล้ว +1

    Errors in right rotation.

  • @virenkamra5050
    @virenkamra5050 4 ปีที่แล้ว +1

    Liked and subscribed!

    • @CSEGURUS
      @CSEGURUS  4 ปีที่แล้ว

      Most welcome.... Keep Learning... Watch Next 50 MCQs in C in the following link th-cam.com/video/AlOQMTr5zD0/w-d-xo.html

  • @chandutejareddy7764
    @chandutejareddy7764 3 ปีที่แล้ว +2

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

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว +1

      I will upload soon..

  • @amisha7591
    @amisha7591 3 ปีที่แล้ว

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

  • @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)

  • @casual.creator_
    @casual.creator_ 4 ปีที่แล้ว +3

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

    • @adityanarayanamanta6001
      @adityanarayanamanta6001 4 ปีที่แล้ว +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 ปีที่แล้ว +1

    Why don't u try to optimise....

    • @TheAbhidugar
      @TheAbhidugar 3 ปีที่แล้ว

      how can it be optimized?

  • @ogive3602
    @ogive3602 ปีที่แล้ว

    Please speak lound bro..

  • @thumanapallyvomann9017
    @thumanapallyvomann9017 3 ปีที่แล้ว

    Terminated due to time out

    • @CSEGURUS
      @CSEGURUS  3 ปีที่แล้ว

      I vl post O(n) solution soon..