CodeFreaks
CodeFreaks
  • 715
  • 346 800
Number of subarrays with maximum values in given range || C++ || GFG Daily Problem
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day
If you like this content please hit like and subscribe. Thanks for watching.
-------------------------------------------------------------------------------------
►►Link to the Code of ""Number of subarrays with maximum values in given range"" is given below ====
github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle%20integers.cpp
►►Link to the Problem ""Number of subarrays with maximum values in given range"" is given below ====
www.geeksforgeeks.org/problems/number-of-subarrays-with-maximum-values-in-given-range5949/1
🌟 Playlists 🌟
►►Playlist of daily GFG Daily Problem ===
czcams.com/play/PLDDNSK7CeC8rPE2LGn32psMcqDckzbS6E.html
►►Link to the Github Repository Link for all the codes of GFG Daily Problem is given below ===
github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Total%20Cuts.cpp
►►Playlist of daily Leetcode Daily Challenge ===
practice.geeksforgeeks.org/problems/cbd515a00f6537180d2e66f1ffe11093a128e560/1
►►Link to the Github Repository Link for all the codes of Leetcode Daily Challenge is given below ==
github.com/Thelalitagarwal/Leetcode_Daily_Challenge
Subscribe Now ::::
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
www.youtube.com/@Lalit_Samiksha
#step by step explanation #great
#gfg #gfgpractice #gfgdailychallenges #gfgdailyproblem #gfgstreek #amazingfacts #amazingvideos #geeksforgeeksgate #streek #placement #logicbuilding
zhlédnutí: 198

Video

How Many X's? || C++ || GFG Daily Problem
zhlédnutí 98Před 7 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""How Many X's?"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem ""How Many X's?"" is given below www.geeksforgeeks.org/problems/how-many-xs4514/1 🌟 Playlists 🌟 ►►Playlist ...
Minimize the Heights II || C++ || GFG Daily Problem
zhlédnutí 45Před 7 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Minimize the Heights II"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem ""Minimize the Heights II"" is given below www.geeksforgeeks.org/problems/minimize-the-heights335...
Brothers From Different Roots || C++ || GFG Daily Problem
zhlédnutí 58Před 7 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Brothers From Different Roots"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem ""Brothers From Different Roots"" is given below www.geeksforgeeks.org/problems/brothers-fr...
Shortest path from 1 to n || C++ || GFG Daily Problem
zhlédnutí 209Před 7 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Shortest path from 1 to n"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem ""Shortest path from 1 to n"" is given below www.geeksforgeeks.org/problems/shortest-path-from-...
Euler circuit and Path || C++ || GFG Daily Problem
zhlédnutí 89Před 7 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Euler circuit and Path"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem "" Euler circuit and Path "" is given below www.geeksforgeeks.org/problems/euler-circuit-and-path/...
191 || Number of 1 Bits || C++ || Leetcode Daily Challenge
zhlédnutí 53Před 7 měsíci
If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Number of 1 Bits"" is given below github.com/Thelalitagarwal/Leetcode_Daily_Challenge/blob/main/Number of 1 Bits.cpp ►►Link to the ""Number of 1 Bits"" Problem leetcode.com/problems/number-of-1-bits/description/?envType=daily-question&envId=2023-11-29 🌟 Playlists 🌟 ►►Playlist of daily GFG Daily ...
2147 || Number of Ways to Divide a Long Corridor || C++ || Leetcode Daily Challenge
zhlédnutí 26Před 7 měsíci
If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Number of Ways to Divide a Long Corridor"" is given below github.com/Thelalitagarwal/Leetcode_Daily_Challenge/blob/main/Number of Ways to Divide a Long Corridor.cpp ►►Link to the ""Number of Ways to Divide a Long Corridor"" Problem leetcode.com/problems/number-of-ways-to-divide-a-long-corridor/d...
935 || Knight Dialer || C++ || Leetcode Daily Challenge
zhlédnutí 85Před 8 měsíci
If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Knight Dialer"" is given below github.com/Thelalitagarwal/Leetcode_Daily_Challenge/blob/main/Knight Dialer.cpp ►►Link to the ""Knight Dialer"" Problem leetcode.com/problems/knight-dialer/description/?envType=daily-question&envId=2023-11-27 🌟 Playlists 🌟 ►►Playlist of daily GFG Daily Problem czca...
Print Pattern || C++ || GFG Daily Problem
zhlédnutí 101Před 8 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Print Pattern"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem "" Print Pattern "" is given below www.geeksforgeeks.org/problems/print-pattern3549/1 🌟 Playlists 🌟 ►►Playl...
Shuffle integers || C++ || GFG Daily Problem
zhlédnutí 54Před 8 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Shuffle integers"" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Shuffle integers.cpp ►►Link to the Problem "" Shuffle integers "" is given below www.geeksforgeeks.org/problems/shuffle-integers2401/1 🌟 Playlists ...
1561 || Maximum Number of Coins You Can Get || C++ || Leetcode Daily Challenge
zhlédnutí 61Před 8 měsíci
If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of ""Maximum Number of Coins You Can Get"" is given below github.com/Thelalitagarwal/Leetcode_Daily_Challenge/blob/main/Maximum Number of Coins You Can Get.cpp ►►Link to the ""Maximum Number of Coins You Can Get"" Problem leetcode.com/problems/maximum-number-of-coins-you-can-get/description/?envType=...
Pascal Triangle || C++ || GFG Daily Problem
zhlédnutí 63Před 8 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Problem "" Pascal Triangle "" is given below www.geeksforgeeks.org/problems/pascal-triangle0652/1 🌟 Playlists 🌟 ►►Playlist of daily GFG Daily Problem czcams.com/play/PLDDNSK7CeC8rPE2LGn32psMcqDckzbS6E.html ►►Link to the Github Repository Link for...
Predict the Column || C++ || GFG Daily Problem
zhlédnutí 69Před 8 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of "" Predict the Column "" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Form a number divisible by 3 using array digits.cpp ►►Link to the "" Predict the Column "" www.geeksforgeeks.org/problems/predict-the-column/1 ...
Sum of upper and lower triangles || C++ || GFG Daily Problem
zhlédnutí 95Před 8 měsíci
POTD link ::: practice.geeksforgeeks.org/problem-of-the-day If you like this content please hit like and subscribe. Thanks for watching. ►►Link to the Code of "" Sum of upper and lower triangles "" is given below github.com/Thelalitagarwal/GFG_Daily_Problem/blob/main/Form a number divisible by 3 using array digits.cpp ►►Link to the "" Sum of upper and lower triangles "" www.geeksforgeeks.org/pr...
Minimum distance between two numbers || C++ || GFG Daily Problem
zhlédnutí 140Před 8 měsíci
Minimum distance between two numbers || C || GFG Daily Problem
501 || Find Mode in Binary Search Tree || C++ || Leetcode Daily Challenge
zhlédnutí 332Před 8 měsíci
501 || Find Mode in Binary Search Tree || C || Leetcode Daily Challenge
Frequencies of Limited Range Array Elements || C++ || GFG Daily Problem
zhlédnutí 653Před 8 měsíci
Frequencies of Limited Range Array Elements || C || GFG Daily Problem
Move all zeroes to end of array || C++ || GFG Daily Problem
zhlédnutí 99Před 8 měsíci
Move all zeroes to end of array || C || GFG Daily Problem
Check whether K-th bit is set or not || C++ || GFG Daily Problem
zhlédnutí 144Před 8 měsíci
Check whether K-th bit is set or not || C || GFG Daily Problem
Minimum Operations || C++ || GFG Daily Problem
zhlédnutí 115Před 9 měsíci
Minimum Operations || C || GFG Daily Problem
Knapsack with Duplicate Items || C++ || GFG Daily Problem
zhlédnutí 289Před 9 měsíci
Knapsack with Duplicate Items || C || GFG Daily Problem
515 || Find Largest Value in Each Tree Row || C++ || Leetcode Daily Challenge
zhlédnutí 126Před 9 měsíci
515 || Find Largest Value in Each Tree Row || C || Leetcode Daily Challenge
1793 || Maximum Score of a Good Subarray || C++ || Leetcode Daily Challenge
zhlédnutí 224Před 9 měsíci
1793 || Maximum Score of a Good Subarray || C || Leetcode Daily Challenge
Form a number divisible by 3 using array digits || C++ || GFG Daily Problem
zhlédnutí 152Před 9 měsíci
Form a number divisible by 3 using array digits || C || GFG Daily Problem
341 || Flatten Nested List Iterator || C++ || Leetcode Daily Challenge
zhlédnutí 289Před 9 měsíci
341 || Flatten Nested List Iterator || C || Leetcode Daily Challenge
Level of Nodes || C++ || GFG Daily Problem
zhlédnutí 130Před 9 měsíci
Level of Nodes || C || GFG Daily Problem
844 || Backspace String Compare || C++ || Leetcode Daily Challenge
zhlédnutí 124Před 9 měsíci
844 || Backspace String Compare || C || Leetcode Daily Challenge
Transitive closure of a Graph || C++ || GFG Daily Problem
zhlédnutí 317Před 9 měsíci
Transitive closure of a Graph || C || GFG Daily Problem
1361 || Validate Binary Tree Nodes || C++ || Leetcode Daily Challenge
zhlédnutí 509Před 9 měsíci
1361 || Validate Binary Tree Nodes || C || Leetcode Daily Challenge

Komentáře

  • @shikhajaiswar1067
    @shikhajaiswar1067 Před 17 dny

    I also thought of this approach but had doubt and don't know how to implement it you make it clear

  • @AbhishekGupta-kr7co
    @AbhishekGupta-kr7co Před 25 dny

    would fail for flowerbed = [1,0,0,0,0,1] and n = 2, you would have to add i++; after n--; inside for loop for it to work. btw thanks

  • @Rajnish-pu8mj
    @Rajnish-pu8mj Před měsícem

    Itna fast Kaun bolta h yr 😂

  • @sagardeep77
    @sagardeep77 Před 2 měsíci

    apan ne aisa isliye kiya , kyunki ye apne kiya

  • @advitkothari7302
    @advitkothari7302 Před 2 měsíci

    gr8 ! explaination

  • @IllIIIIIIllll
    @IllIIIIIIllll Před 3 měsíci

    Bhai konsi company me job lagai?

  • @Nutrino259
    @Nutrino259 Před 3 měsíci

    Mam please do not fear anyone we are with you!!!

  • @baburqureshi6842
    @baburqureshi6842 Před 3 měsíci

    Kitna time laga Bhai aane me

  • @badruddinmoiyyedi2506
    @badruddinmoiyyedi2506 Před 4 měsíci

    will this interrupt with payment process page?

  • @badruddinmoiyyedi2506
    @badruddinmoiyyedi2506 Před 4 měsíci

    ye badiya tha guru...

  • @samieweee7468
    @samieweee7468 Před 5 měsíci

    If(s[st]!=s[i-1] ) ka logic samaj nhi aya ? Kissliye kiya

  • @top_10_2.O
    @top_10_2.O Před 6 měsíci

    nice explanation 👌👌

  • @gautamthakur9118
    @gautamthakur9118 Před 6 měsíci

    literally good explanation

  • @theoffshoregaming
    @theoffshoregaming Před 6 měsíci

    Bhai itti subh subh 🙃

  • @babbupatidar8924
    @babbupatidar8924 Před 6 měsíci

    int strStr(string haystack, string needle) { int index = haystack.find(needle); if(index != string::npos) return index; else return -1; this is very efficient way of doing this.

    • @karthikgururajan1131
      @karthikgururajan1131 Před měsícem

      you can also use return haystack.find(needle) but the motive of leetcode is to do some programs without using built in functions

  • @aryansinha1818
    @aryansinha1818 Před 6 měsíci

    One liner, ""Thank you so much"".

  • @SoftwareDeveloper001
    @SoftwareDeveloper001 Před 6 měsíci

    keep it up

  • @mr_stranger3867
    @mr_stranger3867 Před 6 měsíci

    Bhai comeback kabhi hoga aap dono ka?

  • @charan9330
    @charan9330 Před 7 měsíci

    Talk slowly please.

  • @user-yn9lp1my5r
    @user-yn9lp1my5r Před 7 měsíci

    In example [1,3,4,2] jab apni pahili parity condition wrong hui and apan sort krre hai toh sirf [1,3] ko hi sort q krre hai jab ki apana j pointer 4 pr hai, 4 element bhi include hona chaiye n? sorting i se (j- 1) tak hori hai , why , is it its property ki woh j-1 tak hi chalega? -----> plz reply

  • @AftabAlam-gh1nh
    @AftabAlam-gh1nh Před 7 měsíci

    Best explanation. Thanks

  • @jallisaiteja4405
    @jallisaiteja4405 Před 7 měsíci

    mf who teh fuck put code at opening

  • @neerajchopra2758
    @neerajchopra2758 Před 7 měsíci

    samiksha agarwal i love u ❤

  • @VishalYadav-gk1kg
    @VishalYadav-gk1kg Před 8 měsíci

    Very Nice Explanation Sir, Thank you!

  • @anujpal574
    @anujpal574 Před 8 měsíci

    Nice explanation ,Thanks a lot

  • @halchal41
    @halchal41 Před 8 měsíci

    voice is low

  • @Gautamkumar-zb8sw
    @Gautamkumar-zb8sw Před 8 měsíci

    Nicely Explained 😊

  • @KishanSingh-vc3re
    @KishanSingh-vc3re Před 8 měsíci

    Earlier I liked your videos, but believe me these days it's not like it used to be

  • @user-ep6yr9ge1r
    @user-ep6yr9ge1r Před 8 měsíci

    mafhmt wlw😂

  • @PrashantKumar-fk8le
    @PrashantKumar-fk8le Před 8 měsíci

    Damn nice explanation

  • @Visha-avangers-123
    @Visha-avangers-123 Před 8 měsíci

    This explaination deserve more than this view and like. appreciate bhaiya. Bhaiya can you please tell me your insta or linkedin details.

  • @tanhnguyen2025
    @tanhnguyen2025 Před 8 měsíci

    wow how could u come up with that ingenious solution? If only i didn't think that the way to verify the next elements of the haystack string to match up with the rest of the needle when the first haystack char = that of needle was improbable . I should've pressed ahead with that way of thinking and trying to find ways to verify the match-up is valid instead of finding a new solution which eventually led me to this video because i was stuck.

  • @himanshujakhmola5960
    @himanshujakhmola5960 Před 8 měsíci

    bhai apna mic change krlee, blur blur sunayiii deta hai audio clear nhi hai.... or thoda slow bola kr bullet train bagadeta hai...bhai tu tohhh

  • @himanshujakhmola5960
    @himanshujakhmola5960 Před 8 měsíci

    bhai thoda slow pace me bola kr smj nhi aata take time and gap between you each word , its a dam 5min video not a 15 sec shots..

  • @user-gi4zl7uk4g
    @user-gi4zl7uk4g Před 8 měsíci

    Nice Explanation

  • @neerajchopra2758
    @neerajchopra2758 Před 8 měsíci

    Samiksha agarwal tum konse college me ho ?

  • @SubhadeepMourigamerz
    @SubhadeepMourigamerz Před 8 měsíci

    Maine 25 days pehle bagorder kiya tha , Abhi tak bag nhi aya...kya karu main ???

  • @ICECREAM-gb2xr
    @ICECREAM-gb2xr Před 8 měsíci

    Thanks I got all the think but traversing again for same freq values i was struggling in that thanx :)

  • @r.k.j4546
    @r.k.j4546 Před 8 měsíci

    you can' t use extra space

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

    nice

  • @user-ev7rp6mq4p
    @user-ev7rp6mq4p Před 9 měsíci

    woow ..amazing approch ..esy peasy ..thankyou so much for such an amazing explanation..keep uploading codefreaks😁😁😁

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

    gr8 work

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

    bhen ji comments bi padh lia karo

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

    Nice Explanation

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

    bhai ye kya quitiyapa krdia video me!! change back to og voice!

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

    male voice >>> female voice she try to talk in fake voice "Aaj ki jo ye problem h na "its really irritating voice please try to fix your voice

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

    kya bhaiya yeh ladki wale voice mai kyon bol rahe ho bahot irritating lg raha hai video

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

    Thanks bhaiya very clean explanation

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

    please apni voice par kaam karo "aaj ki jo ye problem h na" its really irritating voice please try to speak normally don't talk fake voice.

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

    this code leads to TLE