SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
47 stars 98 forks source link

Largest Number At Least Twice of Others #322

Closed nik132-eng closed 3 years ago

nik132-eng commented 3 years ago

Enter your question -

You are given an integer array nums where the largest integer is unique.

Determine whether the largest element in the array is at least twice as much as every other number in the array. If it is, return the index of the largest element, or return -1 otherwise.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/largest-number-at-least-twice-of-others/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Array

nik132-eng commented 3 years ago

can you please assign it to me?

SarthakKeshari commented 3 years ago

@nik132-eng, Kindly add your solution to "leetcode" folder Deadline - 08/10/2021

This Issue will only be counted towards ranking criteria of this repository.

Gentle advice for futher Issues - Medium and hard level questions will be given preference for Hacktoberfest tag.