Latest
Topics
Tags
News
Jobs
Tutorials
Forum
Join Us
Community
Problems
New Post
Log In
New Post
Latest
News
Jobs
Tutorials
Forum
Tags
Planet
Users
Log In
Sign Up
Question: Zscaler, Online Assessment Question | Data Analyst | Hackerman Lover Geometry | 2023
0
Entering edit mode
3 days ago
Delta
2.9k
Hyderabad
free-public-post
coding-round
Zscaler
on-campus
• 1.3k views
ADD COMMENT
•
link
14 months ago
Delta
2.9k
0
Entering edit mode
6 weeks ago
Rishi Sharma
• 0
Meerut
#include
using namespace std; struct segTree{ int size; vector
maximum; void init(int n) { size=1; while(size
=rx || lx>=r) { return INT_MIN; } if(lx>=l && rx<=r) return maximum[root]; int m=(lx+rx)/2; int max1=maxx(l, r, 2*root+1, lx, m); int max2=maxx(l, r, 2*root+2, m, rx); return max(max1, max2); } int maxx(int l, int r) { return maxx(l, r, 0, 0, size); } }; int main() { int n, k; cin>>n>>k; int pnl[n]; for(int i=0;i
>pnl[i]; vector
presum(n); presum[0]=pnl[0]; for(int i=1;i
ADD COMMENT
•
link
14 months ago
Rishi Sharma
• 0
0
Entering edit mode
6 weeks ago
Rishi Sharma
• 0
Meerut
#include
using namespace std; struct segTree{ int size; vector
maximum; void init(int n) { size=1; while(size
=rx || lx>=r) { return INT_MIN; } if(lx>=l && rx<=r) return maximum[root]; int m=(lx+rx)/2; int max1=maxx(l, r, 2*root+1, lx, m); int max2=maxx(l, r, 2*root+2, m, rx); return max(max1, max2); } int maxx(int l, int r) { return maxx(l, r, 0, 0, size); } }; int main() { int n, k; cin>>n>>k; int pnl[n]; for(int i=0;i
>pnl[i]; vector
presum(n); presum[0]=pnl[0]; for(int i=1;i
ADD COMMENT
•
link
14 months ago
Rishi Sharma
• 0
Login
before adding your answer.
Similar Posts
Loading Similar Posts
1