Click here to Skip to main content
14,737,476 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Program to decompress a compressed string Pin
David Crow19-Aug-19 5:49
MemberDavid Crow19-Aug-19 5:49 
AnswerRe: C++ Program to decompress a compressed string Pin
Patrice T17-Aug-19 20:16
mvePatrice T17-Aug-19 20:16 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20018-Aug-19 3:42
Memberantoniu20018-Aug-19 3:42 
AnswerRe: C++ Program to decompress a compressed string Pin
Randor 18-Aug-19 13:49
professional Randor 18-Aug-19 13:49 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20019-Aug-19 0:05
Memberantoniu20019-Aug-19 0:05 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 19-Aug-19 0:17
professional Randor 19-Aug-19 0:17 
GeneralRe: C++ Program to decompress a compressed string Pin
antoniu20019-Aug-19 0:27
Memberantoniu20019-Aug-19 0:27 
GeneralRe: C++ Program to decompress a compressed string Pin
Randor 19-Aug-19 0:42
professional Randor 19-Aug-19 0:42 
Hi,

It appears that you are having some sort of mental breakdown. Just relax and take a fresh look at the challenge. Smile | :)

antoniu200 wrote:
  • Time limit: 0.6 seconds
  • Memory limit: 64 MB (global) / 8 MB(local)


  • I compiled your code on an ARM based Linux box and restricted the process to 64MB. I verified that your code will exceed 64MB of memory... in fact I was able to get it to consume over 1GB by passing very large input strings. Your code will also consume greater than 600 milliseconds on very large input. I tested both of these conditions.

    You can avoid all of these failures simply by validating the input string.

    Best Wishes,
    -David Delaune
    AnswerRe: C++ Program to decompress a compressed string Pin
    antoniu20019-Aug-19 1:00
    Memberantoniu20019-Aug-19 1:00 
    GeneralRe: C++ Program to decompress a compressed string Pin
    Randor 19-Aug-19 1:20
    professional Randor 19-Aug-19 1:20 
    GeneralRe: C++ Program to decompress a compressed string Pin
    antoniu20021-Aug-19 2:13
    Memberantoniu20021-Aug-19 2:13 
    GeneralRe: C++ Program to decompress a compressed string Pin
    Randor 21-Aug-19 8:22
    professional Randor 21-Aug-19 8:22 
    GeneralRe: C++ Program to decompress a compressed string Pin
    antoniu20021-Aug-19 8:31
    Memberantoniu20021-Aug-19 8:31 
    GeneralRe: C++ Program to decompress a compressed string Pin
    Randor 21-Aug-19 10:08
    professional Randor 21-Aug-19 10:08 
    GeneralRe: C++ Program to decompress a compressed string Pin
    k505421-Aug-19 13:00
    mvek505421-Aug-19 13:00 
    AnswerRe: C++ Program to decompress a compressed string Pin
    Stefan_Lang21-Aug-19 0:25
    mveStefan_Lang21-Aug-19 0:25 
    QuestionIs there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    arnold_w12-Aug-19 5:56
    Memberarnold_w12-Aug-19 5:56 
    AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    OriginalGriff12-Aug-19 6:03
    mveOriginalGriff12-Aug-19 6:03 
    GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    Stefan_Lang12-Aug-19 23:22
    mveStefan_Lang12-Aug-19 23:22 
    AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    leon de boer12-Aug-19 16:09
    Memberleon de boer12-Aug-19 16:09 
    AnswerRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    arnold_w12-Aug-19 23:43
    Memberarnold_w12-Aug-19 23:43 
    GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    Peter_in_278013-Aug-19 2:44
    professionalPeter_in_278013-Aug-19 2:44 
    GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
    leon de boer13-Aug-19 6:55
    Memberleon de boer13-Aug-19 6:55 
    Questionamibroker afl to dll Pin
    kuleen10-Aug-19 21:37
    Memberkuleen10-Aug-19 21:37 
    AnswerRe: amibroker afl to dll Pin
    Victor Nijegorodov10-Aug-19 22:30
    MemberVictor Nijegorodov10-Aug-19 22:30 

    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.