Click here to Skip to main content
15,897,273 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralMessage Closed Pin
8-Aug-16 18:10
virang_218-Aug-16 18:10 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Peter_in_27808-Aug-16 18:39
professionalPeter_in_27808-Aug-16 18:39 
GeneralRe: Check two strings contains same characters but can be in different order Pin
virang_218-Aug-16 18:45
virang_218-Aug-16 18:45 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Peter_in_27808-Aug-16 18:48
professionalPeter_in_27808-Aug-16 18:48 
GeneralRe: Check two strings contains same characters but can be in different order Pin
virang_218-Aug-16 18:55
virang_218-Aug-16 18:55 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Peter_in_27808-Aug-16 18:57
professionalPeter_in_27808-Aug-16 18:57 
GeneralRe: Check two strings contains same characters but can be in different order Pin
virang_218-Aug-16 18:59
virang_218-Aug-16 18:59 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Ravichanadeepakarandescarar8-Aug-16 18:43
Ravichanadeepakarandescarar8-Aug-16 18:43 
string str1 = "aac";
string str2 = "caa";

bool match = false;

try
{
foreach (char c in str1) str2 = str2.RemoveAt(str2.FirstIndexOf(c));
match = (str2 == "");
}
catch
{

}

COnsole.WriteLine(match.ToString());
GeneralRe: Check two strings contains same characters but can be in different order Pin
Ravichanadeepakarandescarar8-Aug-16 18:53
Ravichanadeepakarandescarar8-Aug-16 18:53 
GeneralRe: Check two strings contains same characters but can be in different order Pin
User 592418-Aug-16 18:56
User 592418-Aug-16 18:56 
GeneralRe: Check two strings contains same characters but can be in different order Pin
BillWoodruff8-Aug-16 20:11
professionalBillWoodruff8-Aug-16 20:11 
GeneralRe: Check two strings contains same characters but can be in different order Pin
BillWoodruff8-Aug-16 20:16
professionalBillWoodruff8-Aug-16 20:16 
GeneralRe: Check two strings contains same characters but can be in different order Pin
User 592418-Aug-16 20:27
User 592418-Aug-16 20:27 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Mycroft Holmes9-Aug-16 14:39
professionalMycroft Holmes9-Aug-16 14:39 
GeneralRe: Check two strings contains same characters but can be in different order Pin
BillWoodruff8-Aug-16 19:48
professionalBillWoodruff8-Aug-16 19:48 
JokeRe: Check two strings contains same characters but can be in different order Pin
Johnny J.8-Aug-16 20:35
professionalJohnny J.8-Aug-16 20:35 
GeneralRe: Check two strings contains same characters but can be in different order Pin
CDP18028-Aug-16 21:31
CDP18028-Aug-16 21:31 
GeneralRe: Check two strings contains same characters but can be in different order Pin
OriginalGriff8-Aug-16 21:47
mveOriginalGriff8-Aug-16 21:47 
GeneralRe: Check two strings contains same characters but can be in different order Pin
CDP18028-Aug-16 22:00
CDP18028-Aug-16 22:00 
GeneralRe: Check two strings contains same characters but can be in different order Pin
OriginalGriff8-Aug-16 22:13
mveOriginalGriff8-Aug-16 22:13 
GeneralRe: Check two strings contains same characters but can be in different order Pin
CDP18028-Aug-16 22:20
CDP18028-Aug-16 22:20 
GeneralRe: Check two strings contains same characters but can be in different order Pin
OriginalGriff8-Aug-16 22:38
mveOriginalGriff8-Aug-16 22:38 
GeneralRe: Check two strings contains same characters but can be in different order Pin
BillWoodruff9-Aug-16 17:50
professionalBillWoodruff9-Aug-16 17:50 
GeneralRe: Check two strings contains same characters but can be in different order Pin
Johnny J.9-Aug-16 20:25
professionalJohnny J.9-Aug-16 20:25 
QuestionRe: Check two strings contains same characters but can be in different order Pin
Nish Nishant9-Aug-16 3:17
sitebuilderNish Nishant9-Aug-16 3:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   27 votes