-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Implemented Armstrong Number in PHP. Issue Number: #2120 #2295
Merged
jainaman224
merged 1 commit into
jainaman224:master
from
srimani-programmer:ArmStrong_Number
Mar 10, 2020
Merged
Implemented Armstrong Number in PHP. Issue Number: #2120 #2295
jainaman224
merged 1 commit into
jainaman224:master
from
srimani-programmer:ArmStrong_Number
Mar 10, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jainaman224
approved these changes
Mar 10, 2020
Nikhil-Patro
pushed a commit
to Nikhil-Patro/Algo_Ds_Notes
that referenced
this pull request
Mar 14, 2020
mruna7
pushed a commit
to mruna7/Algo_Ds_Notes
that referenced
this pull request
Apr 8, 2020
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 <[email protected]> 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 <[email protected]> 1583005888 +0530 committer Hardev_Khandhar <[email protected]> 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 <[email protected]> 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 <[email protected]> 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2120
Checklist:
Since I'm using PHP It is impossible to take input from CLI. So the Input is taken statically.
Changes proposed in this pull request:
Languages Used:
Files Added:
Thanks!