- Видео 148
- Просмотров 109 102
Codenzyme
Индия
Добавлен 27 янв 2017
Welcome to Codenzyme - your hub for competitive programming, Python and JavaScript mastery, web development insights, and the wonders of physics and mathematics. 🚀 Join us to unlock coding excellence, build dynamic web solutions, and explore the beauty of numbers and physics.
3out1in Solution | Starters 134 Codechef | 2 Heaps Technique | Explanation + Intuition (C++)
Contest Link: www.codechef.com/START134
Problem Link: www.codechef.com/problems/OKLAMA
Problem Link: www.codechef.com/problems/OKLAMA
Просмотров: 986
Видео
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
please continue
everything's great but i'm not used to his indian accent so my eyes are a bit tired of reading the script 😎😎
thanks man
great explanation, continue please..................
how to find out the version of c++ , yours is 17 how can i know mine ??
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.
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
hi are u from iitg
@@vg5675 yes?
@@vg5675 yes ?
@@vg5675 yes?
@@vg5675 yes?
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
are you using macos?
@@diskritis2076 yes
@@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
@@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
@@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
thank u so much sir
very crisp thanks dear
very bad explanation
how gcd(x,y) = gcd(y, x-y)? please explain. shouldn't it be = gcd (x-y,y).
@@anonymous-sz8jq gcd(x,y)=gcd(y,x-y)=gcd(x-y,y) all are same
@@rishabhxchoudhary thankyou so much
Great approach
poor explanation
true
Thnks a lot it is working even in 2024
Explanation could have been better. Thanks though.
for linux user do sudo while precompilng the header file
your videos are great and please continue
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.
Thanks bhai, very helpful !!!
Why can't we store par of the node when we are updating the dp instead of storing the child
great explanation.
thanks bro I was finally able to sort the issue
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()
...
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
why did we take 2 graphs
pls check working of kosaraju's algorithm to find scc
Your videos are great and please continue posting such videos
thanks a lot it was the best setup
One question is it safe? Is there no risk of banning my Google Drive account?
nopes
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
thanks a lot
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
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
You earned my respect and an subscriber.
You solved my #include<bits/stdc++.h> error
Thanks for the great explanation in all your videos. They're really very helpful !!
Doesn't work
thanks
this is genius. induction proof was also awesome
got my back bro
Koi matlab hai .. Sala language badal badal ke core kar rha
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
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.
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
It's very helpful video and easy to do. The video covered all necessary things needed for C++. Thanks a lot buddy.
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 🙏
great explanation literally
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?
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
you need to set the arguments too like -std=c++17 -02
cant access to the usr/include/c++/v1 where i have to save the .h file
Check this video: ruclips.net/video/WopoCg91SiE/видео.html
TYSM bro! You're my life saver!
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
your explanation is great. Thanks .