Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

give me some array question

+8 votes
asked Jul 22, 2024 by Jasim Abdulla (200 points)

2 Answers

0 votes
answered Aug 17, 2024 by SUGGULA Eshwar Durga prasad (140 points)

Given an array with all integers between 1 and 100 except for one, find the missing number.

0 votes
answered Aug 22, 2024 by Mahidhar Darsi (220 points)
  1. Find the Maximum Product Subarray

    • Given an array of integers, find the contiguous subarray within an array (containing at least one number) which has the largest product.
  2. Trapping Rain Water

    • Given ( n ) non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
  3. Longest Consecutive Sequence

    • Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algorithm should run in ( O(n) ) complexity.
  4. Median of Two Sorted Arrays

    • Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity should be ( O(\log (m+n)) ).
  5. Subarray Sum Equals K

    • Given an array of integers and an integer ( k ), you need to find the total number of continuous subarrays whose sum equals to ( k ).
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...