Add office photos
Employer?
Claim Account for FREE

Comcast

4.0
based on 237 Reviews
Filter interviews by

10+ Efacec Interview Questions and Answers

Updated 5 Feb 2024

Q1. You are given an array of integers, arr, of size n, which is analogous to a continuous stream of integers input. Your task is to find K largest elements from a given stream of numbers.

Ans.

Use a max heap to keep track of the K largest elements in a continuous stream of integers.

  • Create a max heap of size K to store the K largest elements.

  • For each new element in the stream, compare it with the root of the max heap. If it is larger, replace the root with the new element and heapify.

  • At any point, the root of the max heap will be the Kth largest element in the stream.

Add your answer

Q2. You are given alphanumeric strings s and t. Find the minimum window (substring) in s, which contains all the characters of t.

Ans.

Use sliding window technique to find minimum window in s containing all characters of t.

  • Use two pointers to create a window in s

  • Move the right pointer to expand the window until all characters of t are found

  • Move the left pointer to shrink the window while maintaining all characters of t

  • Update minimum window size as you iterate through s

Add your answer

Q3. Given a variety of coin types defining a currency system, find the minimum number of coins required to express a given amount of money. Assume an infinite supply of coins of every type. (Solution)

Ans.

The minimum number of coins required to express a given amount of money is calculated using a dynamic programming approach.

  • Use dynamic programming to calculate the minimum number of coins required for each amount from 1 to the given amount.

  • Start with the base case of 0 coins required for amount 0, then iterate through each coin type to calculate the minimum coins required for each amount.

  • Choose the minimum of the current minimum coins required and the minimum coins required f...read more

Add your answer

Q4. Given a binary tree “B” with unique values, write a program to find: 1. The longest consecutive sequence. 2. The length of the longest path comprising connected nodes with consecutive values.

Ans.

Program to find longest consecutive sequence and length of longest path in a binary tree.

  • Traverse the binary tree using depth-first search (DFS)

  • Keep track of the current consecutive sequence length and the longest consecutive sequence found so far

  • Update the length of the longest path as you traverse the tree

Add your answer
Discover Efacec interview dos and don'ts from real experiences

Q5. Write a program to find the lowest common ancestor of two nodes of a given binary tree “B” with unique values.

Ans.

Program to find lowest common ancestor of two nodes in a binary tree with unique values.

  • Start from the root and traverse the tree to find the paths from root to the two nodes.

  • Compare the paths to find the lowest common ancestor node.

  • Use recursion to traverse the tree efficiently.

  • Handle edge cases like if one of the nodes is the ancestor of the other.

Add your answer

Q6. Given a sequence, return its next lexicographically greater permutation. If such a permutation does not exist, then return it in ascending order.

Ans.

Return the next lexicographically greater permutation of a given sequence or return it in ascending order if not possible.

  • Use the concept of lexicographic ordering to find the next permutation.

  • If the sequence is already in descending order, return it in ascending order.

  • Examples: ['a', 'b', 'c'] -> ['a', 'c', 'b'], ['3', '2', '1'] -> ['1', '2', '3']

Add your answer
Are these interview questions helpful?

Q7. Write a code to convert a given set of integers into their Roman number equivalents.

Ans.

Convert a set of integers to Roman numerals

  • Create a function that takes an integer array as input

  • Use a loop to iterate through each integer and convert it to Roman numeral

  • Implement a mapping of integers to Roman numerals for conversion

  • Return an array of strings containing the Roman numeral equivalents

Add your answer

Q8. Find all palindromic decompositions of a given string s. (Solution)

Ans.

Find all palindromic decompositions of a given string s.

  • Iterate through all possible substrings and check if they are palindromes.

  • Use backtracking to generate all possible decompositions.

  • Return the list of palindromic decompositions.

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Design an autocomplete feature for a search engine.

Ans.

Autocomplete feature for a search engine

  • 1. Display suggestions as user types in the search bar

  • 2. Suggestions should be based on popular searches or previous searches

  • 3. Allow users to select a suggestion to complete their search

  • 4. Update suggestions in real-time as the user continues typing

Add your answer

Q10. Design a customer relationship management platform for Comcast.

Ans.

A customer relationship management platform for Comcast would focus on personalized customer interactions and efficient issue resolution.

  • Implement a centralized database to store customer information and interaction history.

  • Integrate communication channels such as phone, email, and chat for seamless customer support.

  • Utilize data analytics to track customer behavior and preferences for targeted marketing campaigns.

  • Automate processes for issue resolution and follow-up to improv...read more

Add your answer

Q11. Design a ticketing management system for a theatre.

Ans.

A ticketing management system for a theatre to streamline ticket sales and seat allocation.

  • Create an online platform for customers to purchase tickets

  • Implement a seating chart to allow customers to select their seats

  • Include options for different ticket types (e.g. VIP, standard, student)

  • Generate electronic tickets for customers to present at the theatre entrance

  • Integrate payment processing for secure transactions

Add your answer

Q12. Design a home monitoring system for Comcast.

Ans.

Design a home monitoring system for Comcast.

  • Include smart sensors for monitoring temperature, humidity, and motion

  • Integrate with smart devices like thermostats, cameras, and door locks

  • Provide real-time alerts and notifications to homeowners via mobile app

  • Allow remote access and control of home devices

  • Offer optional professional monitoring services for added security

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Accountant Interview Questions from Similar Companies

3.7
 • 28 Interview Questions
3.9
 • 26 Interview Questions
3.9
 • 24 Interview Questions
4.1
 • 16 Interview Questions
3.9
 • 14 Interview Questions
3.7
 • 13 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter