Sorting SPOJ Tree DQUERY - D-query - SPOJ Solution C++ May 07, 2021 Add Comment ➤ Problem Link : DQUERY 👉 Hint : Sort with custom comparator ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; i... Read More
Binary Search SPOJ Tree DCEPC206 - Its a Murder! -SPOJ Solution C++ April 26, 2021 Add Comment ➤ Problem Link : DCEPC206 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long ... Read More
SPOJ Tree FREQUENT - Frequent values - SPOJ Solution C++ April 18, 2021 Add Comment ➤ Problem Link : FREQUENT 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long... Read More
Binary Search SPOJ Tree BRIDGE - Building Bridges - SPOJ Solution C++ April 17, 2021 Add Comment ➤ Problem Link : BRIDGE 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long lo... Read More
SPOJ Tree LITE - Light Switching - SPOJ Solution C++ April 16, 2021 Add Comment ➤ Problem Link : LITE 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int st[400000]; int... Read More
SPOJ Tree BRCKTS - Brackets - SPOJ Solution C++ April 14, 2021 Add Comment ➤ Problem Link : BRCKTS 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long l... Read More
SPOJ Tree MULTQ3 - Multiples of 3 - SPOJ Solution C++ April 09, 2021 Add Comment ➤ Problem Link : MULTQ3 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; int lazy[4*100005]... Read More
SPOJ Tree GSS3 - Can you answer these queries III - SPOJ Solution C++ April 08, 2021 Add Comment ➤ Problem Link : GSS3 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long lon... Read More
SPOJ Tree GSS1 - Can you answer these queries I - SPOJ Solution C++ April 07, 2021 Add Comment ➤ Problem Link : GSS1 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long lon... Read More
Segment Tree SPOJ Tree SEGSQRSS - Sum of Squares with Segment Tree - SPOJ Solution C++ April 03, 2021 Add Comment ➤ Problem Link : SEGSQRSS 👉 Hint : Build two Segment Trees with Lazy Propagation ✅ C++ Solution : #include<bits/stdc++.h> usi... Read More
Number theory Sorting SPOJ Tree INVCNT - Inversion Count - SPOJ Soultion C++ April 02, 2021 Add Comment ➤ Problem Link : INVCNT 👉 Hint : Think of some tree based data structure like segment tree or ordered_set in C++ STL ✅ C++ Solution : ... Read More
Sorting SPOJ Tree CODESPTB - Insertion Sort - SPOJ Solution C++ April 01, 2021 Add Comment ➤ Problem Link : CODESPTB 👉 Hint : Segment Tree with Lazy Propagation ✅ C++ Solution : #include<bits/stdc++.h> using namespac... Read More
Binary Search SPOJ Tree LARSUBP - Large subsequence Problem - SPOJ Solution C++ March 31, 2021 Add Comment ➤ Problem Link : LARSUBP 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long... Read More
SPOJ Tree COURAGE - Living with Courage - SPOJ Solution C++ March 26, 2021 Add Comment ➤ Problem Link : COURAGE 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long ... Read More
Segment Tree SPOJ Tree HORRIBLE - Horrible Queries - SPOJ Solution C++ March 26, 2021 Add Comment ➤ Problem Link : HORRIBLE 👉 Hint : Segment Tree with Lazy Propagation ✅ C++ Solution : #include<bits/stdc++.h> using namespac... Read More
SPOJ Tree COURAGE - Living with Courage - SPOJ Solution C++ March 25, 2021 Add Comment ➤ Problem Link : COURAGE 👉 Hint : edit please ✅ C++ Solution : #include<bits/stdc++.h> using namespace std; #define ll long ... Read More