dikshantrajput / Hacktoberfest-accepted-2022

This repository is for everyone who wants to participate in Hacktoberfest 2022. Anyone can contribute/add quality code or projects for your Swags (T- Shirt), must be relevant that can add some value to this repository
114 stars 458 forks source link

Add find the duplicate number #614

Open rupal11 opened 1 year ago

rupal11 commented 1 year ago

Find the Duplicate Number

Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated number in nums, return this repeated number.

link: https://leetcode.com/problems/find-the-duplicate-number/