First Try to find out which websites may be Hackable from SQL Injection.
Website which has
.aspx?id=1
.php?category=1
.php?cat=2
.php?id=5426(any id)
STEP 1) Find Websites from Google with following code
… Read More Generate next palindrome number
Several Companies like MS, Amazon and Flipkart has started asking this question to Generate next palindrome number.
Say K is given, Generate N such that N is palindrome and N > K.
Logic 1) Create
Flipkart SDET Interview Experience
I have recently appeared for Flipkart Interview for SDET-1 position
Sharing my Interview experience.
… Read More Sharing my Interview experience.
There were Total 5 rounds
Round 1 ) Telephonic Round
I was asked two questions
Q1) Find Pythagoras triplet in array
How Radix sort works
Radix sort is simple and unique sorting method.
It sorts number with LSD and MSD ( Lease Significant Digit to Most Significant Digit)
… Read More It sorts number with LSD and MSD ( Lease Significant Digit to Most Significant Digit)
Radix Sort puts the elements in order by comparing the digits of
Max Sum in circularly situated Values
This question was asked first in FACEBOOK On Campus for Internship.
There are N trees in a circle. Each tree has a fruit value associated with it.
A bird can sit on a tree for
Find if two rectangles overlap
Given two rectangles, find if the given two rectangles overlap or not.
… Read More Note that a rectangle can be represented by two coordinates, top left and bottom right. So mainly we are given following four coordinates.
Search element in a matrix with all rows and columns in sorted order
Given a matrix containing unique numbers in which all rows and columns are in sorted order.
And You have to search an element output its location row,column number .
If no such element the just
… Read More And You have to search an element output its location row,column number .
If no such element the just
Implement LRU Cache
Generally Interviewer can ask you simply to implement LRU cache, first explain which data structure you will use and why.
Its well known coding question being asked by all Tech giants like Amazon , Flipkart,
Given Set of words or A String find whether chain is possible from these words or not
You are given N strings or N words. You have to find whether a chain can be formed with all the strings given namely n ?
Chain : A chain can be formed between 2
Memory Efficient LinkedList
Memory efficient linked list is also called XOR Linked List.
To use lesser memory in doubly link list, such data structure is used.
… Read More To use lesser memory in doubly link list, such data structure is used.
An ordinary doubly linked list stores addresses of the previous and next