This file contains 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
/** | |
Add this script to Chrome Dev Tools snippets and run in order to use from console. | |
*/ | |
((exports)=>{ | |
const alphabet = [/*extra*/0x1f916, 0x1F62C, 0x1F428,/*extraend*/0x2764, 0x1f606, 0x1f62e, 0x1f622, 0x1f620, 0x1f44d, 0x1f44e].map(e=>String.fromCodePoint(e)); //'❤️ 😆 😮 😢 😠 👍 👎'.split(' ') | |
const excludes = { | |
'A': String.fromCodePoint(0x2708), | |
'a': String.fromCodePoint(0x1F6A1) | |
}, rexcludes = { |
This file contains 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
import ( | |
"math" | |
"math/big" | |
"strings" | |
) | |
// Singly-linked lists are already defined with this interface: | |
// type ListNode struct { | |
// Value interface{} | |
// Next *ListNode | |
// } |