Behavioral Patterns

BEHAVIOURAL PATTERNS : These design patterns are specifically concerned with communication between objects. Chain of Responsibility : Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each handler decides either to process the request or to pass it to the next handler Read More →

Creational Design Patterns

CREATIONAL PATTERNS These design patterns provide a way to create objects while hiding the creation logic, rather than instantiating objects directly using new operator. This gives program more flexibility in deciding which objects need to be created for a given use case. SINGLETON PATTERN : In object-oriented programming, a singleton class is a class that Read More →

Check Divisibility In a Stream Of 1′s and 0′s

A stream of 1′s and 0′s are coming. At any time we have to tell that the resultant number from the binary digits till that point is divisible by 3 or not. For eg: let’s see one example. Let 1 come (not div by 3).then 1 come so resultant binary number is 11(3) which is Read More →

Razorpay Interview Questions – Set 1

Razorpay Interview Experience | Set 1 (2+ Experience) Round 1 : Q1. Longest palindrome of a given string. Q2. There are n candies and K student. candies are distributed in a order that 1st student get 1 candy, 2nd get 2, 3rd get 3 and so on till nth student. now, 1st student gets k+1 Read More →

Adobe Interview Questions – Set 5

My Interview experience with Adobe for MTS2 (~2years exp) Online Round (Java) 5 coding questions under 90 mins on Hackerrank. 1. There is a list of 20 words. 10 of them are good works, and 10 of them are bad words. Write a regex of not more than 25 characters which would tell if given Read More →

Design Patterns

Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system. Each pattern is like a blueprint that you can customize to solve a particular design problem in your code. Design patterns are divided into three fundamental groups: 1. Behavioral, 2. Creational, 3. Structural Behavioral Read More →

Paytm Interview Questions – Set 3

PayTm Interview Experience | Set 3 (Senior SDET Role) It was really a great experience in Paytm, they actually tested the candidate which they exactly want . Telephonic Round : Q1. About the current work? Q2. Stock buy-sell problem? I gave a solution in O(n2) first and interviewer asked me to optimize it and I Read More →

Oyo Interview Questions – Set 2

Here is the collection of questions based on experience of interview in Oyo Rooms. Round 1: Q1. Determine if there is a subset of the given set with sum equal to given sum? Q2. Given an array of numbers arrange it in the form of a single number such that the concluded number is the Read More →

Flipkart Interview Questions – Set 7

Flipkart Interview Experience | 2years Experience | SDE1 (Offsite Hiring Drive) Machine Round (90mins coding + 30mins review) Design and implement a Multiple Level Cache Management System with N levels, say: L1 -> L2 -> L3 … -> LN. Each layer will store Key-Value pairs of data. Both KEY and VALUE are of type String. Read More →

Print All Possible Words from Phone Digits

Print all possible words from phone number digits. This question is asked by companies like microsoft, google, facebook, Amazon. Lets see example input/output to understand this problem. For example if input number is 234, possible words which can be formed are (Alphabetical order): adg adh adi aeg aeh aei afg afh afi bdg bdh bdi Read More →

String Decode Problem

Problem: If a=1, b=2, c=3,….z=26. Given a string, find all possible codes that string can generate. Give a count as well as print the strings. For example: Input: “1123″. You need to general all valid alphabet codes from this string. Output List aabc //a = 1, a = 1, b = 2, c = 3 Read More →

Microsoft Interview Questions – Set 8 (Intern + Full Time Employee)

15 MCQs on c/c++ output based, 1 java questions was also there. F2F Interview Round 1: Q1. The interviewer first discussed about my projects, specially my data mining project. Q2. Convert a Binary Tree to Doubly Link List in place? Round 2: Q1. One DBMS query select 2nd max salary from table, Q2. OS questions Read More →