Rotate array by k positions in Java | Leetcode problems and solutions

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024

Комментарии • 53

  • @aryankumar-nz4ep
    @aryankumar-nz4ep 2 года назад +13

    tried to understand this logic from so many videos but your''s only helped. Thaks alot brother

  • @AdilKhan-kk4vt
    @AdilKhan-kk4vt Год назад +49

    the background music is disturbing the concentration.

  • @birlashrivinayak1480
    @birlashrivinayak1480 Год назад +16

    irritating background music .....baaki tho accha logic tha

  • @ShivrajBhasme
    @ShivrajBhasme 2 месяца назад +6

    Sir pls do not use background music

  • @sanchay_khatwani
    @sanchay_khatwani 2 месяца назад +3

    sir background music ki kya need hai
    is video me

  • @theparagbagga
    @theparagbagga 7 месяцев назад

    are you teaching to learn the problem? How are we gonna remember this thing after a year? or in an interview? There are high chances of getting a messy code.

  • @montuedge
    @montuedge 9 месяцев назад +1

    5:40 And why are we doing reverse ??? What is intuition behind it ?

  • @soumyarathore4050
    @soumyarathore4050 5 месяцев назад +2

    Please don't put background sound its distrubing

  • @shubhampal2971
    @shubhampal2971 Месяц назад

    bhai coding ke question me background music kyo lga dia
    edited: nice and ez logic

  • @shravyak8535
    @shravyak8535 Месяц назад

    Best explainattion hai bhai

  • @prajjwalsingh9447
    @prajjwalsingh9447 28 дней назад

    what is the time complexity of this code ??

  • @faizaanshaik3007
    @faizaanshaik3007 Год назад

    When we change parameter name nums to some other name in rotate method it doesn't affect original array? Why

  • @dikshasharma7665
    @dikshasharma7665 6 месяцев назад +1

    please increase the background music

  • @abhishekmaurya2295
    @abhishekmaurya2295 2 месяца назад

    solution was preety easy

  • @rishabhkumar2062
    @rishabhkumar2062 3 месяца назад +1

    no intuition?

  • @bikasmandal4227
    @bikasmandal4227 Год назад

    can you explain why use k = k%nums.length ...... with proper explanation

    • @rohanpatale9797
      @rohanpatale9797 Год назад +3

      if array is rotated by length of array times, then final array looks like initial array, in that case you just have to check for number other than 7 multiples in k, you are saving some time

  • @anshul2675
    @anshul2675 Месяц назад

    damn this music man, I can't focus at all. Gonna jump to ChatGPT now

  • @riteshko123
    @riteshko123 9 месяцев назад

    📚 Java Tutorial for Beginners in Hindi = 🔎
    • Java Tutorial for Beginners [HINDI] 🚀
    🌟 Star Patterns in Java =🔎
    • Star Pattern Programs in Java 🌟 [ HIN...
    👨‍💻 Java Full Stack Developer Series = 🔎
    • JAVA Developer Series in ONE SHOT💖
    📖 OOPs in Java =🔎
    • OOPs Concepts in Java [HINDI]
    👨‍💻 Exception Handling in java = 🔎
    • Exception Handling in Java
    ❤ 10 Min Tutorials = 🔎
    • Explain in 10 Mins 🔥
    🔥 DSA Old Playlist = 🔎
    • DSA + Mostly Asked Interview Questions
    🚀 Personal Tips + Roadmaps = 🔎
    • Reality Check & MentorShip 🔥

  • @aartipal1428
    @aartipal1428 Месяц назад

    please don't add background music it was so distracting

  • @abusufiyanofficial6674
    @abusufiyanofficial6674 13 дней назад

    background music is too irritating . should not use background music at least during teaching.

  • @rohit_0198
    @rohit_0198 9 месяцев назад +2

    bhai tu music hi baja le

  • @shubhamdukare8310
    @shubhamdukare8310 Месяц назад

    Thanks

  • @sukanshigarg6051
    @sukanshigarg6051 Год назад

    When i applied this logic in geeks for geeks its showing error . and after some minor changes it only showing 50 percent accuracy

    • @CodingWallahSir
      @CodingWallahSir  Год назад

      Some times network reasons, sometimes other reasons will effect but we didn't consider time complexity like that , we will only consider using mathematics asymptomatic notations

  • @luckydev9006
    @luckydev9006 Год назад

    Good explanation

  • @yuvraj_das
    @yuvraj_das 2 года назад +1

    superb

  • @swaroopdhar4517
    @swaroopdhar4517 Месяц назад

    Please remove background music, its disturbing.

  • @sukanshigarg6051
    @sukanshigarg6051 Год назад

    Thank you sir !

  • @ayushsaxena6794
    @ayushsaxena6794 4 месяца назад

    the bgm is creating high disturbance

  • @sahil_tatkare
    @sahil_tatkare Год назад +4

    this is the worst video on this topic

  • @kuchamancity1
    @kuchamancity1 7 месяцев назад +1

    music hata de, koi mujra nahi hai code hai

  • @amishasahu2018
    @amishasahu2018 Месяц назад

    without background music would be better, very irritating

  • @vidhishiste8751
    @vidhishiste8751 Год назад +1

    remove the background
    music

  • @debabratadeyroy549
    @debabratadeyroy549 7 месяцев назад

    nums = [1,2] k = 3 your process doesn't valid for this

  • @harshitaPahadan
    @harshitaPahadan 4 месяца назад

    Why have you put background music? It is so irritating

  • @aapkikhushi4689
    @aapkikhushi4689 Год назад +1

    your sound is soo irritate
    your explanation is nice. create one playlist and upload all videos without sound and add link here

    • @CodingWallahSir
      @CodingWallahSir  Год назад

      Thanks khushi for your feedback I'll definitely work on this.

  • @drajesh4493
    @drajesh4493 5 месяцев назад

    can't concentrate bcoz of the irritating bg music, skipped

  • @joshipiano
    @joshipiano 5 месяцев назад

    bhai music hata de

  • @akshaytade2595
    @akshaytade2595 Год назад +1

    Sound is so irritate

    • @CodingWallahSir
      @CodingWallahSir  Год назад

      Sorry for that, i have learnt from such feedbacks now I have improved in new lectures

  • @ankitagarg6505
    @ankitagarg6505 4 месяца назад

    The logic is completely wrong
    It is not valid on every question

  • @code_withraj
    @code_withraj 7 месяцев назад

    Bacha h tu abhi

  • @KishanGupta-lx7zk
    @KishanGupta-lx7zk Год назад +2

    background music disturbing

    • @CodingWallahSir
      @CodingWallahSir  Год назад

      Sorry for that, now i understand. I have stoped in my new videos.You can learn from them without disturbing

  • @sanchay_khatwani
    @sanchay_khatwani 2 месяца назад

    bekar solution hai