We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Array Manipulation
Array Manipulation
Sort by
recency
|
2471 Discussions
|
Please Login in order to post a comment
Problem is not properly explained. Needed to get help of ChatGPT to properly understand this problem. @HackerRank Please try to explain problems efficiently.
Java working solution, with some test cases are failing because of "time limit exceed"
#########################################################################public static long arrayManipulation(int n, List> queries) { int row=queries.size(); int col=queries.get(0).size(); //array to hold final combine result from row:0 to row:n long[] arr = new long[n]; long max=0, currMax=0;
#Javascript. does anyone know how I would make this faster??
Java Solution:-
What is the issue with this code? It takes 3.3 seconds in Windows and 1.3 seconds in Mac but Hackerank shows runtime error for 10 mill n elements
def arrayManipulation(n, queries):