Leetcode 66. Plus One

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • Leetcode 66. Plus One
    leetcode.com/problems/plus-one/
    My contact details
    Instagram :- / frazmohammad
    Connect with me on LinkedIn :- / mohammad-f-bb4886157
    Telegram Group t.me/LeadCoding
    FREE INTERVIEW PREPARATION SERIES • Free Interview Prepara...
    You can practice for coding interview from here
    Leetcode Hard :- • Hard
    Leetcode Medium :- • Medium
    Leetcode Easy :- • Easy
    I am Mohammad Fraz , a final year Engineer at DTU and I create content for Coding and technical interviews for FAANG. I explain the intuition to solve Data Structure and Algorithm Questions from leetcode and other platforms. I also cover interview experiences for FAANG and other tech giants. You will also find lectures on the frequently asked interview questions.

Komentáře • 17

  • @modanwalpriti8769
    @modanwalpriti8769 Před rokem +2

    I am happy a person like you providing us too much cheaper and simplest solution of many questions, which are too much easy for understand.....
    THANKYOU FRAZ BHAIYA...🥰

  • @Sana.s_YT
    @Sana.s_YT Před rokem +1

    You are a genius it just blows my mind with every video explaination i watch on your channel ,hats off

  • @gauravjain969
    @gauravjain969 Před 2 lety +2

    Too short and crisp code 🔥
    It is 100 % faster than all other codes on leetcode

  • @AmanChauhan-hr1wh
    @AmanChauhan-hr1wh Před rokem

    the way you added 1 at the beginning is impressive

  • @ankitkumarghosh462
    @ankitkumarghosh462 Před 3 lety +3

    Great explanation

  • @karanjitrandhawa1515
    @karanjitrandhawa1515 Před 2 lety

    best explaination ever love from Assam

  • @ankitashah4295
    @ankitashah4295 Před 9 měsíci

    amazing approach

  • @sourin.majumdar
    @sourin.majumdar Před 2 lety

    Good explanation ❤. What astonishes me is "D.size()".

  • @ratnasanjay
    @ratnasanjay Před 2 lety

    Thankyou bhaiya for this session

  • @devangsaini5729
    @devangsaini5729 Před 11 měsíci

    great

  • @shivangisingh1988
    @shivangisingh1988 Před 2 lety +2

    too short, too good and too crisp!! thank you so much

  • @amankushwaha8180
    @amankushwaha8180 Před 2 lety +1

    how to create new vector can anyone give me that solution

  • @asanitian6218
    @asanitian6218 Před 11 měsíci

    ❤️❤️🙏

  • @ApurvTripathi-mc3iy
    @ApurvTripathi-mc3iy Před rokem

    please share a java code for this question

  • @deepnarayanbhagat9126
    @deepnarayanbhagat9126 Před 2 lety +1

    ---------------The Java Code --------------
    class Solution {
    public int[] plusOne(int[] digits) {
    for(int i=digits.length-1;i>=0;i--){
    if(digits[i] ==9){
    digits[i]=0;
    }else{
    digits[i]++;
    return digits;
    }
    }
    int[] res = new int[digits.length+1];
    res[0]=1;
    return res;
    }
    }