"Clarifying questions:
How can we define a transaction? incoming /outcoming funds? A successful outcoming transaction as a wire transfer and requested by the payer or account holder.
New users/ existing users? both
Which platform for transaction requests? mobile/ desktop? both
Are transactions direct from payer to beneficiary through a third-party such as banking/ financial services? yes
Are there any bounds to time/resource constraint for transactions? E.g. internal, domestic or in"
Anna H. - "Clarifying questions:
How can we define a transaction? incoming /outcoming funds? A successful outcoming transaction as a wire transfer and requested by the payer or account holder.
New users/ existing users? both
Which platform for transaction requests? mobile/ desktop? both
Are transactions direct from payer to beneficiary through a third-party such as banking/ financial services? yes
Are there any bounds to time/resource constraint for transactions? E.g. internal, domestic or in"See full answer
"public class sample {
public int [] merge(int [] a, int [] b)
{
if(a == null || a.length == 0 || b == null || b.length == 0) return null;
int i = 0, j = 0, index = -1;
int [] merged = new int[a.length + b.length];
while (i < a.length && j < b.length)
{
if(a[i] < b[i]) merged[++index] = a[i++];
else merged[++index] = b[j++];
}
while (i < a.length)
{
merged[++index] = a[i++];
}
"
Nikhil R. - "public class sample {
public int [] merge(int [] a, int [] b)
{
if(a == null || a.length == 0 || b == null || b.length == 0) return null;
int i = 0, j = 0, index = -1;
int [] merged = new int[a.length + b.length];
while (i < a.length && j < b.length)
{
if(a[i] < b[i]) merged[++index] = a[i++];
else merged[++index] = b[j++];
}
while (i < a.length)
{
merged[++index] = a[i++];
}
"See full answer
"An Object Oriented programming deals with data and members.
An Object Oriented Programming consumes more memory.
An OOPS Consist of bottom-up approach.
An OOPS is more secure Than POP.
POP.
An POP deals with Functions.
An POP is less secure compare to OOPS.
An POP contains less memory.
An POP doesnt contain acess Modifiers."
Arun G. - "An Object Oriented programming deals with data and members.
An Object Oriented Programming consumes more memory.
An OOPS Consist of bottom-up approach.
An OOPS is more secure Than POP.
POP.
An POP deals with Functions.
An POP is less secure compare to OOPS.
An POP contains less memory.
An POP doesnt contain acess Modifiers."See full answer
"
O(n) time, O(1) space
from typing import List
def maxsubarraysum(nums: List[int]) -> int:
if len(nums) == 0:
return 0
maxsum = currsum = nums[0]
for i in range(1, len(nums)):
currsum = max(currsum + nums[i], nums[i])
maxsum = max(currsum, max_sum)
return max_sum
debug your code below
print(maxsubarraysum([-1, 2, -3, 4]))
`"
Rick E. - "
O(n) time, O(1) space
from typing import List
def maxsubarraysum(nums: List[int]) -> int:
if len(nums) == 0:
return 0
maxsum = currsum = nums[0]
for i in range(1, len(nums)):
currsum = max(currsum + nums[i], nums[i])
maxsum = max(currsum, max_sum)
return max_sum
debug your code below
print(maxsubarraysum([-1, 2, -3, 4]))
`"See full answer
"// Helper function to calculate the Euclidean distance between two points
function distance(p1, p2) {
return Math.sqrt(Math.pow(p1[0] - p2[0], 2) + Math.pow(p1[1] - p2[1], 2));
}
// A helper function to find the closest pair in a given set of points within the strip
function closestPairInStrip(strip, d) {
let minDist = d; // Start with the current minimum distance
strip.sort((a, b) => a[1] - b[1]); // Sort the strip by y-coordinate
for (let i = 0; i < strip.length; i++) {
"
Vishnu V. - "// Helper function to calculate the Euclidean distance between two points
function distance(p1, p2) {
return Math.sqrt(Math.pow(p1[0] - p2[0], 2) + Math.pow(p1[1] - p2[1], 2));
}
// A helper function to find the closest pair in a given set of points within the strip
function closestPairInStrip(strip, d) {
let minDist = d; // Start with the current minimum distance
strip.sort((a, b) => a[1] - b[1]); // Sort the strip by y-coordinate
for (let i = 0; i < strip.length; i++) {
"See full answer
Machine Learning Engineer
Coding
+1 more
🧠Want an expert answer to a question? Saving questions lets us know what content to make next.
"from typing import List
def traprainwater(height: List[int]) -> int:
if not height:
return 0
l, r = 0, len(height) - 1
leftMax, rightMax = height[l], height[r]
res = 0
while l < r:
if leftMax < rightMax:
l += 1
leftMax = max(leftMax, height[l])
res += leftMax - height[l]
else:
r -= 1
rightMax = max(rightMax, height[r])
"
Anonymous Roadrunner - "from typing import List
def traprainwater(height: List[int]) -> int:
if not height:
return 0
l, r = 0, len(height) - 1
leftMax, rightMax = height[l], height[r]
res = 0
while l < r:
if leftMax < rightMax:
l += 1
leftMax = max(leftMax, height[l])
res += leftMax - height[l]
else:
r -= 1
rightMax = max(rightMax, height[r])
"See full answer
"Evaluate product performance metrics against projections, rationalize performance, and identify opportunities to optimize performance"
Frank A. - "Evaluate product performance metrics against projections, rationalize performance, and identify opportunities to optimize performance"See full answer