-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJARVISPatternRecognition.cs
43 lines (39 loc) · 1.13 KB
/
JARVISPatternRecognition.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JARVIS4
{
/// <summary>
/// This class will handle all forms of pattern recognition
/// </summary>
public class JARVISPatternRecognition
{
public JARVISPatternRecognition()
{
}
public List<string> ListCommonPatterns(string input_1, string input_2)
{
List<string> returned_list = new List<string>();
try
{
if (input_1.Length >= input_2.Length) // Always compare the shorter string against the longer string
{
char[] common_substring = new char[input_1.Length];
for (int i = 0; i < input_1.Length; i++)
{
}
}
else if(input_1.Length < input_2.Length)
{
}
}
catch (Exception ex)
{
returned_list.Add(ex.ToString());
}
return returned_list;
}
}
}