+ 6

☠☠Challenge☠☠ Find Greatest number from a window in array â›čShOw YoUr BeSt ApPrOaCh🏎

Explanation: suppose we have Integer Array give below. array size = 7 elements = 6 1 9 2 3 0 4 my window size is = 3 Q)what is window concept? A)it means that create a window of 3 number from array and find Largest no from it ex - 1st window - (6 1 9) and largest is 9 2nd window - (1 9 2) and largest is 9 3rd window - (9 2 3) and largest is 9 4th window - (2 3 0) and largest is 3 5th window - (3 0 4) and largest is 4 Any doubts mention in cmnts thnx:) https://code.sololearn.com/ck4bEzYBUKcu/?ref=app

22nd Oct 2017, 6:39 PM
Pranit Gandhi
Pranit Gandhi - avatar
8 Answers
+ 12
Here's my C# implementation! ✌ You may label your post with "challenge" or "challenges" tag to attract more submissions. 😉 https://code.sololearn.com/ctV9cdCcvM4P/?ref=app
23rd Oct 2017, 8:46 AM
Zephyr Koo
Zephyr Koo - avatar
+ 10
@Pranit Gandhi You may edit your question and add the keywords under "Relavant Tag" section. This allows the user to find your post easier by searching the keyword. 😉
23rd Oct 2017, 9:00 AM
Zephyr Koo
Zephyr Koo - avatar
+ 3
Here's mine. Check it pls. ✋👍 https://code.sololearn.com/cS9XMmCc0T6g/?ref=app
29th Oct 2017, 11:42 PM
Marfik Em
Marfik Em - avatar
+ 3
@Marfic best one
30th Oct 2017, 12:57 AM
Pranit Gandhi
Pranit Gandhi - avatar
+ 2
@Zephyr actually m new here to post the challenges can you tell me how to label it? is labelling means just put it in double quotes ( " " )?
23rd Oct 2017, 8:49 AM
Pranit Gandhi
Pranit Gandhi - avatar
23rd Oct 2017, 6:18 PM
Pranit Gandhi
Pranit Gandhi - avatar
+ 2
here is mine code I did it with hard coding .. https://code.sololearn.com/czRL2Z4SjJYb/?ref=app
27th Oct 2017, 2:50 PM
Akash Shah
Akash Shah - avatar
+ 2
@Akash fully different approach nice one
27th Oct 2017, 4:53 PM
Pranit Gandhi
Pranit Gandhi - avatar