Filter interviews by
To create a queue using stack, use two stacks and implement enqueue and dequeue operations accordingly.
Use two stacks - one for enqueue operation and one for dequeue operation
For enqueue operation, simply push elements onto the stack used for enqueue
For dequeue operation, if the dequeue stack is empty, pop all elements from enqueue stack and push onto dequeue stack, then pop from dequeue stack
Top trending discussions
I applied via Referral and was interviewed in Sep 2024. There were 2 interview rounds.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and expand around each character to find palindromes.
Store the length of the longest palindrome found so far.
Return the substring based on the start and end indices of the longest palindrome.
To serialize and deserialize a tree, use a recursive approach to traverse the tree and store the data in a suitable format.
Use pre-order traversal to serialize the tree by storing the node values in a list or string.
For deserialization, reconstruct the tree by recursively building nodes from the serialized data.
Consider using JSON or XML format for serialization to easily store and retrieve tree structure.
Use regex library to match given regex with string.
Use a regex library like re in Python to match the given regex with the string.
Check if the regex matches the string using the library functions.
Handle cases where the regex contains special characters like . and * appropriately.
Throttling is a technique used to control the rate of requests sent to a server.
Throttling helps prevent server overload by limiting the number of requests processed at a time.
Implementing a throttle function involves setting a maximum request rate and delaying excess requests.
Example: Implementing a throttle function in a web application to limit the number of API calls made to a third-party service.
Example: Throttlin...
Sort the squares of elements in a sorted array and return the sorted response.
Iterate through the array and square each element.
Store the squared values in a new array.
Sort the new array and return it.
A promise is a commitment to do something in the future, typically used for asynchronous operations in JavaScript.
Promises are used to handle asynchronous operations in JavaScript.
They represent a value that may be available now, in the future, or never.
Promises have three states: pending, fulfilled, or rejected.
Example: new Promise((resolve, reject) => { setTimeout(() => resolve('Done!'), 1000); });
Event loop is a mechanism that allows for asynchronous execution of code by managing the order of events in a single thread.
Event loop continuously checks the call stack for any functions that need to be executed, and processes them in a non-blocking manner.
Different types of queues in event loop include microtask queue (Promise callbacks), macrotask queue (setTimeout, setInterval callbacks), and animation frame queue
Virtual DOM is a lightweight copy of the actual DOM, used to improve performance by minimizing direct manipulation of the real DOM.
Virtual DOM is a concept used in frameworks like React to optimize rendering performance.
Changes are first made to the virtual DOM, which is then compared to the real DOM to identify the minimal updates needed.
This approach reduces the number of actual DOM manipulations, resulting in faster...
posted on 13 Jan 2025
I applied via Approached by Company and was interviewed in Aug 2024. There was 1 interview round.
Writing trigger logic involves defining actions to be taken when a certain event occurs in a database.
Identify the event that will trigger the logic
Define the actions to be taken when the event occurs
Consider any conditions or constraints that need to be met for the trigger to fire
A Batch Class is used in Salesforce to process records in batches.
Batch classes are used to process large amounts of data in Salesforce.
They are implemented by implementing the Database.Batchable interface.
Batch classes have three main methods: start, execute, and finish.
Example: public class MyBatchClass implements Database.Batchable
LWC Component for Senior Software Engineer interview
Create a new Lightning Web Component using Salesforce CLI
Define HTML template, JavaScript controller, and CSS styling
Implement functionality using Apex controllers and Lightning Data Service
Use @wire to fetch data from Salesforce backend
Leverage Salesforce Lightning Design System for UI components
Basic DS question like dutch flag problem.
Debounce function delays the execution of a function until after a specified amount of time has passed since the last time it was invoked.
Create a function that takes a function and a delay time as parameters
Use setTimeout to delay the execution of the function
Use clearTimeout to reset the timer if the function is invoked again within the delay time
I applied via Company Website
A code to identify errors and write Junit. Optimise the code as well.
Implementing a stack using two queues
Use two queues to simulate a stack
Push operation: Enqueue the element to queue 1
Pop operation: Dequeue all elements from queue 1 to queue 2, dequeue the last element from queue 1, then swap the queues
Top operation: Return the front element of queue 1
Example: Push 1, 2, 3 - Queue 1: [1, 2, 3], Queue 2: []
Example: Pop - Queue 1: [1, 2], Queue 2: [3]
posted on 14 Mar 2024
Git revert is used to undo changes made in a commit by creating a new commit that undoes the changes.
Git revert is used to undo changes made in a specific commit without altering the commit history.
It creates a new commit that undoes the changes introduced by the specified commit.
Git revert is useful for reverting changes without losing the commit history or affecting other team members' work.
Example: git revert
Jenkins node is a machine that executes tasks as part of a Jenkins build process.
Jenkins nodes can be physical machines or virtual machines.
Nodes can be configured to run specific types of jobs or tasks.
Nodes help distribute workload and improve efficiency in Jenkins pipelines.
Nodes can be named based on their functionality, purpose, or position in a hierarchy.
Name based on functionality (e.g. loginNode, paymentNode)
Name based on purpose (e.g. validationNode, processingNode)
Name based on position in hierarchy (e.g. parentNode, childNode)
Jenkins has a wide range of plugins for various functionalities.
Pipeline plugins (e.g. Pipeline, Multibranch Pipeline)
SCM plugins (e.g. Git, SVN)
Build and test plugins (e.g. Maven, JUnit)
Notification plugins (e.g. Email, Slack)
Monitoring plugins (e.g. Prometheus, Grafana)
Jenkins library is a collection of reusable code that can be shared across multiple Jenkins pipelines.
Jenkins library allows for code reuse and sharing across pipelines
It helps in maintaining consistency and reducing duplication of code
Libraries can be stored in version control systems like Git and referenced in Jenkins pipelines
Integrating other tools to Jenkins involves using plugins and configuring build pipelines.
Install the necessary plugins for the tools you want to integrate with Jenkins
Configure the tools in Jenkins global configuration settings
Create build pipelines that include steps for interacting with the integrated tools
Use Jenkins API to automate interactions with external tools
Docker is a containerization platform for running applications in isolated environments, while Docker Swarm is a tool for orchestrating multiple Docker containers across multiple hosts.
Docker is used for creating and managing containers, while Docker Swarm is used for managing multiple containers across multiple hosts.
Docker is suitable for single host deployments, while Docker Swarm is suitable for multi-host deployme...
K8s is a container orchestration tool while Docker Swarm is a clustering and scheduling tool for Docker containers.
K8s is more widely used and has a larger community support compared to Docker Swarm.
K8s supports more advanced features like auto-scaling, self-healing, and rolling updates.
Docker Swarm is easier to set up and manage for smaller scale deployments.
K8s uses declarative configuration while Docker Swarm uses i...
Git hooks are scripts that run automatically before or after certain Git commands are executed.
Git hooks are customizable scripts that can be triggered by specific Git events.
They can be used to enforce coding standards, run tests, or automate deployment processes.
Examples of Git hooks include pre-commit, post-commit, pre-push, and post-merge hooks.
HTTPS is a secure communication protocol used for secure communication over the internet. SSH cloning is a method of cloning a repository using the SSH protocol.
HTTPS stands for Hypertext Transfer Protocol Secure and is used to secure communication over the internet.
It encrypts the data being transmitted between the client and the server, providing a secure connection.
SSH cloning is a method of cloning a Git repository...
I applied via Referral and was interviewed in Jul 2024. There were 2 interview rounds.
Full stack question with java and angular and sql
Case study on project
based on 2 reviews
Rating in categories
Software Engineer
45
salaries
| ₹6 L/yr - ₹16 L/yr |
Senior Software Engineer
17
salaries
| ₹12 L/yr - ₹21 L/yr |
Software Developer
8
salaries
| ₹5 L/yr - ₹13 L/yr |
Associate Director Product Management
5
salaries
| ₹16 L/yr - ₹20 L/yr |
Cyber Security Analyst
5
salaries
| ₹4.5 L/yr - ₹5 L/yr |
Druva
Freshworks
Zoho
InMobi