cs: add «3151. Special Array I»

URL:	https://leetcode.com/problems/special-array-i/
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2025-02-01 12:38:52 +01:00
parent 1a3709064d
commit 1e2d16c0d5
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8

4
cs/special-array-i.cs Normal file
View file

@ -0,0 +1,4 @@
public class Solution {
public bool IsArraySpecial(int[] nums)
=> nums.Zip(nums.Skip(1)).All(p => (p.First & 1) != (p.Second & 1));
}