Abhinaw TripathiMay 26, 201620 minAndroid Drag View example with source codeCreate Class such as 1)DragActivity.java import android.app.Activity; import android.os.Bundle; import android.util.Log; import...
Abhinaw TripathiMay 26, 20161 minStructural Design PatternWhat is Structural Design Pattern? Ans: Structural DP,s are used for structuring code and objects.It also can be described as how objects...
Abhinaw TripathiMay 26, 20161 minWrite code to partition a linked list around a value x, such that all nodes less than x come before Approach: We iterate through the linked list ,inserting elements into our before list or our after list.Once we reach the end of the...
Abhinaw TripathiMay 26, 20161 minDelete a node in the middle of a singly linked list,given only access to that node.Very simple problem but there is only issue with the solution is if the node to be deleted is the last node in the linked list. public...