Coder Social home page Coder Social logo

alpha037 / data-structures-and-algorithms Goto Github PK

View Code? Open in Web Editor NEW
335.0 3.0 187.0 912 KB

Important data structures and algorithms implemented in Java along with solutions to AlgoExpert problems and some Leetcode problems.

License: MIT License

Java 100.00%
algorithms algorithm algorithms-and-data-structures algorithms-implemented leetcode leetcode-solutions leetcode-java java java-11 google-java-format

data-structures-and-algorithms's Introduction

Data Structures and Algorithms

Some basic implementations of important data structures and algorithms in Java, along with a few LeetCode questions. I'll keep on adding more solutions of LeetCode problems and if you want, you can add them too!
Also, I've started adding solutions to AlgoExpert problems. You can find them in the Contents section.

Explore the docs »

Report Bug · Request Feature

Table of Contents

Built With

  • Java 11 - Since all the data structures and algorithms are implemented with Java, so there's nothing else to be setup except that.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

You need to have Java 11 setup in your local machine before you can run any one of the programs. Check out the official guide from Oracle for that.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated. For more details, check out the contributing guidelines.

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Shubhranil Dutta - [email protected]

Project Link: https://github.com/alpha037/Data-Structures-and-Algorithms

data-structures-and-algorithms's People

Contributors

alpha037 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

data-structures-and-algorithms's Issues

Cracking the Coding Interview

A folder containing the solutions to the data structures and algorithms problems in Cracking the Coding Interview. I think it may be useful for people testing their solutions. Since there are many approaches they can just copy/paste the solutions here and compare their code's behavior. Or, they can just reference solutions from here for better accessability (desk can get cramped with such a large book).
I am currently working my way through the book and can upload solutions as I go.

Nodedepth problem solution is wrong in this project

NodeDepths problem in algoexpertsolution
ques: Need to find the depth of the tree.
below is the solution

int nodeDepth(TreeNode t, int ldepth, int rdepth) {

	if (t == null) {
		return 0;
	} else {

		ldepth = nodeDepth(t.left, ldepth, rdepth) + 1;

		rdepth = nodeDepth(t.right, ldepth, rdepth) + 1;

		if (ldepth > rdepth) {
			return ldepth;
		} else {
			return rdepth;
		}
	}
}

Algoexpert problem statements

You have added solutions to algoexpert problems but you haven't added any questions. could you please add them? I couldn't find questions anywhere. Questions refer to problem statement of questions.

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.