Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

pairwise operations on set

$
0
0

Recently I have encountered many questions which require performing some operations like XOR, or some f(x) pairwise on a Set....

by pairwise I mean, if set is {2, 4, 6}

then required O/P is 2^4 + 4^6 + 6^2 or f(2,4) + f(4,6) + f(6,2)

How to handle such questions, someone help.... Also can such questions be solved using DP?


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>