Tag: Compare
Compare a string and int in C++
This tutorial will discuss about unique ways to compare a string and int in C++. Table Of Contents Technique 1: Using the std::to_string() function Technique 2: Using the stoi() function Summary Technique 1: Using the std::to_string() function To compare a string with an int value, we can first convert the int value to string, and …
Compare Two Lists & Find Missing Values in Python
This tutorial will discuss about unique ways to compare two lists & find missing values in Python. Table Of Contents Find missing values between two Lists using Set Find missing values between two Lists using For-Loop Summary Suppose we have two lists, Advertisements listObj1 = [32, 90, 78, 91, 17, 32, 22, 89, 22, 91] …
Compare two folders in Linux and find differences
In this article, we will learn how to compare two folders in Linux and find differences. Table Of Contents Using the diff command Using the meld tool Summary Using the diff command The diff is one of the most widely used Linux command to compare contents of two files. It compares the contents of the …