A repository which consists of everything that computer science is all about. Data Structures, Algorithms, Searching, Sorting, Programming Questions, Leetcode, Hackerrank and other important questions.
@angular/core">
Algorithms :- An Algorithms is any well-defined computational procedure that takes some value, or set of values, as input and produces some value, or set of values, as output.
Which Sorting algorithm to use?:- Sorting is a fundamental operation in computer science. As a result, we have a large number of sorting algorithms at our disposal. Which algorithm is best for a given problem depends on among other factors like:
Data Structure :- A data structure is a way to store and orgranize data in order to facilitate access and modifications. No Single data structure works well for all purposes, and so it is important to know the strength and limitations of several of them.
Problems :- There is an interesting subset of problems called NP-complete. Why are these problems interesting?
As a concrete example, consider a delivery company with a central depot. Each day, it loads up each delivery truck at the depot and sends it around to deliver goods to several addresses. At the end of the day, each truck must end up back at the depot so that it is ready to be loaded for the next day. To reduce costs, the company wants to select an order of delivery stops that yields the lowest overall distance traveled by each truck. This problem is the well-known “traveling-salesman problem,” and it is NP-complete. It has no known efficient algorithm. Under certain assumptions, however, we know of efficient algorithms that give an overall distance which is not too far above the smallest possible