Sourcefuse Technologies
20+ HOTEL CHANAKYA Interview Questions and Answers
Q1. Count Ways to Climb Stairs Problem
Given a staircase with a certain number of steps, you start at the 0th step, and your goal is to reach the Nth step. At every step, you have the option to move either one step...read more
Count the number of distinct ways to climb stairs by moving either one step or two steps at a time.
Use dynamic programming to solve the problem efficiently.
Keep track of the number of ways to reach each step by considering the number of ways to reach the previous two steps.
Return the result modulo 10^9+7 to handle large outputs.
Example: For N=4, ways to climb are {0,1,2,3,4}, {0,1,3,4}, {0,2,4}. Total 3 ways.
Jenkins triggers scheduled jobs or pipelines based on configured cron expressions or triggers from external events.
Jenkins uses cron expressions to schedule jobs at specific times or intervals.
Jobs can also be triggered manually or by external events like code commits to a repository.
Pipeline jobs can be triggered by changes in a Git repository, webhook notifications, or other external triggers.
Q3. Merge Sort Linked List Problem Statement
You are given a singly linked list of integers. Your task is to sort the linked list using the merge sort algorithm.
Explanation:
Merge Sort is a divide and conquer algo...read more
Implement merge sort algorithm for singly linked list of integers.
Divide the linked list into two halves using slow and fast pointer technique.
Recursively sort the two halves.
Merge the sorted halves using a merge function.
Ensure to handle edge cases like empty list or single node list.
Example: Input: 3 1 2 -1, Output: 1 2 3 -1
Q4. Palindrome Substrings
Given a string STR
, your objective is to determine the total count of palindromic substrings within it.
Input:
The first line contains an integer 't', the number of test cases. Each subseq...read more
Count the total number of palindromic substrings in a given string.
Iterate through each character in the string and expand around it to find palindromic substrings.
Use dynamic programming to optimize the solution by storing previously computed results.
Consider both odd and even length palindromes while counting.
Example: For input 'abbc', the output should be 5 (['a', 'b', 'b', 'c', 'bb']).
Q5. Delete a Node from a Linked List
You are provided with a linked list of integers. Your task is to implement a function that deletes a node located at a specified position 'POS'.
Input:
The first line contains a...read more
Implement a function to delete a node from a linked list at a specified position.
Traverse the linked list to find the node at the specified position.
Update the pointers of the previous and next nodes to skip the node to be deleted.
Handle cases where the position is at the beginning or end of the linked list.
Ensure to free the memory of the deleted node to avoid memory leaks.
Declarative pipelines focus on the desired state of the pipeline, while scripted pipelines allow for more flexibility and control.
Declarative pipelines use a more structured syntax and are recommended for simpler pipelines.
Scripted pipelines use Groovy script and allow for more complex logic and customization.
Declarative pipelines are easier to read and maintain, while scripted pipelines can be more powerful but harder to troubleshoot.
Declarative pipelines enforce best practi...read more
Amazon ECS is a container management service while Amazon EKS is a managed Kubernetes service.
Amazon ECS is a fully managed container orchestration service, while Amazon EKS is a managed Kubernetes service.
Amazon ECS is more tightly integrated with other AWS services like CloudWatch, IAM, and VPC, while Amazon EKS is more flexible and can run on any cloud provider.
Amazon ECS uses its own proprietary orchestration engine, while Amazon EKS uses Kubernetes for container orchestr...read more
Ingress is a layer 7 HTTP routing mechanism while Load Balancer is a layer 4 TCP/UDP load balancer in Kubernetes.
Ingress is used to expose HTTP and HTTPS routes to services inside the cluster, while Load Balancer is used to distribute traffic across multiple nodes.
Ingress provides features like SSL termination, path-based routing, and name-based virtual hosting, while Load Balancer focuses on distributing traffic based on IP and port.
Ingress is a resource that manages externa...read more
Running Docker inside Docker is useful for testing, CI/CD pipelines, and isolating environments.
Testing different Docker configurations
Running CI/CD pipelines within containers
Isolating development environments
Building and testing Docker images within containers
Ansible is a configuration management tool, while Jenkins is a continuous integration and continuous deployment tool.
Ansible is used for configuration management and automation of tasks, while Jenkins is used for automating the build, test, and deployment processes.
Ansible uses YAML for configuration management, while Jenkins uses Groovy scripts for defining build pipelines.
Ansible is agentless, meaning it does not require any agents to be installed on the target machines, wh...read more
Kubernetes Deployments manage multiple Pods and provide features like scaling, rolling updates, and rollback.
Deployments manage the lifecycle of Pods, ensuring a desired state is maintained.
Pods are the smallest deployable units in Kubernetes, representing a single instance of a running process.
Deployments allow for easy scaling of applications by creating or deleting Pods based on the defined configuration.
Deployments support rolling updates, enabling seamless updates to app...read more
Monolithic architecture is a single, unified system while microservices architecture is a collection of small, independent services.
Monolithic architecture is a single, indivisible unit where all components are tightly coupled.
Microservices architecture breaks down the application into smaller, loosely coupled services that communicate through APIs.
Monolithic architecture can be harder to scale and maintain compared to microservices architecture.
Microservices architecture all...read more
Q13. How do you manage resources and allocate hours?
I manage resources by assessing project needs, assigning tasks based on skill sets, and tracking hours to ensure efficient use of time.
Assess project requirements and determine resource needs
Assign tasks to team members based on their skill sets and availability
Track hours worked by each team member to ensure project stays on schedule
Adjust resource allocation as needed to address any bottlenecks or delays
Q14. MySQL-Aurora vs MySQL, Ansible vs Jenkins
MySQL-Aurora is a managed service while MySQL requires manual management. Ansible and Jenkins are both automation tools.
MySQL-Aurora is a managed service provided by AWS, while MySQL requires manual management.
MySQL-Aurora is more scalable and fault-tolerant than MySQL.
Ansible is a configuration management tool that automates the deployment and management of software.
Jenkins is a continuous integration and continuous delivery (CI/CD) tool that automates the build, test, and d...read more
Q15. How do you contribute to Profit Margin?
I contribute to profit margin by optimizing project timelines, reducing costs, and maximizing resources.
Optimizing project timelines to ensure efficient use of resources
Reducing costs through effective budget management and negotiation with vendors
Maximizing resources by assigning tasks effectively and utilizing team members' strengths
Implementing cost-saving measures such as automation or process improvements
Identifying and capitalizing on opportunities for revenue generatio...read more
Q16. How do you track project progress?
I track project progress using project management software, regular status meetings, progress reports, and milestone tracking.
Utilize project management software to track tasks, timelines, and milestones
Hold regular status meetings with team members to discuss progress and address any issues
Generate progress reports to provide stakeholders with updates on project status
Track milestones to ensure project is on schedule and within budget
Q17. How do to track project progress?
Project progress can be tracked through regular status updates, milestone tracking, and using project management tools.
Regular status updates from team members to track tasks completed and any roadblocks
Tracking milestones to ensure project is on schedule
Utilizing project management tools like Gantt charts or Kanban boards to visualize progress
Conducting regular meetings to discuss progress and address any issues
Using key performance indicators (KPIs) to measure project succe...read more
Q18. What is the lifecycle of a project?
The project lifecycle consists of initiation, planning, execution, monitoring and controlling, and closing phases.
Initiation: Define the project, set goals, and obtain approval.
Planning: Develop a roadmap, allocate resources, and create a schedule.
Execution: Implement the plan, manage resources, and communicate progress.
Monitoring and Controlling: Track performance, make adjustments, and address issues.
Closing: Finalize deliverables, obtain acceptance, and close out the proje...read more
Q19. Explain with SQL tables how join work and What are inner join and Left join, Right join?
SQL joins combine rows from two or more tables based on a related column between them.
Inner join returns rows when there is a match in both tables based on the join condition.
Left join returns all rows from the left table and the matched rows from the right table.
Right join returns all rows from the right table and the matched rows from the left table.
Q20. Do you know Project use cases?
Project use cases refer to specific scenarios or situations where a project management approach is applied to achieve specific goals.
Project use cases involve defining project scope, objectives, deliverables, timelines, and resources.
Examples include software development projects, construction projects, event planning projects, and marketing campaigns.
Project use cases help ensure that projects are completed efficiently and effectively, meeting stakeholder expectations and re...read more
Q21. what tools do you use as a PM?
As a PM, I use various tools such as project management software, communication tools, and collaboration platforms.
Project management software (e.g. Microsoft Project, Asana)
Communication tools (e.g. Slack, Microsoft Teams)
Collaboration platforms (e.g. Google Drive, Trello)
Q22. How would you approach slow DB queries?
Q23. Which command is use to see lvm?
The command used to see LVM is 'lvdisplay'.
Use 'lvdisplay' command to see information about logical volumes in LVM.
You can also use 'lvscan' to scan all disks for LVM volumes.
To see a list of all logical volumes, use 'lvs'.
Q24. What do you understand by lvm?
LVM stands for Logical Volume Manager, a tool used in Linux to manage storage by creating logical volumes from physical volumes.
LVM allows for dynamic resizing of logical volumes without downtime.
It provides features like snapshots, striping, mirroring, and thin provisioning.
Example: Creating a logical volume 'lv_data' from physical volume 'sda2'.
Q25. Explain newer features in ECMAScript.
Q26. Mode of Recruitments
We use a variety of recruitment methods including job postings, employee referrals, social media, and recruiting events.
Job postings on various job boards and company website
Employee referrals and internal job postings
Social media platforms like LinkedIn, Twitter, and Facebook
Recruiting events such as job fairs and campus recruiting
Direct sourcing and headhunting through professional networks
Partnering with staffing agencies for contract and temporary positions
More about working at Sourcefuse Technologies
Top HR Questions asked in HOTEL CHANAKYA
Interview Process at HOTEL CHANAKYA
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month