reduce
Scala - reduce/foldLeft
I have a nested map m which is like: m = Map(\"email\" -> \"a@b.com\", \"background\" -> Map(\"language\" -> \"english\"))[详细]
2023-04-12 08:25 分类:问答Is there any well-known NP-complete problem that I can reduce a 'node placement' problem to?
I have the following NP-complete problem: Given: a set of locations in a N × N field, a set of m nodes, and[详细]
2023-04-10 14:18 分类:问答php - are these functions good to reduce server load? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-04-10 10:36 分类:问答"reduce" function in python not work on "namedtuple"?
I have a log file that is formatted in the following way: datetimestring \\t username \\t transactionName \\r\\n[详细]
2023-04-10 09:11 分类:问答MongoDB C# map an Item
i´m using map/reduce to find the max Revision of an Document. var map = \"function() {emit(this.DocName, this.Revision);}\";[详细]
2023-04-08 01:22 分类:问答Map reduce problem in python
I am currently struggling with an assignment. The solution would input a txt file and run through counting the number of palindromes and their frequency. I need to use Map reduce to create to do so[详细]
2023-04-08 01:06 分类:问答Using math.factorial in a lambda function with reduce()
I\'m attempting to write a function that calculates the number of unique permutations of a string. For example aaa would return 1 and abc would return 6.[详细]
2023-04-08 00:23 分类:问答Reduce the number of variables used in my if-else statements
I know it sounds terrible but in my java program I have about 100 if-else statements, all containing 3 variables that have to stay unique to those if-else blocks, 1 is a flag used to know when its the[详细]
2023-04-06 18:13 分类:问答Can I condense these queries into less
Is it possible to make 1 query and still pull the required data? I have many queries and would like to consolidate them to make the page load faster.[详细]
2023-04-01 13:56 分类:问答How to reduce the width of dropdown list of spinner in android?
In landscape mode, I have a spinner in my app. When I click the spinner, the dropdown list occupies the entire w开发者_JAVA技巧idth of the screen. I want to reduce the width to the specific value. May[详细]
2023-04-01 12:06 分类:问答