Note that a rectangle can be represented by two coordinates, top left and bottom right. So mainly we are given following four coordinates.
Given two rectangles, find if the given two rectangles overlap or not.
… Read More 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
Sort an array according to the order defined by another array
Sort an array according to the order defined by another array
Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those
Given two arrays A1[] and A2[], sort A1 in such a way that the relative order among the elements will be same as those
Connect n ropes with minimum cost
Connect n ropes: There are given n ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal to sum of their lengths. We need
TicTacToe Game As Asked in Flipkart
Write a running code in any language to implement the famous tic-tac-toe game.
Decide which basic functions which would be required to implement the same.
Decide which basic functions which would be required to implement the same.
Then try to code it your self else basic code
Get Minimum element in O(1) from input numbers or Stack
Question : Get Minimum element in O(1) from Input Numbers or Stack
– With any traditional way we can’t get minimum element in O(1)
– so we need to come up with different data structure.
simple sql injection
Simple SQL Injection occurs when we try to penetrate security through false login and password.
This happens because of mainly inefficient code.
… Read More This happens because of mainly inefficient code.
Try with your self.
1) Search in Google
“inurl:admin.asp”
“inurl:login/admin.asp”
“inurl:admin/login.asp”
“inurl:adminlogin.asp”
“inurl:adminhome.asp”