Variable size sliding window | Part 34 | DSA in java in telugu | Engineering Animuthyam

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

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

  • @nallamillipurnima8525
    @nallamillipurnima8525 23 дня назад +6

    Macha really amazing bale cheptunnav i am completely addicted to dsa macha😊😊

  • @prasanna9440
    @prasanna9440 25 дней назад +5

    Can't stop watching this playlist... it's like webseries
    Waiting for graphs and such hard topics to make it easy with your support
    Thanks a lot macha❤

  • @sweety-rsy
    @sweety-rsy 11 дней назад +3

    macha, last video lo chepinattu ga ne just 2 minutes lo ne code ochesidhi rayadam. chana ease ga chepesthunav macha keep going, thank you so much macha❤

    • @engineeringanimuthyam
      @engineeringanimuthyam  День назад

      😁 congratulations for improvement. All the best 🥳. Thankyou for support

  • @Annamalai-t2l
    @Annamalai-t2l 19 дней назад +4

    solved macha 😱

  • @theoverthinker8320
    @theoverthinker8320 Месяц назад +1

    super macha. thank you so much. please try to give more homework problems, so that we can practice more.

  • @Bhargav3207
    @Bhargav3207 18 дней назад

    macha daily atleast 2 videos pettu course inka run avthundi kabatti fast ga nerchukodaniki kastam avthadi if available unavi complete ipothe daily oka video kosam wait cheyali thanks macha super explanation.

  • @SubhashKumar-ss2ut
    @SubhashKumar-ss2ut Месяц назад +2

    Macha nee explanation tho ee problem ni just ala oka 10 mins lo chsesa nice macha keep going

  • @KARTHIKEYA-b7k
    @KARTHIKEYA-b7k Месяц назад +4

    Anna add more problems. Chala intresting undhi. Your teaching is like a pro. One more request anna do more lectures every day

    • @engineeringanimuthyam
      @engineeringanimuthyam  Месяц назад +8

      Ha macha I understood.
      Problem em ante I am getting very little time to do youtube videos. Chala other works unai full time job and others. But mi kosam consistent ga videos tedaniki try chestha macha.

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

    And yes!! I have recommended my friends about your videos.

  • @chaitanyareddy4715
    @chaitanyareddy4715 13 дней назад +1

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int ans =0;
    int count=0;
    int flip =0;
    int l=0;
    for(int r =0;r k){
    if(nums[l] == 0){
    flip--;
    }
    if(nums[l]==1){
    count--;
    }
    l++;
    }
    ans = Math.max(ans,r-l+1);
    }
    return ans;
    }
    }

  • @Chintapakdamdam-e3d
    @Chintapakdamdam-e3d Месяц назад

    nv cheppinadhi problem solved by myself bro....tq so much

  • @Prasanna-im1zy
    @Prasanna-im1zy Месяц назад +4

    solved it myself!!

  • @Gk_india01
    @Gk_india01 Месяц назад +2

    Hi anna Resume ela Cheyalo Free Templetes and Ne Resume tho explain chesi oka Video Chey bro ATS Resume.

  • @WORK-HARD-jm4cg
    @WORK-HARD-jm4cg Месяц назад

    done with if as well as while loop
    class Solution(object):
    def longestOnes(self, nums, k):
    l=0
    count=0
    temp=0
    ans=0
    for r in range(len(nums)):
    if nums[r]==0:
    count=count+1

    if count>k:
    if nums[l]==0:
    count=count-1
    l=l+1
    if count

  • @unknownuser-h9r
    @unknownuser-h9r Месяц назад +3

    bro increase the duration,really its too good. waiting for next lecture

    • @engineeringanimuthyam
      @engineeringanimuthyam  Месяц назад +5

      Ha macha I understood.
      Problem em ante I am getting very little time to do youtube videos. Chala other works unai full time job and others. But mi kosam consistent ga videos tedaniki try chestha macha.

    • @unknownuser-h9r
      @unknownuser-h9r Месяц назад +1

      always waiting for you classes

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

      ​@@engineeringanimuthyam hii I'm studying MCA 2nd year ...my graduation will complete on 2024 October...now i would like to learn DSA from beginner...so if I learn this it will take around 1 year to learn..so the company's hire me or not..(and I'm tier 3 MCA college... Could you give me response...how much time to take Learn DSA From beginng....and I know python,html,css, javascript,sql learning...

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

      ​@@engineeringanimuthyam
      @engineeringanimuthyam hii I'm studying MCA 2nd year ...my graduation will complete on 2025 October...now i would like to learn DSA from beginner...so if I learn this it will take around 1 year to learn..so the company's hire me or not..(and I'm tier 3 MCA college... Could you give me response...how much time to take Learn DSA From beginng....and I know python,html,css, javascript,sql learning

  • @bavireddijayaprakash9535
    @bavireddijayaprakash9535 Месяц назад +1

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int l=0;
    int temp=0;
    int ans=0;
    for(int r=0;rk)
    {
    if(nums[l]==0)
    {
    temp--;
    }
    l++;
    }
    ans=Math.max(ans,r-l+1);
    }
    return ans;
    }
    }

  • @WORK-HARD-jm4cg
    @WORK-HARD-jm4cg Месяц назад +1

    without sliding window
    class Solution(object):
    def findMaxConsecutiveOnes(self, nums):
    temp=0
    ans=0

    for i in nums:
    if i==1:
    temp=temp+1
    if i!=1:
    temp=0
    ans=max(ans,temp)
    return ans

  • @DharmaReddy-pm4to
    @DharmaReddy-pm4to Месяц назад

    vere level bro teaching excellent

  • @bhupathikoti5120
    @bhupathikoti5120 Месяц назад +3

    goooooooooooooooooooooooooooooooood

  • @bvnvarshitha1535
    @bvnvarshitha1535 Месяц назад +1

    bro, please increase the time. At least oka pani chey bro, ippudu sliding window chpthunnav kadha inthakmundu already array list,arrays,strings meedha chesam kadha.. vaati meedha cover chesina topics varaku leetcode lo qns home work laga ivvu.. so that videos late aina time thakkuva chesina videos vi we can still practice dsa and consistent ga undagalgutham. Ee oka help they macha.. 'coz time thakkuva ayyesariki consistency pothundhemo anipistundi

  • @dileepkumarg1016
    @dileepkumarg1016 18 часов назад

    super macha

  • @Learnit-h7h
    @Learnit-h7h 10 дней назад

    Done by done and passed all test cases
    class Main
    {
    public static void main(String args[])
    {
    int arr[]={0,0,1,1,0,0,1,1,1,0,1,1,0,0,0,1,1,1,1};
    int k=3;
    int n=arr.length;
    int l=0;
    int temp=0;
    int ans=0;
    for(int r=0;rk)
    {
    if(arr[l]==0)
    {
    temp--;
    }
    l++;
    }
    ans=Math.max(ans,r-l+1);
    }
    System.out.println(ans);
    }
    }

  • @KalyanKalyan-u3p
    @KalyanKalyan-u3p Месяц назад +1

    Linked list is very important but you should teach before hash concept right?

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

    macha koncham video length increase chey and topics kocham fast ga complete chey

  • @Mahesh-pu5gm
    @Mahesh-pu5gm Месяц назад

    Broo linkedList pinna oka video cheyadhi plzz mids unnaayi 14th ki exam aa video chusina artham aytha leee so meru kocham help cheyadhi

  • @-TheerdeshDasari
    @-TheerdeshDasari Месяц назад

    // Online Java Compiler
    // Use this editor to write, compile and run your Java code online
    class HelloWorld {
    public static void main(String[] args) {
    int[] arr={1,1,0,1,0,0,0};
    int k=2;
    int l=0;
    int temp=0;
    int ans=0;
    int n=arr.length;
    for(int r=0;rk){
    if(arr[l]==0){
    temp--;
    }
    l++;
    }
    ans=Math.max(ans,r-l+1);
    }
    System.out.println(ans);
    }
    }

  • @KARTHIKEYA-b7k
    @KARTHIKEYA-b7k Месяц назад +1

    Anna emindhi anna emina problem aa ?? 2 days nunchi lectures raledhu daily cheydanki try chey anna pls

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

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int n = nums.length;
    int l = 0;
    int ans = 0;
    int count =0;
    for(int r = 0; r< n; r++){
    if(nums[r] == 0){
    count++;
    }
    while(count > k){
    if(nums[l] == 0 ){
    count--;
    }
    l++;
    }
    ans = Math.max(ans, (r-l+1));
    }
    return ans;

    }
    }

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

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int maxNoOfOnes=0;
    int l=0;
    int countOfZeroes=0;
    for(int r=0;rk){
    if(nums[l]==0){
    countOfZeroes--;
    }
    l++;
    }
    maxNoOfOnes=Math.max(r-l+1,maxNoOfOnes);
    }
    return maxNoOfOnes;

    }
    }

  • @-ANGE-nf6sw1
    @-ANGE-nf6sw1 Месяц назад +4

    Macha java or python okate cheppu macha . Please gap vachesthundhi. Memu ardham chesukogalam neku full time job and other works so oka language full pledged ga complete chey macha . Tharavatha vere language ki vellu please.

  • @bavireddijayaprakash9535
    @bavireddijayaprakash9535 Месяц назад +2

    Macha Part 35?

  • @nikhilgaming3142
    @nikhilgaming3142 8 дней назад

    maccha nuvvu first 5 min chesina problem gurthutecchukunna and aaa problem statement correct ga chadavagaane ardam ayyidni leet code problem lo kuda indirect ga adigindi ide kada ani first 5 min lo cheisna problem ni 1 sec lo copy paste chesa occheisndi leet code medium problem
    class Solution {
    public int longestOnes(int[] nums, int k) {
    int l=0;
    int n=nums.length;
    int ans=0;
    int temp=0;
    for(int r=0;rk){
    if(nums[l]==0){
    temp=temp-1;
    }
    l=l+1;
    }
    ans=Math.max(r-l+1,ans);
    }
    return ans;
    }
    }

  • @saivamsy2275
    @saivamsy2275 6 дней назад

    😍🤩😁solution chudakunda chesa macha
    class Solution {
    public int longestOnes(int[] nums, int k) {

    int temp = 0;
    int maxLength = 0;
    int l = 0;
    for(int r=0;rk){
    if(nums[l]==0){
    temp--;
    }
    l++;
    }
    maxLength = Math.max(maxLength, r-l+1);
    }
    return maxLength;
    }
    }

  • @-ANGE-nf6sw1
    @-ANGE-nf6sw1 Месяц назад +1

    Macha video radha ?

  • @vishwasamrutha7844
    @vishwasamrutha7844 Месяц назад +2

    bro pls increase the duration so that we can solve more problems in short period of time

    • @engineeringanimuthyam
      @engineeringanimuthyam  Месяц назад +2

      Ha macha I understood.
      Problem em ante I am getting very little time to do youtube videos. Chala other works unai full time job and others. But mi kosam consistent ga videos tedaniki try chestha macha.

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

    class Solution {
    public int longestOnes(int[] arr, int k) {
    int l = 0;
    int count_ones = 0;
    int count_zero = 0;
    int ans = 0;
    for(int r = 0; rk) {
    if(arr[l]==1) count_ones--;
    if(arr[l]==0) count_zero--;
    l++;
    }
    ans = Math.max(ans, count_ones+count_zero);
    }
    return ans;
    }
    }
    20 mins alochinchamanv kada edi chesa 17 mins lo chesa taruvata video chusa navvu kunna solution munde rasa ani

  • @Chintapakdamdam-e3d
    @Chintapakdamdam-e3d Месяц назад

    bro same logic ee kada before problem lane....adhi try chesa vacindhi successful ga, but logic matram meru cheppakane inka clear ga ardamayindhi

  • @nithissssssh
    @nithissssssh Месяц назад +1

    ❤❤❤❤❤

  • @WORK-HARD-jm4cg
    @WORK-HARD-jm4cg Месяц назад

    Macha emaindhi?

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

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int left=0;
    int temp=0;
    int ans=0;
    for(int right=0;rightk)
    {
    if(nums[left]==0)
    {
    temp--;
    }
    left++;
    }
    ans=Math.max(ans,right-left+1);
    }
    return ans;
    }
    }

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

    class Solution {
    public int longestOnes(int[] nums, int k) {
    int n = nums.length;
    int left = 0;
    int max = 0;
    int count = 0;
    for(int r = 0; r k){
    if(nums[left] == 0){
    count--;
    }
    left++;
    }
    max = Math.max(max,r-left+1);
    }
    return max;
    }
    }