Diff
checker
टेक्स्ट
टेक्स्ट
छवियां
दस्तावेज़
Excel
फ़ोल्डर्स
Legal
Enterprise
डेस्कटॉप
मूल्य
साइन इन करें
Diffchecker डेस्कटॉप डाउनलोड करें
टेक्स्ट की तुलना करें
दो टेक्स्ट फ़ाइलों के बीच अंतर ढूंढें
उपकरण
इतिहास
रियल-टाइम एडिटर
अपरिवर्तित संक्षिप्त करें
लाइन रैप बंद
लेआउट
विभाजित
संयुक्त
परिवर्तन हाइलाइट करें
स्मार्ट
शब्द
अक्षर
सिंटैक्स हाइलाइटिंग
सिंटैक्स चुनें
अनदेखा करें
टेक्स्ट बदलें
पहले अंतर पर जाएँ
इनपुट संपादित करें
Diffchecker Desktop
Diffchecker चलाने का सबसे सुरक्षित तरीका। Diffchecker Desktop ऐप पाएं: आपके diffs कभी आपके कंप्यूटर से बाहर नहीं जाते!
Desktop पाएं
Untitled Diff
बनाया गया
4 वर्ष पहले
Diff कभी समाप्त नहीं होता
साफ़
निर्यात करें
शेयर करें
समझाएं
7 हटाए गए
लाइनें
कुल
हटाया गया
अक्षर
कुल
हटाया गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
27 लाइनें
सभी को कॉपी करें
7 जोड़े गए
लाइनें
कुल
जोड़ा गया
अक्षर
कुल
जोड़ा गया
इस सुविधा का उपयोग जारी रखने के लिए, अपग्रेड करें
Diff
checker
Pro
मूल्य देखें
27 लाइनें
सभी को कॉपी करें
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
//
Fenwick tree
class
//
BIT
class
class
FenwickTree
{
class
BIT
{
// Array to store the
Fenwick tree
// Array to store the
BIT
vector<int> tree;
vector<int> tree;
public:
public:
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
// Constructor to create an empty
Fenwick tree
with the given size
// Constructor to create an empty
BIT
with the given size
FenwickTree
(int size) : tree(size + 1) { }
BIT
(int size) : tree(size + 1) { }
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
// Add the given value at the given index in the
Fenwick tree
// Add the given value at the given index in the
BIT
void add(int index, int value) {
void add(int index, int value) {
while (index < tree.size()) {
while (index < tree.size()) {
tree[index] += value;
tree[index] += value;
index += index & -index;
index += index & -index;
}
}
}
}
कॉपी
कॉपी हुआ
कॉपी
कॉपी हुआ
// Query the
Fenwick tree
for the prefix sum at the given index
// Query the
BIT
for the prefix sum at the given index
int query(int index) {
int query(int index) {
int sum = 0;
int sum = 0;
while (index > 0) {
while (index > 0) {
sum += tree[index];
sum += tree[index];
index -= index & -index;
index -= index & -index;
}
}
return sum;
return sum;
}
}
};
};
सेव किए गए Diffs
ऑरिजनल टेक्स्ट
फ़ाइल खोलें
// Fenwick tree class class FenwickTree { // Array to store the Fenwick tree vector<int> tree; public: // Constructor to create an empty Fenwick tree with the given size FenwickTree(int size) : tree(size + 1) { } // Add the given value at the given index in the Fenwick tree void add(int index, int value) { while (index < tree.size()) { tree[index] += value; index += index & -index; } } // Query the Fenwick tree for the prefix sum at the given index int query(int index) { int sum = 0; while (index > 0) { sum += tree[index]; index -= index & -index; } return sum; } };
परिवर्तित टेक्स्ट
फ़ाइल खोलें
// BIT class class BIT { // Array to store the BIT vector<int> tree; public: // Constructor to create an empty BIT with the given size BIT(int size) : tree(size + 1) { } // Add the given value at the given index in the BIT void add(int index, int value) { while (index < tree.size()) { tree[index] += value; index += index & -index; } } // Query the BIT for the prefix sum at the given index int query(int index) { int sum = 0; while (index > 0) { sum += tree[index]; index -= index & -index; } return sum; } };
अंतर खोजें