Libraryless. Click here for Pure Java version (2817L/19K/64K).
1 | !7 |
2 | |
3 | p-tt { |
4 | S input = loadSnippet(#1008462); |
5 | MultiSet<Char> histogram = charsHistogram(input); |
6 | //psl(histogram); |
7 | psl(multiSetToMapPopularFirst(histogram)); |
8 | |
9 | checkPair(input, '<', '>'); |
10 | } |
11 | |
12 | svoid checkPair(S input, char a, char b) { |
13 | print("Checking " + quoteChar(a) + " " + quoteChar(b)); |
14 | L<S> strings = findSubstringsEnclosedBy_inner(input, a, b); |
15 | psl(strings); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008463 |
Snippet name: | Find pairs [dev.] |
Eternal ID of this version: | #1008463/8 |
Text MD5: | 9411afef60533e9d9e4f25fa07acf3be |
Transpilation MD5: | 59384487776e2f1d31eb37b3f6ff003f |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-20 13:56:42 |
Source code size: | 394 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 526 / 617 |
Version history: | 7 change(s) |
Referenced in: | [show references] |