This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | try { | |
| ! function(u, s, e) { | |
| "use strict"; | |
| var n = function() { | |
| function n(e) { | |
| return e && e.performance ? e.performance : null | |
| } | |
| var t = !1, | |
| r = null; | |
| try { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const d = { | |
| 'a': 5, | |
| 'b': 6, | |
| 'c': { | |
| 'f': 9, | |
| 'g': { | |
| 'm': 17, | |
| 'n': 3, | |
| 'o': { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function search(arr, start, end){ | |
| var mid = getMidpoint(start, end); | |
| if(arr[mid-1] > arr[mid] && arr[mid+1] > arr[mid]){ | |
| console.log("Found Min: "+ arr[mid], mid) | |
| return arr[mid]; | |
| } | |
| if(arr[start] < arr[mid]){ | |
| // is sorted | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function checkSubstring(substr, word){ | |
| if(substr.length > word) return false; | |
| if(substr.length && !word.length) return false; | |
| for(let i = 0; i < word.length; i++){ | |
| if(word[i] === substr[0]){ | |
| if(compareStrings(word.substr(i, substr.length), substr)){ | |
| return true; | |
| } | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function permutations(word){ | |
| if(word.length <=1) return [word]; | |
| if(typeof word === 'string'){ | |
| word = word.split('') | |
| } | |
| if(typeof word === 'number'){ | |
| word = String(word).split('') | |
| } | |
| let permutationCollection = []; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function mergeSort(arr){ | |
| if(arr.length < 2){ | |
| return arr; | |
| } | |
| // Get mid point | |
| var mid = Math.floor(arr.length / 2); | |
| var left = mergeSort(arr.slice(0, mid)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Find number of islands | |
| let area = [ | |
| [0,1,0,1,1,0], | |
| [0,1,0,1,0,1], | |
| [1,0,0,0,1,0], | |
| [1,0,0,0,1,0] | |
| ]; | |
| function countIslands(area){ | |
| console.log("Count Islands") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Node structure | |
| const Node = function(value){ | |
| return { | |
| left: null, | |
| right: null, | |
| value, | |
| } | |
| } | |
| // Binary Search Tree Class | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | . | |
| ├── actions | |
| ├── stores | |
| ├── views | |
| │ ├── Anonymous | |
| │ │ ├── __tests__ | |
| │ │ ├── views | |
| │ │ │ ├── Home | |
| │ │ │ │ ├── __tests__ | |
| │ │ │ │ └── Handler.js |