Click here to Skip to main content
15,895,370 members

Comments by Ryder24 (Top 10 by date)

Ryder24 9-Mar-15 4:38am View    
@chill60: ya u right. Iam little bit confused so only posted in code project to seek expert opinion. Role mainly will be vary depend upon compny bcaz in bank like (RBS,BOA) podition will be like Tech analyst , business tech analyst instead of Software dev.
Ryder24 24-Aug-14 3:10am View    
@OriginalGriff: thanks lot bro. after 2 min of google search. I did program myself and got correct ans.


class Program
{
static void Main(string[] args)
{
StringBuilder sb = new StringBuilder();
string Input = "aaabbcdddd";

int count = 1;

char Current = Input[0];

for (int i = 1; i < Input.Length; i++)
{
if (Current == Input[i])
{
count++;
}
else
{
sb.AppendFormat("{0}{1}",Current,count);
count = 1;
Current = Input[i];
}
}

sb.AppendFormat("{0}{1}", Current, count);


Console.WriteLine(sb.ToString());

Console.ReadLine();


}
}

Thanks lot. :)
Ryder24 24-Aug-14 2:19am View    
Deleted
@Sergey: yes dude. i know. but this question asked in interview. i executed using linq but interviewer asked to write using loop. i had no idea how to do it. so posted here.
Ryder24 4-Jun-14 9:12am View    
j snooze. yup u right. I added ~/bundles/AppCustom.
Ryder24 22-Jul-13 14:24pm View    
@Jameel M. ya u ryt.. i used Html.DisplayFor() problem solved. thanks lot dude