Skip to content
#

dsa

Here are 331 public repositories matching this topic...

FazeelUsmani
FazeelUsmani commented Oct 8, 2020

Given an array A of random integers and an integer k, find and return the kth largest element in the array.
Try to do this question in less than O(nlogn) time.
Input Format :

Line 1 : An integer N i.e. size of the array
Line 2 : N integers which are elements of the array, separated by spaces
Line 3 : An integer k

Output Format :

kth largest element

Input Constraints :
1 <= N, Ai,

akshitagupta15june
akshitagupta15june commented Oct 23, 2020

PULL REQUESTS WILL BE MERGED

Thankyou so much everyone for contributing in the repository.
As i am the only one to manage the repo so after some simple checks I will surely merge your pull request.
Happy Coding! and contributing to open source.

These contributions are really valuable.

FazeelUsmani
FazeelUsmani commented Nov 7, 2020

Implement Bubble Sort

The task is to complete bubble() function which is used to implement Bubble Sort!

Example 1:

Input:
5
4 1 3 9 7

Output:
1 3 4 7 9
Example 2:

Input:
10
10 9 8 7 6 5 4 3 2 1

Output:
1 2 3 4 5 6 7 8 9 10

Your Task: This is a function problem. You only need to complete the function bubble() that sorts the array. Printing is done automatically b

Improve this page

Add a description, image, and links to the dsa topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the dsa topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.