There a tiles in a house arranged in a straight line, they are named -, F, D. Where - is an empty tile, F is a food tile, and D is a dirty tile. You need to find the minimum cost need to put all the food tiles together. You can only move a tile one step at a time, only at a clean tile, if the tile is dirty you have to clean it then move to it. You are given a string, example "--F-D--F--" and you're given x and y respectively, where x is the cost to move a food tile to an adjacent tile, and y is the cost of cleaning a dirty tile. You're also given "q" the number of queries. Your input looks like: n q - where n is the length of the given string, q is the number of queries s - the input string of tiles x y - these are the queries given q times, if q is 1 you'll only have one row of x and y, and so on
Sde Interview Questions
16,653 sde interview questions shared by candidates
Whatsapp messaging system Rest api for alerting system
They asked me about Computer Networks , DSA , my projects that were based on python and full stack. Also about what else do I do apart from coding.
what is your name and from where you belong ?
Core java and SQL questions
Previous Projects Leetcode medium - Path Traversal using breadth first search
Technical Round ---------------------- Q1: Reverse a String. Q2: Print the Vowels in the string. Q3: Print the product present in the container by the input. HR Round -------------- Q1: Why do you choose Tech Mahindra. Q2: Are you willing to relocate. Q3: Do you have any other offers in hand.
Partition of array into equal sum
What are the favourite books and what did you learn from it ?
what is pointer? Types of pointer?
Viewing 1711 - 1720 interview questions