User profile: Duthomhas

User info
User name:Duthomhas
Old user name:Duoas
Name:Michael Thomas Greer
Location:Spanish Fork, UT
Website:http://(none ATM, alas)
Bio:Self-taught computer programming since I was a young boy.

I studied at Rutgers University, majoring in Computer Science and Mathematics.

I've had all kinds of random jobs, from gas station attendant/assistant manager to software consultant to cook to substitute teacher.

Hablo / escribo / leo español.

I like being outdoors, camping, canoeing, field archery -- alas for time!

I married my best friend. She's not girly at all, but our daughter is decidedly girly enough for both of them. (She wants to be a princess. She's only two!)

Random threads I like:
http://www.cplusplus.com/forum/lounge/1953/
http://www.cplusplus.com/forum/beginner/2287/
http://www.cplusplus.com/forum/beginner/28855/

And, of course, I have to plug my current work:
http://www.cplusplus.com/faq/
Statistical data
Birthdate:Apr 28, 1974
Gender:Male
Occupation:Other
Skills:C
BASIC
C++
Visual Basic
Pascal
Delphi
Assembly
Java
Javascript
Python
Tcl/Tk
Haskell
Scheme
History
Joined:
Number of posts:11808
Latest posts:

Can anybody suggest the solution in O(n)?
Convert S→T implies T is not mutable. Basic text search algorithm.

Do I need to use double parenthesis within if statements?
+1 I [i]always[/i] use parentheses to make my intent clear, and to avoid the aforementioned pernici...

Can anybody suggest the solution in O(n)?
[output] aaxaabc ↕yes, n=0, k=0 aabcaax aaxaabc ↕yes, n=0, k=1 aabcaax aaxaabc ↕no, n=0, ...

MACROS overload
[quote=alexblade]It's interesting, but I didn't see less then 4 rows macros overload ??[/quote] Mayb...

MACROS overload
Heh, Sorry I’m late to this discussion. It is easily possible. It is messy, though. Here’s an ...