D-368 Minimum distance between two numbers[3methods] |GFG POTD| GeeksForGeeks Problem Of the Day
Вставка
- Опубліковано 29 вер 2024
- Prerequisite:
Time Complexity - Logic of 10^8- Find algo to any problem
• Trick the TLE | How t...
USE Code "AKSHAYS10" to avail10% off on all GFG courses:
Problem Link: www.geeksforge...
Source Code JAVA/C++ : github.com/Aks...
Methods -
1. TC: O(N), SC: O(N) - Map
2. TC: O(N), SC: O(1) - Inplace
GFG POTD Playlist - • DAY 1 | Filling Bucket...
Number Theory playlist - • 204. Count Primes - (A...
Arrays - • Reverse a String | Ep-01
LinkedList - • Reverse a Linked List ...
Strings - • Day 300 - Multiply two...
Bitwise - • Non Repeating Numbers|...
Stacks - • DAY - 280 Reverse a St...
Heaps - • How to Build Heap and ...
Recursion - • Lec-1 What is Recursio...
Map - • Non Repeating Characte...
Graphs Playlist Link - • Course Schedule II (To...
Binary Trees Playlist - • What is a Binary Tree ?
DP playlist - • What is Dynamic Progra...
GitHub: github.com/Aks...
Hello everyone, I am Akshay and I appreciate you stopping by my channel. I have made this channel to help all ready to learn, grow, and do something big in the field of Tech.
It's a free UA-cam channel dedicated to students developing problem-solving skills.
Let's connect on
Instagram
/ itzz_aksh_yay
/ dsa_with_akshay
LinkedIn
/ akshay-a-26672a172
Lets connect: Linktree: linktr.ee/aksh...
Happy Coding 🤝
.
.
.
.
#AkshayAnil #dsa #dsa_with_akshay #programming #gfg #gfgpotd #problemsolving #coding #softwareengineer #faang #amazon #microsoft #competitiveprogramming #dsasheet #interviewpreparation
Bhai I am unable to understand the logic of line 39 at time 4:00
like what is ans ? could you please explain me again?
That's an inline if to handle -1 case