Yatra.com Interview | Set 2 Last Updated : 28 Apr, 2017 Summarize Comments Improve Suggest changes Share Like Article Like Report I appeared for yatra.com interview process. In each round, I have to discuss the problem with interviewer and to tell him my approach. Also they asked About complexity of each solution and also stressed to optimize it Round 1 -> 1. Given a Matrix with 0's and 1's in sorted order. design an algorithm to return row index with maximum number of 1's. after That he modified the ques that some rows are sorted in increasing order and some in decreasing order. 2. Given two arrays of n+m and n size. n+m size array only have m elements and n size array have n elements. Design an algorithm to shift smaller array element in larger array also larger array should be sorted. interviewer asked to give 3 different algorithms. Round 2 -> 1. What is Hashing, Hash table. 2. Algorithm for Level order traversal of BST without using Queue Data structure. 3. Given an array with +ve and -ve numbers. Give an algorithm to find 3 numbers having sum x in less than O(n3) complexity. 4. Binary search. Round 3 -> 1. Given a file with all 255 chars in it. design an algorithm to check whether this file is parenthesis balanced or not. (file handling question) 2. HR questions. 3. Discussion about current company work and my responsibilities. After 3 days i got the offer letter. Do a lot of work on complexity optimization. Comment More infoAdvertise with us Next Article Yatra.com Interview | Set 2 Anonymous Improve Article Tags : Interview Experiences Experiences Yatra.com Practice Tags : Yatra.com Similar Reads Window Functions in SQL SQL window functions are essential for advanced data analysis and database management. It is a type of function that allows us to perform calculations across a specific set of rows related to the current row. These calculations happen within a defined window of data and they are particularly useful 6 min read Top HR Interview Questions and Answers (2025) HR interviews can be daunting but they donât have to be. The bottom line in most hiring processes entails testing the personality of a candidate for their communication traits and company culture fit. Being at the initial or experienced levels of your career being prepared for commonly asked fresher 15+ min read Valid Parentheses in an Expression Given a string s representing an expression containing various types of brackets: {}, (), and [], the task is to determine whether the brackets in the expression are balanced or not. A balanced expression is one where every opening bracket has a corresponding closing bracket in the correct order.Exa 8 min read Top 30 Java 8 Interview Questions and Answers for 2025 Java 8 introduced a host of powerful features that have significantly enhanced the Java programming language. Introducing new features such as Lambda Expressions, Stream API, Functional Interfaces, the new Date and Time API, and more. As a result, Java 8 skills are highly sought after by employers i 15+ min read What is Array? Array is a linear data structure where all elements are arranged sequentially. It is a collection of elements of same data type stored at contiguous memory locations. For simplicity, we can think of an array as a flight of stairs where on each step is placed a value (let's say one of your friends). 2 min read Topic wise multiple choice questions in computer science We have covered multiple choice questions on several computer science topics like C programming, algorithms, data structures, computer networks, aptitude mock tests, etc. Practice for computer science topics by solving these practice mcq questions.This page specifically covers a lot of questions and 2 min read Sort an array of 0s, 1s and 2s - Dutch National Flag Problem Given an array arr[] consisting of only 0s, 1s, and 2s. The task is to sort the array, i.e., put all 0s first, then all 1s and all 2s in last.This problem is the same as the famous "Dutch National Flag problem". The problem was proposed by Edsger Dijkstra. The problem is as follows:Given n balls of 13 min read 50+ Common Interview Questions and Answers Common Interview Questions: Preparing for a job interview can be daunting, but being well-prepared can significantly boost your confidence and chances of success. To help you ace your next interview, here is a list of the Top 50 common interview questions for freshers/college students or experienced 15+ min read Infosys Interview Experience | SP I have applied on off-campus in June month of 2024. After 3-4 weeks, I get emails of the Shortlisted for the online test under the Infosys Campus Recruitment Program. The test date is 6 July 2024. so Infosys SP hiring asks for 3 Problems related to Data Structure and Algorithms (DSA). Problem Levels 4 min read Interview Corner: All Resources To Crack Any Tech Interview This article serves as your one-stop guide to interview preparation, designed to help you succeed across different experience levels and company expectations. Here is what you should expect in a Tech Interview, please remember the following points:Tech Interview Preparation does not have any fixed s 4 min read Like