Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: mat65

## Search: Search took 0.00 seconds.

by mat65
Replies
3
Views
848

### Re: Strings

it is not an assignment but a trial to teach myself java.
I found this question but didn't find the answer.. I know how to find the longest substring if it starts at the end of x2 using indexOf and...

by mat65
Replies
3
Views
848

### Strings

x1, x2 are two strings. you should find what is the length of the largest substring of x2 containing only letters from x1. For example: if x1="abc" and x2="cvbaacdab" the answer will be 4 because...

by mat65
Replies
0
Views
1,744

### comparing strings

x1, x2 are two strings. you should find what is the length of the largest substring of x2 containing only letters from x1. For example: if x1="abc" and x2="cvbaacdab" the answer will be 4 because...
4. ## Thread: minimal distance between numbers in one dimentional array

by mat65
Replies
3
Views
2,459

### Re: minimal distance between numbers in one dimentional array

does it work anyway or it depends if the numbers are positive or negative?
can you describe the algo? thanks
5. ## Thread: minimal distance between numbers in one dimentional array

by mat65
Replies
3
Views
2,459

### minimal distance between numbers in one dimentional array

I there an O(n) algorithm for finding minimal distance between numbers in an one dimensional array? Does it matter if all the numbers are positive or negative? The array is not sorted
Results 1 to 5 of 5