Open in app
Home
Notifications
Lists
Stories

Write
Rahul Gupta
Rahul Gupta

Home

Published in leetcode-solutions-tutorialcup

·May 3

Flipping an Image LeetCode Solution

Problem Statement — Flipping an Image LeetCode Solution — We are given a matrix of size n. We need to perform 2 tasks- — flip the image horizontally: it means each row of the given matrix is reversed — invert the image: make all 0’s to 1’s & vice versa Return the resulting…

Easy

2 min read


Published in leetcode-solutions-tutorialcup

·May 3

Partition Labels LeetCode Solution

Problem Statement — Partition Labels LeetCode Solution — You are given a string s. We want to partition the string into as many parts as possible so that each letter appears in at most one part. Note that the partition is done so that after concatenating all the parts in order, the resultant string…

Adobe

2 min read

Partition Labels LeetCode Solution
Partition Labels LeetCode Solution

Published in leetcode-solutions-tutorialcup

·May 3

Range Sum Query 2D — Immutable Leetcode Solution

Problem Statement — Range Sum Query 2D — Immutable Leetcode Solution — Given a 2D matrix matrix, handle multiple queries of the following type: — Calculate the sum of the elements of matrix inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). Implement the NumMatrix class…

Amazon

1 min read

Range Sum Query 2D — Immutable Leetcode Solution
Range Sum Query 2D — Immutable Leetcode Solution
Rahul Gupta

Rahul Gupta

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable