Apna
10+ Decorate Your Home Interview Questions and Answers
Q1. Count distinct pairs with difference equal to k and further optimize.
Count distinct pairs with difference equal to k and optimize.
Use a hash set to store the elements of the array.
Iterate through the array and check if the current element + k or current element - k exists in the hash set.
Increment the count if a pair is found and add the current element to the hash set.
Return the count of distinct pairs.
Q2. What's differences between photoshop and illustrator
Photoshop is primarily used for editing and manipulating raster images, while Illustrator is used for creating and editing vector graphics.
Photoshop is pixel-based, meaning it works with individual pixels to create and edit images.
Illustrator is vector-based, meaning it uses mathematical equations to create and edit shapes and lines.
Photoshop is commonly used for photo editing, retouching, and creating digital artwork.
Illustrator is often used for creating logos, icons, illus...read more
Q3. How event loop works
Event loop is a mechanism that allows for efficient handling of multiple events in a single thread.
Event loop is used in asynchronous programming to handle non-blocking I/O operations.
It continuously checks for events in a queue and executes their associated callbacks.
Event loop is commonly used in JavaScript for handling browser events and Node.js for handling server requests.
It prevents blocking of the main thread by executing tasks in a non-blocking manner.
Event loop can b...read more
Q4. Design a bookMyShow app
BookMyShow app allows users to book movie tickets, events, and experiences online.
User-friendly interface for browsing and booking tickets
Integration with payment gateways for secure transactions
Personalized recommendations based on user preferences
Real-time updates on ticket availability and showtimes
Option to select seats and add-ons for enhanced experience
Q5. Polyfill of bind
Polyfill of bind is a function that allows you to bind a specific context to a function.
The bind polyfill can be implemented using the apply method.
It returns a new function with the specified context bound to it.
The polyfill can also accept additional arguments that will be passed to the original function.
Here's an example of a bind polyfill implementation:
```javascript if (!Function.prototype.bind) { Function.prototype.bind = function(context) { var self = this; var args = ...read more
Q6. Explain K8s architecture
K8s architecture is a container orchestration platform that manages containerized applications across a cluster of nodes.
Kubernetes follows a master-slave architecture with a master node and multiple worker nodes.
Master node components include API server, scheduler, controller manager, and etcd.
Worker node components include kubelet, kube-proxy, and container runtime (e.g. Docker).
Kubernetes uses Pods as the smallest deployable units, which can contain one or more containers....read more
Q7. Explain tcp handshake and TLS
TCP handshake is a process where two devices establish a connection by exchanging SYN and ACK packets. TLS is a protocol that ensures secure communication over the internet.
TCP handshake involves three steps: SYN, SYN-ACK, ACK
TLS (Transport Layer Security) is a cryptographic protocol that provides secure communication over a network
TLS ensures data integrity, authentication, and confidentiality
Example: When a client wants to establish a secure connection with a server, TLS ha...read more
Q8. what you about naukri sourcing
Naukri sourcing involves using the Naukri job portal to find and attract potential candidates for recruitment purposes.
Naukri sourcing is a common method used by recruitment consultants to search for candidates on the Naukri job portal.
It involves creating job postings, searching resumes, and reaching out to potential candidates through the platform.
Recruitment consultants use keywords, filters, and advanced search options to narrow down the pool of candidates.
Naukri sourcing...read more
Q9. Rotate array by 90 degree
To rotate an array by 90 degrees, transpose the array and then reverse each row.
Transpose the array by swapping elements across the diagonal
Reverse each row of the transposed array
Q10. Explain about dependency injection
Dependency injection is a design pattern that allows objects to receive dependencies rather than creating them internally.
Dependency injection helps to decouple the code and makes it more testable and maintainable.
It allows for easier swapping of dependencies and reduces the amount of boilerplate code.
There are three types of dependency injection: constructor injection, setter injection, and interface injection.
Example: Instead of creating a database connection object inside ...read more
Q11. Experience in b2b
I have over 5 years of experience in b2b sales, managing key accounts and driving revenue growth.
Managed key accounts by building strong relationships and understanding their needs
Developed and implemented strategic sales plans to increase revenue
Negotiated contracts and pricing agreements to ensure mutual benefit for both parties
Collaborated with cross-functional teams to deliver exceptional customer service
Utilized CRM systems to track sales activities and analyze data for ...read more
Q12. Previous knowledge as bde
Yes, I have previous experience as a BDE.
I have worked as a BDE for 2 years at XYZ company
During my tenure, I successfully closed deals worth $1 million
I have a strong network of contacts in the industry
I am proficient in lead generation and client management
Top HR Questions asked in Decorate Your Home
Interview Process at Decorate Your Home
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month