Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Sort Array By Parity

public class Solution 
{
    public int[] SortArrayByParity(int[] nums) =>nums.Select(x => x).Where(x=>x%2==0).Concat(nums.Select(x => x).Where(x=>x%2!=0)).ToArray();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity editor dropdown 
Csharp :: gameobject in unity c# 
Csharp :: c# switch unity 
Csharp :: unity pick random number 
Csharp :: c# console header 
Csharp :: vscode not showing errors c# 
Csharp :: unity how to move an object 
Csharp :: c# unity 
Csharp :: how to check if file contains image c# 
Csharp :: ngrok for https 
Csharp :: char contains c# 
Csharp :: c# dictionary get value by key 
Csharp :: gameobject on click unity 
Csharp :: how to check datagridview cell is null or empty 
Csharp :: unity call function on animation finish 
Csharp :: how to add item in list at first position c# 
Csharp :: c# regex match 
Csharp :: c# iterate enum 
Csharp :: c# string code ascii 
Csharp :: roman to 
Csharp :: remove items from one list in another c# 
Csharp :: change color of object unity 
Csharp :: c# ienumerable to list 
Csharp :: round decimal two places 
Csharp :: how to disable vsync in monogame 
Csharp :: c# webclient post file 
Csharp :: constructor c# 
Csharp :: c# get battery level 
Csharp :: print an array in c# 
Csharp :: linq query get last day of month 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =