Ad
  • Default User Avatar

    NO!!! WE'RE FCKN CHAMPIONS! Learn from this and we will be great soon.

  • Custom User Avatar

    All code length with name of function and argument will be more than 12 letters (28 letters exactly). Only body of function should be 12 letters.

  • Custom User Avatar

    Ok, this one really kick my butt.
    The instruction for me were a little confusion. It could help provide more details about what are we comparing to, bears or pair bears. I understand that we we talking about par bears then common sense is pair. But new developers like me, need a little more clarification.

    Overall, great kata, it made me scratch my head a lot and re-structure my code several times. I which I believ is a great thing.

    There are shorter codes, one line codes, here but I'm happy on what I came up with, surely I will try to re-factor in a later time.

    Thank you!

  • Custom User Avatar

    This is a Question not an Issue, closing.

  • Custom User Avatar

    Bears cannot mate long-distance ;)

  • Default User Avatar

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

  • Custom User Avatar

    Hello,

    Sorry if this question was asnwered already but the intruction are a little confusing. My question is, do I need to count for pairs (8B & B8) only or Do I need to count for stand alone bears B & 8 then pair then together to count for another pair. I'm getting miz result in my code that doesnt make much sense.

    I just need a little hint here, trying to figure this one since yesterday.

    Thank you

  • Default User Avatar

    F# version seems to be broken. Sample tests work fine, but when attempting – no matter the solution used – I get this exception

    System.NotSupportedException: Specified method is not supported.
    System.NotSupportedException: Specified method is not supported.
      at System.Reflection.MonoGenericClass.GetMethods (System.Reflection.BindingFlags bf) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Reflection.Emit.TypeBuilder.GetMethodsByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.Boolean ignoreCase, System.Type reflected_type) [0x00019] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Reflection.Emit.TypeBuilder.GetMethods (System.Reflection.BindingFlags bindingAttr) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Diagnostics.StackTrace.GetFullNameForStackTrace (System.Text.StringBuilder sb, System.Reflection.MethodBase mi) [0x00024] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Diagnostics.StackTrace.AddFrames (System.Text.StringBuilder sb) [0x000d9] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Diagnostics.StackTrace.ToString () [0x00065] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Diagnostics.StackTrace.ToString (System.Diagnostics.StackTrace+TraceFormat traceFormat) [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Environment.GetStackTrace (System.Exception e, System.Boolean needFileInfo) [0x0001a] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Exception.GetStackTrace (System.Boolean needFileInfo) [0x00041] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at System.Exception.get_StackTrace () [0x00000] in <f712f98eb8e445c8918edaf595bbe465>:0 
      at Fuchu.Impl+evalTestList@260-1.Invoke (System.Tuple`2[T1,T2] tupledArg) [0x00092] in <56a815db36d21f70a7450383db15a856>:0 
      at Microsoft.FSharp.Collections.Internal+IEnumerator+map@74[b,a].DoMoveNext (b& ) [0x00020] in <58dd0ce1dff9fae1a7450383e10cdd58>:0 
      at Microsoft.FSharp.Collections.Internal+IEnumerator+MapEnumerator`1[T].System-Collections-IEnumerator-MoveNext () [0x0000c] in <58dd0ce1dff9fae1a7450383e10cdd58>:0 
      at Microsoft.FSharp.Collections.SeqModule.ToList[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00064] in <58dd0ce1dff9fae1a7450383e10cdd58>:0 
      at Fuchu.Impl.eval (Fuchu.Impl+TestPrinters printer, Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] map, Fuchu.Test tests) [0x0001f] in <56a815db36d21f70a7450383db15a856>:0 
      at <StartupCode$FSI_0001>.$FSI_0001.main@ () [0x00175] in <febf69b3213a401b8e3a679b586ebc14>:0 
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <f712f98eb8e445c8918edaf595bbe465>:0   
    Stopped due to error
    
  • Default User Avatar

    i slept on it and woke up with the solution. is there any way i can remove this post? i still dont understand the mimsmatch between my IDE and why it completely altered my boolean return but i worked around it

  • Default User Avatar

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

  • Default User Avatar

    hi. Help me pls. (3, '88Bifk8hB8BB8BBBB888chl8BhBfd') => ["8BB8B8B88B",True]
    But i have ['8BB88BB88BB88BB88B', True]. I don't understand..
    Maybe I misunderstood the task. Can you explain please. I have checked several times and do not find any errors on my own.

  • Custom User Avatar
  • Custom User Avatar

    The JavaScript version tests function's body length instead of the actual code length.

  • Default User Avatar

    figured most of it out but i CANNOT get this below 28 letters in JS, the name of the function takes up most of my headway as it is T_T, any suggestions ?

    "alwaysodd" takes up 9 letters and if i try to change the name it doesn't test at all

  • Custom User Avatar

    Closing.

  • Loading more items...