Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Find if the given word occurs in the string necessarily in that order.
//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) { //Your code goes here Console.WriteLine("Hello, world!"); string s ="vvhfjaiakgfas"; string n ="vikas"; int j =0; for(int i =0;i<s.Length;i++) { if(s[i] == n[j] && j < n.Length) { j++; } } if(j == n.Length) { Console.WriteLine(true); } } } }
run
|
edit
|
history
|
help
0
Contraseña final
ProWIN2
ew
Jump Search
Fortnite Generator
Queue with Queue Data type
Main 5.6
Number loop
biswa
Math 10.94 test