#115
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- #GFG #POTD #geeksforgeeks #problemoftheday
In this video, I will be discussing Find duplicates in an array.
👉🏻 Learn about map/unordered_maps - th-cam.com/users/li...
If you are new to the channel, please like this video, comment, and subscribe ❤️
Important Links -
▶️ Telegram - t.me/placement...
▶️ Instagram - / placementsready
▶️ Twitter - / placementsr
▶️ LinkedIn - / placementsready
▶️ Github - github.com/Pla...
▶️ Problem Link - practice.geeks...
▶️ Solution Link C++ - ideone.com/DSjzYm
▶️ Solution Link JAVA - ideone.com/8XA88t
▶️ Solution Link Python - ideone.com/VotVUa
🔥 Connect here for 1:1 Personal Mentorship - topmate.io/avi...
find duplicates in an array
find duplicates in an array gfg
find duplicates in an array easiest explaination
find duplicates in an array c++
find duplicates in an array java
find duplicates in an array python
find duplicates in an array explaination
code for finding duplicates in an array
how to find duplicates in an array
find duplicates in an array programming interview question
C program for find duplicates in an array
find duplicates in an array leetcode
find duplicates in an array interviewbit solution c++
data structures and algorithms
find duplicates in an array Java
Java find duplicates in an array program
find duplicates in an array program in Java
find duplicates in an array gfg
find duplicates in an array gfg potd
find duplicates in an array gfg solution
find duplicates in an array gfg potd solution
find duplicates in an array gfg potd today solution
find duplicates in an array explain
find duplicates in an array solution c++
find duplicates in an array solution Java
find duplicates in an array solution python
replace o with x
replace O with X
find duplicates in an array solution Java gfg solution
find duplicates in an array solution C++ gfg problem solution
find duplicates in an array c++ code
find duplicates in an array java code
find duplicates in an array python code
find duplicates in an array c++ code
find duplicates in an array java code
find duplicates in an array python code
gfg find duplicates in an array c++
gfg find duplicates in an array java
gfg find duplicates in an array python
gfg find duplicates in an array problem
gfg potd find duplicates in an array
gfg potd find duplicates in an array c++ solution
gfg potd today find duplicates in an array
potd gfg find duplicates in an array
today gfg potd find duplicates in an array
GFG POTD 24/09/23
Google Coding Interview Questions and Answer
find duplicates in an Array leetcode
find duplicates in an Array problem
find duplicates in an Array java solution
find duplicates in an array brute force
find duplicates in an array dp solution
find duplicates in an array solution
Find Duplicates in an Array problem in python
find duplicates in an array gfg practice
find all duplicates in an array
duplicates in an array
find duplicate elements in array
find all duplicates in an array java
442. find all duplicates in an array
find all duplicates in an array python
find all duplicates in an array solution
find all duplicates in an array leetcode
array duplicates
find duplicate element in an array
find all duplicate elements in an array
find duplicate elements in an array in java
duplicate number in an immutable array
how to remove duplicates from an array
remove duplicates from array in javascript
remove duplicates from sorted array leetcode
find duplicate in an array
find all duplicates in an array c++
find all duplicates in an array java
find all duplicates in an array hindi
how to solve gfg potd
how to solve today's gfg potd
solve gfg potd
gfg potd
gfg potd today solution
potd gfg
today gfg potd solution
problem of the day
gfg problem of the day
gfg potd today
gfg potd today solution
problem of the day gfg
problem of the day solution
geeksforgeeks practice
problem of the day gfg solution
geeksforgeeks potd
gfg practice problem
problem of the day
gfg problem of the day
leetcode problem of the day
daily problem
count the number of full binary trees
problem-solving classes
problem of the day gfg
gfg problem of days
practice coding problems
distinct number of balls in every bucket
leetcode September challenge
gfg problem
leetcode problem
leetcode problems
leetcode practice problem
how to solve the problem of the day geeks for geeks
geeksforgeeks
Problem Statement -
Given an array a of size N which contains elements from 0 to N-1, you need to find all the elements occurring more than once in the given array. Return the answer in ascending order. If no such element is found, return list containing [-1].
Expected Time Complexity: O(N)
Expected Auxiliary Space: O(N)
Connect with me :
LinkedIn - / avinashkumarmallik
But in the problem statement it is given that you extra space is only for the answer vector, do all the manipulations in the given array only. They are expecting O(1) space.
You can do some array manipulations to get this done. I completely missed that part and while explaination also, i didn't see that note. Apologies for that
Is it also done in O(1) space ???
No we are using Freq array which is o(n)
Tysm i did it own and will start from will do continue from today
Great ujjwal