Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
to find all substring
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { { static void Main() { string value = "rstuvwxyz"; // Avoid full length. for (int length = 1; length < value.Length; length++) { // End index is tricky. for (int start = 0; start <= value.Length - length; start++) { string substring = value.Substring(start, length); Console.WriteLine(substring); } } } } }
run
|
edit
|
history
|
help
0
aa
Palindrome Number
Intuit // C# // listing_4.4 (StreamReader // output.txt + Convert/Parse)
olution to problem #2 from projecteuler.net
Longest Substring Without Repeating Characters
XML filtering example
Insert m into n
insertion sort
IotaSeedGenerator
SMS filter config Captures and Groups