Cracking the Coding Interview---5th

Thursday, August 29, 2013

1.2 ---- using C, reverse a null-terminated string

Q:
Implement a function void reverse(char* str) in C or C++ which reverses a null-
terminated string.
A:


Posted by Tiger at 4:50 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2014 (7)
    • ►  10/12 - 10/19 (2)
    • ►  10/05 - 10/12 (4)
    • ►  03/02 - 03/09 (1)
  • ▼  2013 (26)
    • ►  12/01 - 12/08 (1)
    • ►  09/22 - 09/29 (4)
    • ►  09/15 - 09/22 (1)
    • ►  09/08 - 09/15 (1)
    • ►  09/01 - 09/08 (14)
    • ▼  08/25 - 09/01 (5)
      • 1.5 ------------------- string compress
      • 1.4-------Replace space in char[]
      • 1.3------- check if one string is the permutation ...
      • 1.2 ---- using C, reverse a null-terminated string
      • 1.1-------- check if a string has all unique chara...

About Me

Tiger
View my complete profile
Simple theme. Powered by Blogger.