Raised This Month: $ Target: $400
 0% 

Run-Time Freeze "While" function.


Post New Thread Reply   
 
Thread Tools Display Modes
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 06-11-2016 , 11:55   Re: Run-Time Freeze "While" function.
Reply With Quote #11

PHP Code:
public RemoveAllButLetters(buffer[]) {
    new 
00;
    while (
buffer[i] != EOS)
        if (
isalpha(buffer[i]))
            
buffer[j++] = buffer[i++];
        else
            
i++;
    
buffer[j] = EOS;
    return 
j;

O(n).
DWIGHTpN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode