Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linear regression using straight line@abhishekgupta368 #1834

Conversation

abhishekgupta368
Copy link
Contributor

Linear regression equation using straight line #1651
Fixes #

Checklist:

  • 4 space indentation.
  • Coding conventions are followed.
  • Input is taken dynamically.
  • Sample Input / Output is added at the end of file.
  • Logic Documentation (Comments).
  • File names are correct.

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

Changes proposed in this pull request:

  • Added and calculated Linear Regression using Straight line

Languages Used:

  • python

Files Added:

  • Added_Linear_Regression_using_Straight_line.py

We're happy to help you get this ready -- don't be afraid to ask for help.

Thanks!

@asha15
Copy link
Collaborator

asha15 commented Mar 4, 2020

@abhisekssp4025 you have added the .cpp file too. please remove it and let me know

@abhishekgupta368
Copy link
Contributor Author

ok

@abhishekgupta368
Copy link
Contributor Author

done

Comment on lines 6 to 8
"""
Initialize arr_x and arr_y
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this as a single line comment

"""
Initialize arr_x and arr_y
"""
def __init__(self,arr_x,arr_y,n):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space after comma

Comment on lines 13 to 15
"""
calculate the intercept of line
"""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this as a single line commend

Comment on lines 17 to 20
xy=0
x=0
y=0
sqr_x=0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space before and after = sign

Comment on lines 22 to 27
xy = xy + self.__arr_y[i]*self.__arr_x[i]
x = x + self.__arr_x[i]
y = y + self.__arr_y[i]
sqr_x = sqr_x + self.__arr_x[i]*self.__arr_x[i]

a1 = (self.__n * xy - x*y)/(self.__n*sqr_x - x*x)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space before and after operators

"""
return the value of equation
which is
y = mx+c
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take this to the previous line

Comment on lines 50 to 51
def prediction(self,x):
y = self.slope() + self.intercept()*x
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space after comma
keep space before and after operators

Comment on lines 55 to 57
# n = 7
# x = [1,2,3,4,5,6,7]
# y = [0.5,2.5,2.0,4.0,3.5,6.0,5.5]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this are sample inputs ?

Comment on lines 59 to 60
arr_x = list(map(int,input("Enter x array: ").strip().split(',')))
arr_y = list(map(float,input("Enter y array: ").strip().split(',')))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space after comma

Comment on lines 62 to 74
if(n==len(arr_x) and n==len(arr_y)):
ls = LinearRegression(arr_x,arr_y,n)
print("Calculated intercept: ",ls.intercept())
print("Calculated slope: ",ls.slope())

while(True):
flag = str(input("Do you want to predict values(y/n): "))
if(flag=="n"):
print("System Exit")
break
elif(flag=="y"):
c = int(input("Enter value for prediction: "))
print("Predicted value: ",ls.prediction(c))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space after comma
keep space before and after operators

@abhishekgupta368
Copy link
Contributor Author

done

@@ -0,0 +1,76 @@
class LinearRegression():
"""Initialize arr_x and arr_y"""
def __init__(self , arr_x , arr_y , n):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep a space after the comma, not before

sqr_x = sqr_x + self.__arr_x[i] * self.__arr_x[i]

a1 = (self.__n * xy - x*y) / (self.__n * sqr_x - x * x)
return a1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep a line space after this

xy = 0
x = 0
y = 0
sqr_x = 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep a line space after this

sqr_x = sqr_x + self.__arr_x[i] * self.__arr_x[i]

a0 = (y * sqr_x - x * xy) / (self.__n * sqr_x - x * x)
return a0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep a line space after this

a0 = (y * sqr_x - x * xy) / (self.__n * sqr_x - x * x)
return a0
"""return the value using line of equation: y = m * x + c"""
def prediction(self , x):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the space before comma

arr_x = list(map(int , input("Enter x array: ").strip().split(',')))
arr_y = list(map(float , input("Enter y array: ").strip().split(',')))

if(n==len(arr_x) and n==len(arr_y)):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space before and after ==

arr_y = list(map(float , input("Enter y array: ").strip().split(',')))

if(n==len(arr_x) and n==len(arr_y)):
ls = LinearRegression(arr_x , arr_y , n)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the space before comma

Comment on lines +42 to +43
arr_x = list(map(int , input("Enter x array: ").strip().split(',')))
arr_y = list(map(float , input("Enter y array: ").strip().split(',')))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the space before comma


while(True):
flag = str(input("Do you want to predict values(y/n): "))
if(flag=="n"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space before and after ==

if(flag=="n"):
print("System Exit")
break
elif(flag=="y"):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep space before and after ==

@asha15
Copy link
Collaborator

asha15 commented Mar 5, 2020

squash your commits and push it

@abhishekgupta368
Copy link
Contributor Author

abhishekgupta368 commented Mar 5, 2020

done

@abhishekgupta368
Copy link
Contributor Author

please somebody, review it

@asha15 asha15 merged commit a2978d1 into jainaman224:master Mar 7, 2020
yuktirapartiwar added a commit to yuktirapartiwar/Algo_Ds_Notes that referenced this pull request Mar 7, 2020
Linear regression using straight line@abhishekgupta368 (jainaman224#1834)
ashishnagpal2498 pushed a commit to ashishnagpal2498/Algo_Ds_Notes that referenced this pull request Mar 12, 2020
)

* reverse_linked_list.cpp

* Linear_Regression_Using_Straight_Line@abhishekgupta368

* linear_regression

* linear_regression2

* delete reverse.cpp

* add_space_and_improve_comment

* added_space_in_comp
asha15 pushed a commit that referenced this pull request May 30, 2020
* Huffman Encoding using C++ STL

added simpsons rule in c++ and java (#1828)

Added Cyclesort in C# (#1679)

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Revert "Added Cyclesort in C# (#1679)" (#2002)

This reverts commit 03676b2.

Updated Array_Rotation  (#1915)

Added code for right rotation in Array_Rotation File

Added Merge Sort in C# (#1734)

* Added Merge Sort

* Updated Requested Changes

* Update Merge_sort.cs

* Update Merge_Sort.java

* Updated

* Update Merge_sort.cs

Added Implementation of CRT in JavaScript (#1909)

Fixes #1571 [Added README File] (#1731)

* Added README File

* Updated README File

Updated README File

Added Cyclesort in C# (#2031)

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

Update Cycle_Sort.cs

add Armstrong Number code in Golang (#1844)

Update issue templates

Update issue templates

Delete custom.md

Rename ArmstrongNumber.go to Armstrong_Number.go

Added Egg_Drop problem implementation in C# (#1585)

added boyer moore algo in java (#1753)

Added boyer moore algo in java

* Added jump search. in Cpp

(#1646) Implementation of palindrome in C & C++ GSSoC'20 (#1825)

Added code for implementation of palindrome in C/C++

Added Sum_Of_Digits.js (#1724)

Fibonacci_Number.php added (#1727)

* Create Fibonacci_Number.php

* Update Fibonacci_Number.php

* Update Fibonacci_Number.php

* Update Fibonacci_Number.php

Create Quick_Sort.cs (#2137)

BFS for Disconnected Graph in Java (#1937)

* added BFS for Disconnected Graph in Java

Start of loop in a linked list (#1743)

* Create StartOfLoop.java

* Update StartOfLoop.java

* Update StartOfLoop.java

* Update StartOfLoop.java

* Update StartOfLoop.java

* Update StartOfLoop.java

* Update StartOfLoop.java

Create Stooge_Sort.cpp (#2119)

Update Stooge_Sort.cpp

Coin Change Problem solution in JS (#2132)

ADDED Readme for Activity Selection (#2169)

Fixes #2117

- [ ] 4 space indentation.
- [ ] Coding conventions are followed.
- [ ] Input is taken dynamically.
- [ ] Sample Input / Output is added at the end of file.
- [ ] Logic Documentation (Comments).
- [ ] File names are correct.

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

- Added Readme.md file

- Readme.md

> We're happy to help you get this ready -- don't be afraid to ask for help.

Thanks!

Added JS Implementation (#2180)

Implementation of Dijkstra Algorithm in JS (#1944)

Linear regression using straight line@abhishekgupta368 (#1834)

* reverse_linked_list.cpp

* Linear_Regression_Using_Straight_Line@abhishekgupta368

* linear_regression

* linear_regression2

* delete reverse.cpp

* add_space_and_improve_comment

* added_space_in_comp

Created Cycle_Sort.js (#1847)

Doubly Linked List in Java (#1833)

* Doubly Linked List in Java

Bucket Sort in Kotlin (#2220)

Created Depth_First_Search.js (#1832)

Created Fibonacci_Number.js (#1721)

Added Tree_Postorder_Traversal implementation in JavaScript. (#1978)

* Added Tree_Postorder_Traversal in JavaScript.

issue 2024 Fermat_Little_Theorem java (#2264)

updated Array_Rotation.cpp (#2277)

Create AKS.cs (#2140)

* Create AKS.cs

* Pancake Sort Algorithm in Python

SYNCING WITH MASTER (#2294)

Rat In Maze (#2183)

Implementation of Binary Insertion Sort in Python (#1980)

* Create Binary_Insertion_Sort.py

Added README File for Linear Regression

* Added README File

 Eveodd.java #1467 (#1963)

A star search - Python

Revert " Eveodd.java #1467 (#1963)" (#2385)

This reverts commit 75ac3c4.

Bitwise addition in C and C++

added matrix chain multiplication for python (#2306)

Create Pigeonhole_Sort.cs (#2307)

Added ReadMe for AKS Primality Test (#2134)

Code to check whether a LinkedList contains Palindromic data or not (#2197)

Lcs in c (#1715)

* Added lcs in C language

* Dynamic input added

* added requested changes for more readability

* removed a.out file

Matrix chain multiplication in C language. (#1823)

* Matrix chain multiplication in C language.

* updated problem description and improved readability.

* edits for more readability

* gave meaningful names to variables

Sort Array of 0's 1's 2's in C++ (#1999)

Added Digit_Count.rb (#2038)

Implemented Armstrong Number in PHP. (#2295)

QuickSort Implementaion updated to ES6+ syntax in JS (#1719)

Added Hamiltonian_Cycle.cpp (#2314)

Subsequence of string using bitmasking (#2017)

Finding last digit of nth fibonacci number (#2293)

Added C++ implementation of Regula Falsi method (#2379)

* Update Karatsuba_multiplication_algo as per #1684 (#1989)

Quicksortreadme (#2069)

* added karatsuba multiplication in python along with readme

* updated readme for quick sort to include the example of last element as pivot

* modified readme

* modified readme for indentation

* modified readme for quicksort

* deleting files

Anagram Program modified . (#2335)

Revert "Revert " Eveodd.java #1467 (#1963)" (#2385)" (#2418)

This reverts commit 4889547.

Implementation Optimal strategy for a game (set-1) by dynamic program…(#1622) (#1985)

* Implementation Optimal strategy for a game (set-1) by dynamic programming

* Changes request #1985

* changes request-2 #1985

* changes the request #1985

Completion of LCS implementation in JS issue#2252 (#2313)

added 1-D array in Ruby (#2347)

Added Arithmetic Progression in C Sharp (#2351)

squashed-with-requested-changes (#1811)

Spiral Array C++ (#2234)

Large_Number_Factorial added (#2279)

Quick_Hull implementation in cpp and python (#1714)

Issue#1867 leap year (#2254)

Added sum of two matrices in C. (#2368)

Closes issue #1599 (#1742)

* Parial fulfillment  of issue #1599

* Update PowerOfAnyGivenNo.java

* Enchacements Made

Added additional base cases.
Applied 4 space Indentation

* Added CPP file

* Added C implementation

* Update PowerOfAnyGivenNo.java

* Update PowerOfAnyGivenNo.cpp

* Update PowerOfAnyGivenNo.cpp

* Update PowerOfAnyGivenNo.c

* Delete PowerOfAnyGivenNo.c

* Delete PowerOfAnyGivenNo.cpp

* Update PowerOfAnyGivenNo.java

Create Binary_Insertion_Sort.cs (#2139)

* Create Binary_Insertion_Sort.cs

* File changed as requested

* Updated

* For Loop Updated

Factorial (#1854)

* Factorial in C,C++,JAVA

* Update Factorial.c

* C++

* C++

* JAVA

* C

* Factorial

* Update Factorial.c

* Update Factorial.cpp

* Update Factorial.java

* Update Factorial.c

* Update Factorial.cpp

* Update Factorial.java

* Update Factorial.cpp

* Update Factorial.c

* Update Factorial.cpp

* Update Factorial.c

* Update Factorial.cpp

* Update Factorial.java

Minimum inversion cpp code added and changes done (#1902)

Changes Done

Changes Done

Changes Done

Added Kmeans algorithm using C (#2417)

Fixed indetation for do-while loop

Created Radix Sort in C# (#2311)

* Create Pancake_Sort.cs

* Update Pancake_Sort.cs

* Create Radix_Sort.cs

* Delete Pancake_Sort.cs

* Update Radix_Sort.cs

EvenOdd Python (#2303)

* EvenOdd Python

* EvenODD python

* pallindrome of string in python

* Update EvenOdd.py

plz merge the latest commit. Thanks and sorry for inconvenience.

* Delete pallindrome_string.py

* Update EvenOdd.py

* Update EvenOdd.py

Co-authored-by: samjain2001 <sambhav290902@gmail.com>

Karatsuba algorithm (#2490)

* added karatsuba multiplication in python along with readme

* modifications for karatsuba algorithm

Menu Driven Circular Doubly Linked List in c++ (#2423)

* Menu Driven Program

* Updated and Renamed File

* Delete Circular-Doubly-Linked-List.cpp

* Menu Driven Program

Updated and Renamed File

* Update Circular_Doubly_Linked_List.cpp

* Delete Circular_Doubly_Linked_List.cpp

* Delete Circular-Doubly-Linked-List.cpp

* all done

* Commited Latest Changes

* Commited Latest Changes

* Commited Latest Changes

* Committed Latest Changes

* Committed Latest Changes

* Committed Latest Changes

* Committed Latest Changes

* Committed Latest Changes

* Committed Latest Changes

* # This is a combination of 6 commits.

Menu Driven Program

Updated and Renamed File

Menu Driven Program

Updated and Renamed File

Delete Circular-Doubly-Linked-List.cpp

Update Circular_Doubly_Linked_List.cpp

all done

* parent 575de38
author Hardev_Khandhar <hardev.khandhar09@gmail.com> 1583005888 +0530
committer Hardev_Khandhar <hardev.khandhar09@gmail.com> 1583948499 +0530

Menu Driven Program

Updated and Renamed File

Menu Driven Program

Updated and Renamed File

Delete Circular-Doubly-Linked-List.cpp

Update Circular_Doubly_Linked_List.cpp

all done

Commited Latest Changes

Commited Latest Changes

Commited Latest Changes

Committed Latest Changes

Committed Latest Changes

Committed Latest Changes

Committed Latest Changes

Committed Latest Changes

Committed Latest Changes

* Updated Changes

Adding ASCII_Subsequence in C, Python and JavaScript (Closes issue #1703) (#2290)

* Add files via upload

* Improved Indentation

Improved Indentation

* Update ASCII_Subsequences.c

* Update ASCII_Subsequences.c

* Update ASCII_Subsequences.js

* Update ASCII_Subsequences.py

* Update ASCII_Subsequences.js

* Update ASCII_Subsequences.py

check whether a string is palindrome (#2402)

* pallindrome string python

* Update and rename pallindrome_string.py to palindrome_string.py

Fixed Typo in file name

* Update palindrome_string.py

added Power_Of_Two in JS (#2362)

* added Power_Of_Twoin JS

* Added space around minus in line 11

Implementation of Pascal Triangle in Java and Python Added

Adding Python Implementation for Kosaraju Algorithm (Issue #2246) (#2488)

* Adding Python implementation for issue #2246

* Update Kosaraju_Algorithm.py

Added code for Round Robin Scheduling (#1928)

* Add files via upload

* Update Readers_Writers_Problem.cpp

* Update Readers_Writers_Problem.cpp

* Add files via upload

* Update Round_Robin_Scheduling.cpp

* Delete Round_Robin_Scheduling.cpp

* Add files via upload

* Delete Readers_Writers_Problem.cpp

* Indentation and space around operators fix

* Update Round_Robin_Scheduling.cpp

* Update Round_Robin_Scheduling.cpp

* Update Round_Robin_Scheduling.cpp

* Update Round_Robin_Scheduling.cpp

* Update Round_Robin_Scheduling.cpp

* Update Round_Robin_Scheduling.cpp

Closes Issue #1601 (#1744)

Added Count Frequency Of Elements In Java For issue #1601

Pancake Sorting in Java (#2022)

* Pancake Sorting implemented in Java language For issue #1988

Implementation of Bucket Sort in JS (#2431)

Create Readme.md (#2383)

* Create Readme.md

* Update Readme.md

Added KNN algorithm using C (#2074)

Fixed indentation

Fixed indentation

Fixed indentation again

Fixed indentation

Added more comments in the code

Fixed Identaion and few coding conventions

Fixed Identaion

Fixed Identaion and few coding conventions

Added Bisection_Method.cpp (#2458)

Circular Queue in JAVA (#2471)

* Added Circular_Queue.java

* Added Circular_Queue.java

Co-authored-by: pratilipi <pratilipiaich@gmail.com>

Fibonacci_Number using DP approach added (#2060)

* Fibonacci_Number using DP approach added

indentation corrected

* Indentation Corrected

* Fibonacci number using DP Approach added

Length of Linked List in C, Java Added

Implemented the Gnome Sort Completely. (#2275)

* Implemented the Gnome Sort Completely.

* Implemented the requested Changes.

* Made the requested changes.

* Changes Done.

Merge_Sort.php added (#1820)

* Create Fibonacci_Number.php

* Delete Fibonacci_Number.php

* Create Merge_Sort.php

* Update Merge_Sort.php

* Updated

* Updated

Implementation of Karatsuba Algorithm in JS (#2420)

Create Shell_Sort.cs (#2457)

Update Shell_Sort.cs

Update Shell_Sort.cs

Update Shell_Sort.cs

Finding last digit of nth term in squares of fibonacci number (#2285)

* Add files via upload

* Delete fib.cpp

* Create a.txt

* Delete a.txt

* Issue Resolved and  file is added

* Issues Resolved please review

* Issue of comment resolved

* commited changes in issues

Added minesweeper implementation in C++ (#2541)

LCM of N elements of an array

Added Longest Increasing Subsequence code in Go (#2493)

* Longest Increasing Subsequence code in Go

* Longest Increasing Subsequence code in Go

* Updated problem description

* No more than 80 chars per line

added ruby implementation of Armstrong number (#2501)

* this is a ruby implementation of the armstrong number.
 On branch master
 Changes to be committed:
	new file:   Armstrong_Number/Armstrong_Number.rb

* Update Armstrong_Number.rb

ruby implementation of armstrong number.

* On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
    modified:   Armstrong_Number.rb

checked with 153,370

* Changes to be committed:
	modified:   Armstrong_Number.rb

* Added 4 space indent

Done with indentation across the file.

* Taking input dynamically

* Changes to be committed:
	new file:   Bead_Sort.rb

* Changes to be committed:
	new file:   Bead_Sort.rb

* Revert " Changes to be committed:"

* Delete Bead_Sort.rb

* Delete Armstrong_Number.rb

* Create Armstrong_Number.rb

* added Armstrong_Number.rb

* Changes to be committed:
	modified:   Armstrong_Number/Armstrong_Number.rb

* modified:   Armstrong_Number/Armstrong_Number.rb

Postfix Evaluation in C

Max_circular_sum_added (#2354)

Ternary Search in C# (#2176) (#2494)

Create arrayList.java (#2230)

Update arrayList.java

Modifications after Review

Update arrayList.java

Made changes as suggested

palindromic_string_added 2, indentation fixed C/C++ (#2356)

check palindrome in a number in Java (#2492)

updated with changes

updated

updated changes

check palindrome in a string in Java (#2491)

updated

Added code for Tower Of Hanoi in Go language (#2562)

 Added code for Tower Of Hanoi in Go language

Merge-sort-3-way-with-reuested-changes (#2505)

Created Count_Rotations.java (#1804)

Added method to find how many times a sorted array is rotated using Binary Search

Integer to Roman Program (#2216)

Depth First Search in Dart (#2561)

Breadth first search using dart (#2560)

Postman Sort in C# (#2511)

CircleSort Algo in Kotlin (#2460)

* CircleSort in Kotlin

* Arranged Code

* Update Circle_Sort.kts

added armstrong in c#

added armstrong in c#

Implemented KNN algorithm using C++ (Closes issue #1789) (#2546)

* Added the KNN Algorithm implemented using C++

* Added Tree_Inorder_Traversal.js

* Delete Tree_Inorder_Traversal.js

Binary Tree Bottom View, Top View and Right View in C #1577 (#2396)

* Binary Tree Bottom View in C

* Update BinaryTree_Bottom_View.c

* Update BinaryTree_Bottom_View.c

* Create Binary_Tree_Right_View.c

* Create Binary_Tree_Top_View.c

* Rename BinaryTree_Bottom_View.c to Binary_Tree_Bottom_View.c

* Update Binary_Tree_Bottom_View.c

* Update Binary_Tree_Right_View.c

* Update Binary_Tree_Top_View.c

Tower of Hanoi in Kotlin (#2531)

* Add files via upload

* Update Tower_Of_Hanoi.kt

* Update Tower_Of_Hanoi.kt

* Update Tower_Of_Hanoi.kt

* Update Tower_Of_Hanoi.kt

Added Tower Of Hanoi in PHP (#2577)

* Added Tower Of Hanoi in PHP

* Update Tower_Of_Hanoi.php

Tower of Hanoi in Dart (#2513)

* Tower of Hanoi in Dart

* Update Tower_of_Hanoi.dart

* Update Tower_of_Hanoi.dart

* Update Tower_of_Hanoi.dart

* Add files via upload

* Update Tower_of_Hanoi.dart

* Update Tower_of_Hanoi.dart

* Update Tower_of_Hanoi.dart

added kadane algo in dart (#2517)

* added kadane algo in dart

* Dynamic Inputs, Comments position changed

1. Code changed to take dynamic inputs
2. Added comments before the code

* Added sample input/output at the end of the file

* Indented return statements properly

* Added Karatsuba Algo in Dart

* Added spaces between operators and Sample I/O

* Deleting mistakenly added file

Karatsuba_Algorithm.dart was accidentally pushed to the my branch that sent for PR. I have removed it now.

Find whether a number is Palindrome or not (#2327)

* EvenOdd Python

* EvenODD python

* pallindrome of string in python

* pallindrome number in python

* Update and rename pallindrome_no.py to palindrome_no.py

Fixed the all the typos

* Delete EvenOdd.py

* Delete pallindrome_string.py

* Update palindrome_no.py

* Update palindrome_no.py

* Update palindrome_no.py

Co-authored-by: samjain2001 <sambhav290902@gmail.com>

Jhonson Algorithm in C# (#2626)

* Jhonson Algorithm in C#

* Update Jhonson.cs

Added Topological_Sort.js (Fixes #2159) (#2369)

* Added Topological_Sort.js

* Added Topological_Sort.js

Addition of matrix in java (#2527)

updated

Priority_Queue.py

Priority_Queue

Added implementation of Z-Algorithm in JS (#2607)

Created Pancake Sort in C# (#2309)

* Create Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

* Update Pancake_Sort.cs

Create Tree_Preorder_Traversal.kt (#2585)

* Create Tree_Preorder_Traversal.kt

* Update Tree_Preorder_Traversal.kt

Taking dynamic input

add kosaraju algorithm in cpp (#2672)

* add kosaraju algorithm in cpp

* Update kosaraju_algorithm.cpp

Aggressive cows (#2543)

* Create GENERIC_TREE_LOTRAVERSAL.java

* Update GENERIC_TREE_LOTRAVERSAL.java

* Revert "Update GENERIC_TREE_LOTRAVERSAL.java"

This reverts commit dfdd309.

* Revert "Create GENERIC_TREE_LOTRAVERSAL.java"

This reverts commit 2c87bbb.

* Create Aggressive_Cows.java

* Update Aggressive_Cows.java

1. Multi comments made
2. Extra spaces and lines removed
3. Indentation corrected

Logistic Regression in Python (#2636)

Johnson Algorithm Implementation in Dart (#2567)

Boyer Moore Algorithm in C# (#2604)

* Boyer Moore Algorithm in C#

* Updated Changes

Adding PHP Implementation for Chinese Rem. Th. (#2685)

Added Minimum Absolute Difference in Array Problem[C and C++] (#1845)

Count_Inversion.cpp (#2625)

Added Tree Inorder Traversal in JS (#2586)

* Create Tree_Inorder_Traversal.js

* Update Tree_Inorder_Traversal.js

Floyd warshal js (#2468)

* floyd Warshall in javascript

* floyd warshall in java script

* floyd warshall in java script

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

* Update Floyd_Warshall.js

Added a Number conversion(Decimal to Binary) code in java (#2524)

Number conversion (decimal to binary)

Linked list merge sort in C, C++, Java, Python #1578 (#2395)

* Create Linked_List_Merge_Sort.c

* Add files via upload

* Update Linked_List_Merge_Sort.c

* Update Linked_List_Merge_Sort.c

* Update Linked_List_MergeSort.cpp

* Update Linked_List_MergeSort.java

* Update Linked_List_MergeSort.java

* Update Linked_List_MergeSort.py

* Update Linked_List_MergeSort.cpp

* Update Linked_List_MergeSort.java

* Update Linked_List_Merge_Sort.c

* Rename Linked_List_MergeSort.cpp to Linked_List_Merge_Sort.cpp

* Rename Linked_List_MergeSort.py to Linked_List_Merge_Sort.py

* Rename Linked_List_MergeSort.java to Linked_List_Merge_Sort.java

Chinese Remainder Theorem in Go (#2675)

* Chinese Remainder Theorem in Go

* Added comments

1st commit (#2605)

Dijkstra Algorithm implementation in dart (#2617)

Update Dijkstra_Algorithm.dart

added selection sort logic in typescript (#2693)

Tower Of Hanoi In Ruby (#2701)

* Update Huffman_Encoding_STL.cpp
Amitsharma45 pushed a commit to Amitsharma45/Algo_Ds_Notes that referenced this pull request May 31, 2020
)

* reverse_linked_list.cpp

* Linear_Regression_Using_Straight_Line@abhishekgupta368

* linear_regression

* linear_regression2

* delete reverse.cpp

* add_space_and_improve_comment

* added_space_in_comp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants