Ad
  • Default User Avatar

    With s = "lpllmdokuhqokgkmwyrfuzzcjgozlkqiqmhgdmvopiqkdlppqxjwyiyvhbchfvvsr": 3 should equal 5

    Can anyone help me to find 5?

  • Default User Avatar

    I took way longer than I needed to for this, because I thought those messages like " 'a' occurred twice" which were used for guidance, I thought was what needed to be returned. Only to find out it was much simpler than that. Maybe the comments should've had better separation from the expected results, maybe under the line or a tab spacing.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    The task SPECIFICALLY says "The input string can be assumed to contain only alphabets (both uppercase and lowercase) and numeric digits." yet one of the tests contain non-alphabeetical or numerical characters such as (, [, {, }. ]. ).
    Change the description.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I myself and others count the duplicate occurences, not the amount of duplicates.
    Consider editing the details.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I'm absolutely unable to pass random tests for D. It tells me for example:

    Because text = "hHk7HB1sv1Bzh4tSDrwCvyqfJNvDPgdJ", duplicateCount(text) should equal 6. 7 is not equal to 6.
    

    But no matter how am I counting I'm unable to find a mistake. I'm looking for duplicate case-insensitive alphanumeric characters. What am I missing?

      1 1 1
      2 B B
      3 d D D
      4 h h H H
      5 J J
      6 s S
      7 v v v
    
    hHk7HB1sv1Bzh4tSDrwCvyqfJNvDPgdJ
    ^^  ^^^^^^^ ^  ^^   ^   ^ ^^  ^^  
    44  4216712 4  63   7   5 73  35  
    
  • Default User Avatar

    C++ : is it so hard was give to helper function another name?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
  • Custom User Avatar

    I suggest you create a performance version that can't be solved with brute force.

  • Default User Avatar

    WHat is the input format ? Consists of only lowercase letters or any kind of characters? Do space separated palindromes or palindromes formed using mixed case letters count ?
    for ex : In string "I coulD am madl bb" , which is largest palindrome substring "lD am madl", "am ma" or "bb"

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Loading more items...