Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Beautiful Array (LeetCode) #2282

Open Karnika06 opened 3 years ago

Karnika06 commented 3 years ago

Details

An array nums of length n is beautiful if:

Given the integer n, return any beautiful array nums of length n. There will be at least one valid answer for the given n.

Link to the problem: https://leetcode.com/problems/beautiful-array/

Example 1:

Input: n = 4 Output: [2,1,4,3]

This problem is from Leetcode. I would like to solve this problem in Java language. Please assign this problem to me under LGMSoC'21.

Karnika06 commented 3 years ago

Please assign this issue to me under LGM-SoC'21 @ravikr126 @sameeksharl @Amit366 @Ayush7614

suy1968 commented 3 years ago

Please Assign me as I am a participant of LGMSOC'21 @Ayush7614 I used Python3