1. Given an array, reverse the order of its elements in place.
2. Design a data structure that supports the following two operations: void addNum(int num) - Add a integer number from the data stream to the data structure. double findMedian() - Return the median of all elements so far. For example: addNum(1) addNum(2) findMedian() -> 1.5 addNum(3) findMedian() -> 2
3. Write a command to find the lines containing the word "ERROR" from a log file and copy them to a new file.
4. What is a malloc function, where is it used, and how does it differ from new?
5. Write a function to determine if two stacks are equal. The function should return true if the stacks contain the same elements in the same order, and false otherwise.
My Connections Cadence Design Systems (India) Pvt. Ltd.
Browse through a variety of job opportunities tailored to your skills and preferences. Filter by location, experience, salary, and more to find your perfect fit.
We have sent an OTP to your contact. Please enter it below to verify.