Git Product home page Git Product logo

java-dsa-interviewprep's Introduction

Memes stopped as Reddit is not allowing me to fetch more memes, giving Error:403 πŸ˜’.

--------------------------------------------------------------------------------------------------------------------------------------------

Funny Meme

Warning: The memes you see here are highly volatile and have a limited lifespan of 5 minutes. So, better hurry up and laugh before they disappear! πŸ˜„

------------------------------------------------------------------------------------------------------------------------------------------------

Connect with meπŸ‘‹

Gmail Badge

Visitor Count πŸ‘€

rohan472000 :: Visitor's Count

GitHub Streak

java-dsa-interviewprep's People

Contributors

0xscratch avatar abdul-azeez060 avatar amansheoran15 avatar avinashkrishna07 avatar ayushsarode avatar charlie8658 avatar dharmil03 avatar himateju avatar isaumya1011 avatar knockcat avatar matteobaccan avatar mohit-0918 avatar prasad-chavan1 avatar priyankapatel1612 avatar rishabh-saket avatar rohan472000 avatar rohit777anand avatar sheetalpunyani avatar shivamk23 avatar sreshtech avatar thepremshankarsingh avatar whitehawk0910 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

java-dsa-interviewprep's Issues

Hactoberfest 2023

Hi Contributors,

This Repository is open for Hactoberfest2023, will be awaiting for your PRs, in case if any queries you can discuss here in this issue.

If no issue is there, then make a issue which you think is good to raise.

We will be accepting code and no-code PRs.

Update README.md

can someone fix/update its README.md as many topics are not included in it.

Also, put algo which are outside of folder to required folder.

Imrpove Readme.md: Table of content is not redirecting to its topic

Hey! @rohan472000! The purpose of a Table of Contents is to provide readers with a quick and efficient way to navigate through the document's content. However, in its current state, the Table of Contents fails to fulfill this essential role. When readers click on the links or page numbers listed in the Table of Contents, they do not get redirected to the corresponding topics within the document.

I want to work on this Issue, Can you assign this to me?

Top interview questions on Strings

I want to make a folder on String where I will update top String problem.
As I requested previously under Hactoberfest issue please assign me this.
Thank you

Move files into their respective directory

In this repo, many files are outside of the directory, which is not a good practice to keep, kindly someone raise a PR for putting those files in their appropriate directory.

Merge Sort Using C++

#include
#include

// Function to merge two sorted subarrays into a single sorted array
void merge(std::vector& arr, int left, int mid, int right) {
int n1 = mid - left + 1;
int n2 = right - mid;

// Create temporary arrays
std::vector<int> leftArr(n1);
std::vector<int> rightArr(n2);

// Copy data to temporary arrays leftArr[] and rightArr[]
for (int i = 0; i < n1; i++) {
    leftArr[i] = arr[left + i];
}
for (int i = 0; i < n2; i++) {
    rightArr[i] = arr[mid + 1 + i];
}

// Merge the temporary arrays back into arr[left..right]
int i = 0, j = 0, k = left;
while (i < n1 && j < n2) {
    if (leftArr[i] <= rightArr[j]) {
        arr[k++] = leftArr[i++];
    } else {
        arr[k++] = rightArr[j++];
    }
}

// Copy the remaining elements of leftArr[], if any
while (i < n1) {
    arr[k++] = leftArr[i++];
}

// Copy the remaining elements of rightArr[], if any
while (j < n2) {
    arr[k++] = rightArr[j++];
}

}

// Main function to perform Merge Sort
void mergeSort(std::vector& arr, int left, int right) {
if (left < right) {
int mid = left + (right - left) / 2;

    // Recursively divide the array into two halves
    mergeSort(arr, left, mid);
    mergeSort(arr, mid + 1, right);

    // Merge the sorted halves
    merge(arr, left, mid, right);
}

}

int main() {
int n;
std::cout << "Enter the number of elements: ";
std::cin >> n;

std::vector<int> arr(n);

std::cout << "Enter " << n << " elements: ";
for (int i = 0; i < n; i++) {
    std::cin >> arr[i];
}

std::cout << "Original array: ";
for (int num : arr) {
    std::cout << num << " ";
}
std::cout << std::endl;

mergeSort(arr, 0, arr.size() - 1);

std::cout << "Sorted array: ";
for (int num : arr) {
    std::cout << num << " ";
}
std::cout << std::endl;

return 0;

}

Make PR template

For this repo, I need a good PR template which has all necessary checkboxes so that every PR will be easily understandable to viewers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.