Codenzyme
Codenzyme
  • Видео 148
  • Просмотров 109 102

Видео

Codechef Starters 133 Division 2 Analysis | A B C D E Solutions with Live Coding (C++)
Просмотров 3055 месяцев назад
Contest Link: www.codechef.com/START133 Time Codes: 0:00 - Intro 0:40 - Maximum Alternating Sum 4:35 - Powered Parameters 11:57 - ABC Conjecture 3 20:55 - Too Far For Comfort (Easy Version) 41:09 - Too Far For Comfort 1:11:33 - Outro
Leetcode Weekly Contest 392 Analysis | A B C D Solution
Просмотров 1486 месяцев назад
Time Codes: 0:00 - Intro 0:40 - Longest Strictly Increasing or Strictly Decreasing Subarray 5:24 - Minimum Operations to Make Median of Array Equal to K 14:33 - Minimum Cost Walk in Weighted Graph 25:17 - Lexicographically Smallest String After Operations With Constraint 31:24 - Outro
Leetcode Weekly Contest 391 Screencast | A B C D Solution
Просмотров 1076 месяцев назад
Time Codes: 0:00 - Intro 0:28 - Harshad Number 1:33 - Water Bottles II 3:54 - Count Alternating Subarrays 7:03 - Minimize Manhattan Distances 18:53 - Outro
Leetcode Biweekly Contest 127 Screencast Live Solving | A B C D Solutions
Просмотров 2066 месяцев назад
Edit: I added memo.reserve(n*n*n*n); vis.reserve(n*n*n*n); in D problem and it passed. Time Codes: 0:00 - Intro 0:27 - Shortest Subarray With OR at Least K I & II 13:48 - Minimum Levels to Gain More Points 27:03 - Find the Sum of Subsequence Powers 43:27 - Trying to memoize the solution 45:35 - Coordinate Compression approach 1:04:09 - Using map directly 1:07:23 - Hashing 1:18:17 - Outro, AC Co...
Array Operations Solution | Starters 127 | Binary Search on Answer | Explanation + Live Coding (C++)
Просмотров 1627 месяцев назад
Contest Link: www.codechef.com/START127
ABC Conjecture Solution | Starters 127 | Explanation + Live Coding (C++)
Просмотров 4617 месяцев назад
Contest Link: www.codechef.com/START127
Superincreasing Solution | Starters 127 | Explanation + Live Coding (C++)
Просмотров 1057 месяцев назад
Contest Link: www.codechef.com/START127
Anti-Triangle Solution | Starters 127 | Explanation + Live Coding (C++)
Просмотров 3507 месяцев назад
Contest Link: www.codechef.com/START127
Leetcode Weekly Contest 390 Live Solving | A B C D Solutions
Просмотров 1467 месяцев назад
Contest Link: leetcode.com/contest/weekly-contest-390/ Time Codes: 0:00 - Intro 0:24 - Maximum Length Substring With Two Occurrences 4:30 - Apply Operations to Make Sum of Array Greater Than or Equal to k 12:28 - Most Frequent IDs 25:58 - Longest Common Suffix Queries 38:08 - Outro
Codechef Starters 125 Solutions
Просмотров 2147 месяцев назад
0:00 - Intro 1:10 - Overspeeding 3:08 - 50-50 Rule 5:42 - Fake Certificate 8:21 - Binary Minimal 15:57 - Bucket Game 39:25 - Operating on A 1:00:29 - Manhattan Xor 1:08:27 - Outro
D. Rudolf and the Ball Game | Codeforces Round 933 | Explanation + Code (C++)
Просмотров 5917 месяцев назад
Probelm Link: codeforces.com/contest/1941/problem/B Time Codes:
B. Informatics in MAC | Codeforces Round 932 | Simplest Explanation + Code (Python)
Просмотров 1,1 тыс.7 месяцев назад
B. Informatics in MAC | Codeforces Round 932 | Simplest Explanation Code (Python)
19. Eulerian Paths & Cycles | Hierholzer's Algorithm | Graph Algorithm For CP | CSES Mail Delivery
Просмотров 9907 месяцев назад
19. Eulerian Paths & Cycles | Hierholzer's Algorithm | Graph Algorithm For CP | CSES Mail Delivery
18. 2-SAT using Strongly Connected Components | Graph Algorithm For CP | CSES Giant Pizza
Просмотров 1 тыс.7 месяцев назад
18. 2-SAT using Strongly Connected Components | Graph Algorithm For CP | CSES Giant Pizza
17. Problem on Strongly Connected Components | Graph Algorithm For CP | CSES Planets and Kingdoms
Просмотров 3257 месяцев назад
17. Problem on Strongly Connected Components | Graph Algorithm For CP | CSES Planets and Kingdoms
16. Strongly Connected Components | Kosaraju Alg | Graph Algorithm For CP | CSES Flight Routes Check
Просмотров 6657 месяцев назад
16. Strongly Connected Components | Kosaraju Alg | Graph Algorithm For CP | CSES Flight Routes Check
How I set up my Sublime Text for Competitive Coding| Add time to snippets | Precompile bits/stdc++.h
Просмотров 3,6 тыс.8 месяцев назад
How I set up my Sublime Text for Competitive Coding| Add time to snippets | Precompile bits/stdc .h
15. Problem on Spanning Trees | Graph Algorithm For CP | CSES Road Construction
Просмотров 2028 месяцев назад
15. Problem on Spanning Trees | Graph Algorithm For CP | CSES Road Construction
14. Minimum Spanning Trees | Graph Algorithm For CP | CSES Road Reparation
Просмотров 2388 месяцев назад
14. Minimum Spanning Trees | Graph Algorithm For CP | CSES Road Reparation
C. Sasha and the Casino | Codeforces Round 926 | Simplest Explanation + Live Coding (Python)
Просмотров 3,6 тыс.8 месяцев назад
C. Sasha and the Casino | Codeforces Round 926 | Simplest Explanation Live Coding (Python)
13. Problem on Topo Sort | Graph Algorithm For CP | F.Chat Screenshots | Codeforces Round 925(Div3)
Просмотров 1738 месяцев назад
13. Problem on Topo Sort | Graph Algorithm For CP | F.Chat Screenshots | Codeforces Round 925(Div3)
Split And Maximize Solution | Starters 121 | Explanation + Live Coding (C++)
Просмотров 5098 месяцев назад
Split And Maximize Solution | Starters 121 | Explanation Live Coding (C )
12. Disjoint Set Union | Path Compression & Union by Rank | Graph Algorithm For CP |
Просмотров 2088 месяцев назад
12. Disjoint Set Union | Path Compression & Union by Rank | Graph Algorithm For CP |
Caesar Cipher Lite Solution | Starters 121 | Explanation + Code
Просмотров 2388 месяцев назад
Caesar Cipher Lite Solution | Starters 121 | Explanation Code
Anti Adjacent Swaps Solution | Starters 121 | Explanation + Code
Просмотров 2568 месяцев назад
Anti Adjacent Swaps Solution | Starters 121 | Explanation Code
Frequal problem Solution | Starters 121 | Explanation + Code
Просмотров 1348 месяцев назад
Frequal problem Solution | Starters 121 | Explanation Code
11. Binary Lifting | Graph Algorithm For CP | CSES Planets Queries I
Просмотров 1,8 тыс.8 месяцев назад
11. Binary Lifting | Graph Algorithm For CP | CSES Planets Queries I
10. DP on Graphs Problem 2 | Graph Algorithm For CP | CSES Game Routes
Просмотров 4988 месяцев назад
10. DP on Graphs Problem 2 | Graph Algorithm For CP | CSES Game Routes
9. DP on Graphs Problem 1 | Graph Algorithm For CP | CSES Longest Flight Routes
Просмотров 9638 месяцев назад
9. DP on Graphs Problem 1 | Graph Algorithm For CP | CSES Longest Flight Routes

Комментарии

  • @kaustubhgaikwad2562
    @kaustubhgaikwad2562 5 дней назад

    please continue

  • @minhnguyen-ky4zu
    @minhnguyen-ky4zu 7 дней назад

    everything's great but i'm not used to his indian accent so my eyes are a bit tired of reading the script 😎😎

  • @arujgarg7267
    @arujgarg7267 17 дней назад

    thanks man

  • @Gauav80913
    @Gauav80913 20 дней назад

    great explanation, continue please..................

  • @HoneyWell-b6y
    @HoneyWell-b6y 22 дня назад

    how to find out the version of c++ , yours is 17 how can i know mine ??

  • @aneeshmammen8581
    @aneeshmammen8581 23 дня назад

    Sometimes it downloads a 2kb file and sometimes it uploads the whole thing to my drive from my link, it like works 50% of the time.

  • @vaibhavsingh8933
    @vaibhavsingh8933 27 дней назад

    i changed my compile and lint_compile cmd to g++-14 but on pressing control + b it says g++-14 command not found, even though on compiling it myself on terminal by using g++-14 the program runs perfectly fine

  • @vaibhavsingh8933
    @vaibhavsingh8933 29 дней назад

    idk how but out of nowhere this error popped up in my vscode, it underlines the template tree part and says tree is not a template, cph compiles the code and gives outputs, same for coderunner but it still shows the error

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

      are you using macos?

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

      @@diskritis2076 yes

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

      @@vaibhavsingh8933 if you updated to macos 15 and then this occurred then I think it's because of the update itself. I changed my compiler to g++-14 and my problem was solved

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

      @@diskritis2076 i did that as well, the error with the include folders disappeared but a new error popped up on the tree template that teee is not a template

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

      @@vaibhavsingh8933 watch utkarsh gupta's video where he is talking about his competitive programming setup with sublime. in that video he used his new mac and installed gcc and made default compiler path as gcc. i think this will solve your problem

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

    thank u so much sir

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

    very crisp thanks dear

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

    very bad explanation

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

    how gcd(x,y) = gcd(y, x-y)? please explain. shouldn't it be = gcd (x-y,y).

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

      @@anonymous-sz8jq gcd(x,y)=gcd(y,x-y)=gcd(x-y,y) all are same

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

      @@rishabhxchoudhary thankyou so much

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

    Great approach

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

    poor explanation

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

    Thnks a lot it is working even in 2024

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

    Explanation could have been better. Thanks though.

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

    for linux user do sudo while precompilng the header file

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

    your videos are great and please continue

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

      Thank you very much. I don't have time to make consistent videos because of my job but you can tell me the topics in the comments which topics you want videos on.

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

    Thanks bhai, very helpful !!!

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

    Why can't we store par of the node when we are updating the dp instead of storing the child

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

    great explanation.

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

    thanks bro I was finally able to sort the issue

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

    if you need to only download the image set for reinforcement learning process: import os import requests from bs4 import BeautifulSoup import urllib.parse import threading import re DIR = ''you_file_location" def sanitize_filename(name): # Remove invalid characters return re.sub(r'[<>:"/\\|?*]', '', name) def page_links(url) -> list: try: r = requests.get(url) r.raise_for_status() soup = BeautifulSoup(r.content, 'html.parser') div = soup.find("div", {'class': 'container-chapter-reader'}) imgs = div.find_all('img') page_urls = [img['src'] for img in imgs] return page_urls except requests.exceptions.RequestException as err: print(f"An error occurred: {err}") return [] def download_image(name, url): def download(name, url): domain = urllib.parse.urlparse(url).netloc HEADERS = { 'Accept': 'image/png,image/svg+xml,image/*;q=0.8,video/*;q=0.8,*/*;q=0.5', 'Accept-Encoding': 'gzip, deflate, br', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Host': domain, 'Accept-Language': 'en-US,en;q=0.9', 'Referer': 'manganelo.com/', 'Connection': 'keep-alive' } try: r = requests.get(url, headers=HEADERS) r.raise_for_status() with open(name, 'wb') as f: f.write(r.content) print(f"Downloaded {name} from {url}") except requests.exceptions.RequestException as err: print(f"Failed to download {name} from {url}: {err}") # Download image using threading t = threading.Thread(target=download, args=(name, url)) t.start() t.join() def download_manga(name, url): print(f"Downloading {name} from {url}") pages = page_links(url) num = len(pages) print(f"Downloading {num} pages") sanitized_name = sanitize_filename(name) path = os.path.join(DIR, sanitized_name) if not os.path.exists(path): os.makedirs(path) for i, page_url in enumerate(pages, 1): image_name = os.path.join(path, f"page_{i}.jpg") download_image(image_name, page_url) def chapter_links(URL) -> dict: try: r = requests.get(URL) r.raise_for_status() soup = BeautifulSoup(r.content, 'html.parser') chapters = soup.find_all("a", {"class": "chapter-name text-nowrap"}) links = {sanitize_filename(chapter.text.strip()): chapter['href'] for chapter in chapters} return links except requests.exceptions.RequestException as err: print(f"An error occurred: {err}") return {} def main(): URL = input('Enter the URL of the manga: ') print('URL:', URL) chapters = chapter_links(URL) if not chapters: print("No chapters found.") return print(chapters) for chapter_name, chapter_url in chapters.items(): print(f"{chapter_name}: {chapter_url}") download_manga(chapter_name, chapter_url) if __name__ == "__main__": main()

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

    ...

  • @aniketchatterjee2456
    @aniketchatterjee2456 3 месяца назад

    Hey, I don't know if you will see this or not, I did all the things same as your code. The images are being downloaded. but the conversions to pdf stops at 1.pdf. Thank you in advance

  • @MayankJaiswal-x7l
    @MayankJaiswal-x7l 3 месяца назад

    why did we take 2 graphs

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

      pls check working of kosaraju's algorithm to find scc

  • @abhineetsingh6637
    @abhineetsingh6637 3 месяца назад

    Your videos are great and please continue posting such videos

  • @pradyumansinghshekhawat7364
    @pradyumansinghshekhawat7364 3 месяца назад

    thanks a lot it was the best setup

  • @vagnerdasilva1652
    @vagnerdasilva1652 3 месяца назад

    One question is it safe? Is there no risk of banning my Google Drive account?

    • @rishabhxchoudhary
      @rishabhxchoudhary 3 месяца назад

      nopes

    • @vagnerdasilva1652
      @vagnerdasilva1652 3 месяца назад

      Another question, if I do this method safely, won't it be possible to ban the Google Drive account? ruclips.net/video/GjtKA6vscuI/видео.htmlsi=CvyzeSWNa1i3Fkdm

  • @pradyumansinghshekhawat7364
    @pradyumansinghshekhawat7364 3 месяца назад

    thanks a lot

  • @sakshamgupta3950
    @sakshamgupta3950 3 месяца назад

    Amazing explanation. by the way, why did we traverse from 1 to m and comparing set bit of int k. log2(k) can be greater than log2(n) +1

    • @khanakpatwari2587
      @khanakpatwari2587 15 дней назад

      I am not sure but I think that's because after than any set bit just contributes as an even multiple of 2^m which will keep the whole answer same as before

  • @shaikarshadsa2560
    @shaikarshadsa2560 3 месяца назад

    You earned my respect and an subscriber.

  • @Algorithmswithsubham
    @Algorithmswithsubham 3 месяца назад

    You solved my #include<bits/stdc++.h> error

  • @shivammittal2709
    @shivammittal2709 3 месяца назад

    Thanks for the great explanation in all your videos. They're really very helpful !!

  • @promemer666
    @promemer666 3 месяца назад

    Doesn't work

  • @tanishgotti3659
    @tanishgotti3659 3 месяца назад

    thanks

  • @SameerAnand-YearBTechElectrica
    @SameerAnand-YearBTechElectrica 3 месяца назад

    this is genius. induction proof was also awesome

  • @adityadwivedi1135
    @adityadwivedi1135 3 месяца назад

    got my back bro

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

    Koi matlab hai .. Sala language badal badal ke core kar rha

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

    i am able to use pbds but the include part still has the error of please update your include path, it shows error on include line but on using pbds the code runs perfectly

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

      try changing the g++ version. new version if g++-14. also the file path may change.. locate it on ur mac in finder and enter it.

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

    why isn't the longest increasing subsequence for the given example 3,5,6,8,9 ? That will make the answer 5 instead of 4

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

    It's very helpful video and easy to do. The video covered all necessary things needed for C++. Thanks a lot buddy.

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

    Hello sir, i have doing dsa in java for about 7 months, i have been trying to do cp in java but bohot problem ho rahi hai sir toh please can you tell how can i improve my implementation in cp in java bcoz there are not many resources for java . Please sir, i will be really thankful for your help 🙏

  • @ShubhangiRaj-m6t
    @ShubhangiRaj-m6t 4 месяца назад

    great explanation literally

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

    thank you so much bro finally working in VS code is there any build system code you have that I can use for sublime text?

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

    Errors while compiling: spawn g++-14 ENOENT Hint: Is the compiler g++-14 installed? Check the compiler command in cph settings for the current language.getting this error int the end .pls help

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

      you need to set the arguments too like -std=c++17 -02

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

    cant access to the usr/include/c++/v1 where i have to save the .h file

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

      Check this video: ruclips.net/video/WopoCg91SiE/видео.html

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

    TYSM bro! You're my life saver!

  • @Manu-wb2uv
    @Manu-wb2uv 4 месяца назад

    I don't understand how from t2 > t1/(k-1) you got to: t2 = t1(k-1)+1 Oooh interesting, I think I understand, cause the value has to be minimum

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

    your explanation is great. Thanks .