static double ai_analysisMultiMap_percentageSolved(Map<O, MultiSet<S>> map) { int correct = 0, total = 0; for (O key, MultiSet<S> value : map) { total += l(value); if (value.uniqueSize() == 1) correct += l(value); } ret doubleRatio(correct*100, total); }
Began life as a copy of #1020576
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020579 |
| Snippet name: | ai_analysisMultiMap_percentageSolved |
| Eternal ID of this version: | #1020579/1 |
| Text MD5: | 995eac839fd71157d3315bba8f145806 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-27 02:28:50 |
| Source code size: | 277 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 578 / 614 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |