i
Filter interviews by
Top trending discussions
Implement LRU cache
LRU stands for Least Recently Used
It is a cache eviction policy that removes the least recently used item
It can be implemented using a doubly linked list and a hash map
Newly accessed items are moved to the front of the list
When the cache is full, the item at the end of the list is removed
Virtual memory is a memory management technique that allows a computer to use more memory than it physically has.
Virtual memory uses a combination of RAM and hard disk space to store data.
It allows programs to use more memory than is physically available.
If a program tries to access memory that is not currently in RAM, it will be swapped in from the hard disk.
Even if we had infinite RAM, virtual memory would still be n...
Find maximum length of subarray where max <= 2*min.
Iterate through array and keep track of max and min values.
Update max length when condition is met.
Time complexity: O(n)
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Medium
Technical round with questions on DSA and OS.
Design and implement a data structure for a Least Recently Used (LRU) cache that supports the following operations:
get(key)
- Retrieve the value associated with the...Design and implement a Least Recently Used (LRU) cache data structure that supports get and put operations with a specified capacity.
Implement a doubly linked list to keep track of the order of keys based on their usage.
Use a hashmap to store key-value pairs for quick access and updates.
When a key is accessed or updated, move it to the front of the linked list to mark it as the most recently used.
When the cache reaches...
Given an array of non-negative integers and an integer K representing the length of a subarray, your task is to determine the maximum elements for each subarray of size ...
Find the maximum elements for each subarray of size K in a given array.
Iterate through the array and maintain a deque to store the indices of elements in decreasing order.
Pop elements from the deque that are out of the current window.
Keep track of the maximum element in each subarray of size K.
Return the maximum elements for each subarray.
Virtual memory is a memory management technique that allows a computer to compensate for physical memory shortages by temporarily transferring data from RAM to disk storage.
Virtual memory allows programs to use more memory than is physically available on the system.
It helps in multitasking by allowing multiple programs to run simultaneously without running out of memory.
Virtual memory uses a combination of RAM and disk...
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I have a strong background in software engineering and a passion for innovation, making me a valuable asset to HSBC.
I have a proven track record of successfully delivering high-quality software solutions in previous roles.
I am highly skilled in various programming languages and technologies, including Java, Python, and SQL.
I have experience working in agile development environments, allowing me to adapt quickly to chan...
I applied via Naukri.com and was interviewed in Jul 2023. There were 2 interview rounds.
I applied via Campus Placement and was interviewed in Sep 2023. There were 4 interview rounds.
Program to convert alternate letters of a sentence to uppercase, excluding whitespace
Iterate through each character of the sentence
Check if the character is a letter and if its index is odd
Convert the letter to uppercase if conditions are met
I approach solving balanced parenthesis program by using a stack data structure.
Use a stack to keep track of opening parentheses
Iterate through the input string and push opening parentheses onto the stack
When a closing parenthesis is encountered, pop from the stack and check if it matches the closing parenthesis
If stack is empty at the end and all parentheses are matched, the string is balanced
Program to print top five students in a classroom, handling edge cases
Create a list of students with their grades
Sort the list in descending order based on grades
Print the top five students, handling cases where there are less than five students or ties in grades
A program to check if a given string is a palindrome.
Create a function that takes a string as input.
Reverse the string and compare it with the original string.
If they are the same, then the string is a palindrome.
Example: 'racecar' is a palindrome.
Example: 'hello' is not a palindrome.
A program to return Fibonacci series using recursion or iteration
Use recursion to generate Fibonacci series
Use iteration to generate Fibonacci series
Handle edge cases like negative input or input of 0 or 1
Example: Fibonacci series up to 10 - 0, 1, 1, 2, 3, 5, 8, 13, 21, 34
Different ways to create a table in Python include using pandas, sqlite3, and SQLAlchemy libraries.
Using pandas library to create a table from a dictionary or list of lists
Using sqlite3 library to create a table in a SQLite database
Using SQLAlchemy library to create a table in a SQL database
posted on 13 Feb 2024
I applied via Referral and was interviewed before Feb 2023. There was 1 interview round.
I applied via Referral and was interviewed before Apr 2023. There were 3 interview rounds.
Senior Analyst
1.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Coordinator
866
salaries
| ₹0 L/yr - ₹0 L/yr |
Analyst
561
salaries
| ₹0 L/yr - ₹0 L/yr |
Financial Analyst
560
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Financial Analyst
370
salaries
| ₹0 L/yr - ₹0 L/yr |
State Street Corporation
BNY
HSBC Group
JPMorgan Chase & Co.