algorithms-in-C-Cplusplus-Java-Python-JavaScript
algorithms-in-C-Cplusplus-Java-Python-JavaScript copied to clipboard
This is a repository created for create a curated list of common search,sorting,insertion,deletion algorithms in C
program to find factorial of a given no. without using recursive function.
Made the algo work for a large value of low and high. #hacktoberfest
Given N jobs where every job is represented by following three elements of it. 1.Start Time 2.Finish Time 3.Profit or Value Associated (>= 0) Find the maximum profit subset of...
Given an input string and a dictionary of words, find out if the input string can be segmented into a space-separated sequence of dictionary words.
Given a cost matrix cost[][] and a position (m, n) in cost[][], write a function that returns cost of minimum cost path to reach (m, n) from (0, 0). Each...
Given a gold mine of n*m dimensions. Each field in this mine contains a positive integer which is the amount of gold in tons. Initially the miner is at first...
Given a gold mine of n*m dimensions. Each field in this mine contains a positive integer which is the amount of gold in tons. Initially the miner is at first...
''' IRIS DATASET ''' # required libraries import pandas as pd from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder from sklearn.metrics import accuracy_score # read the...