This video gives you the solution to the C++ debugging question called XOR Strings, from HackerRank. You will learn how to compare characters from two strings and determine if the XOR operation should output true or false. The solution here is to compare the characters at the same position in both strings.
Because C++ strings are also array of characters, we can access and compare each string's character using the array notation on the strings. You will also learn how to use the append() method on C++ strings. You will see that this HackerRank problem is similar to a bitwise problem.
All HackerRank solutions on GitHub (please leave a star): github.com/Isa...
HackerRank XOR Strings coding problem: www.hackerrank...
22 авг 2024