We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Bit Manipulation
- XOR Matrix
- Discussions
XOR Matrix
XOR Matrix
Sort by
recency
|
33 Discussions
|
Please Login in order to post a comment
Code does not compile.
Here is XOR matrix problem solution in Python Java c++ and c programming - https://programs.programmingoneonone.com/2021/07/hackerrank-xor-matrix-problem-solution.html
Getting this error:
Solution.java:55: error: cannot find symbol for (int resultItr = 0; resultItr < result.length; resultItr++) { ^ symbol: variable result location: class Solution Solution.java:56: error: cannot find symbol bufferedWriter.write(String.valueOf(result[resultItr])); ^ symbol: variable result location: class Solution Solution.java:58: error: cannot find symbol if (resultItr != result.length - 1) { ^ symbol: variable result location: class Solution 3 errors
here is the first version, even main() has been corrected :
Finally, the result variable stored in the XOR of all elements in the array. Surah for love and attraction