Ad
  • Custom User Avatar

    No sorry. You need to clarify what you mean as what you said makes no sense. Every table has a primary key. Typically called "id". A foreign key in products is "company_id".

  • Custom User Avatar

    There is no sorting involved. Read the instructions and see the examples again. Not a kata issue.

    #Example: longest_consec(["zone", "abigail", "theta", "form", "libe", "zas", "theta", "abigail"], 2) --> "abigailtheta"

    In that example abigailtheta and thetaabigail have the same length, but you have to return the first

    Your task is to return the first longest string consisting of k consecutive strings taken in the array.