We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 28: RegEx, Patterns, and Intro to Databases
Day 28: RegEx, Patterns, and Intro to Databases
Sort by
recency
|
649 Discussions
|
Please Login in order to post a comment
import java.io.; import java.util.; import java.util.regex.Pattern;
public class Solution {
fast python solution
c#
class Solution { public static void Main(string[] args) { int N = Convert.ToInt32(Console.ReadLine().Trim());
}
C#
using System.Text.RegularExpressions;
int N = int.Parse(Console.ReadLine()); List names = new List();
Regex gmailPattern = new Regex(@"@gmail.com$");
for (int i = 0; i < N; i++) { var parts = Console.ReadLine().Split(' '); string firstName = parts[0]; string emailID = parts[1];
}
foreach (var name in names.OrderBy(n => n)) Console.WriteLine(name);