Skip to content

Instantly share code, notes, and snippets.

@harshulj
Last active February 22, 2017 17:53
Show Gist options
  • Select an option

  • Save harshulj/68e8890854fdb1fe8d2a1760d1fdf79a to your computer and use it in GitHub Desktop.

Select an option

Save harshulj/68e8890854fdb1fe8d2a1760d1fdf79a to your computer and use it in GitHub Desktop.

Revisions

  1. harshulj revised this gist Feb 22, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@
    // As per the question I am assuming that 1,3,4 should appear together anywhere in the array of numbers

    arr = [-1, 0, 1, 3, 4, 7, 9]
    '134' in ''.join(map(str, arr))
  2. harshulj created this gist Feb 22, 2017.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    arr = [-1, 0, 1, 3, 4, 7, 9]
    '134' in ''.join(map(str, arr))