using System.Collections.Generic;
using EzPasswordValidator.Validators;
using EzPasswordValidator.Checks;
public static void Main()
Console.WriteLine(hasSubsequences(list.ToArray()));
private static bool hasSubsequences(int[] vals)
var passwordValidator = new PasswordValidator(CheckTypes.DigitRepetition)
DigitRepetitionLength = 2
List<int> differences = new List<int>();
for (int i = 0; i < vals.Length - 1; i++)
differences.Add(findDifference(vals[i + 1], vals[i]));
return !passwordValidator.Validate(string.Join<int>(",", differences));
private static int findDifference(int nr1, int nr2)