Wednesday, April 15, 2020

Time complexities




Linear search.     O(n)
Binary search.     O(logn)
Bubble sort           O(n^2)
Selection sort        O(n^2)
Insertion sort        O(n^2)
Merge sort              O(nlog n)
Quick sort               O(n^2)
Heap sort                 O(nlog n)
Bucket sort              O(n^2)
Radix sort                O(nk)
Tim sort                  O(nlog n)
She'll sort.               O((nlog n))*2)

Monday, April 13, 2020

Data structure

In computer science, a data structure is a data organization, management, and storage format that enables efficient access and modification. More precisely, a data structure is a collection of data values, the relationships among them, and the functions or operations that can be applied to the data.

Sunday, April 12, 2020

Pubg

PlayerUnknown's Battlegrounds is an online multiplayer battle royale game developed and published by PUBG Corporation, a subsidiary of South Korean video game company Bluehole.

Wednesday, April 8, 2020

How to use Retrofit

Retrofit is an awesome type-safe HTTP client for Android and Java built by awesome folks at Square. Retrofit makes it easy to consume JSON or XML data which is parsed into Plain Old Java Objects (POJOs).
If you just want to get the sample project, then you can find it here.
So, without any further delays, lets get started by first creating a new project in Android Studio.
  1. Go to File ⇒ New Project. When it prompts you to select the default activity, select Empty Activity and proceed.
  2. Open build.gradle in (Module:app) and add RetrofitPicassoRecyclerViewGson dependencies like this.

Grocery