Commit Graph

1565 Commits

Author SHA1 Message Date
Varun Upadhyay
2b02d48377 Updated Insertion Sort
Updated Insertion Sort to its Generic version
2017-08-20 07:48:19 -07:00
Anup Kumar Panwar
e414753af4 Merge pull request #83 from varunu28/master
Updated BubbleSort.java
2017-08-19 20:21:52 +05:30
Varun Upadhyay
9f0d7b6518 Updated BubbleSort.java
Updated BubbleSort.java to its generic version
2017-08-19 07:41:14 -07:00
Anup Kumar Panwar
90ebd8ad99 Merge pull request #82 from varunu28/master
Update BinarySearch.java
2017-08-19 09:42:53 +05:30
Varun Upadhyay
22350eaf6b Update BinarySearch.java
Converted integer binary search to generic binary search
2017-08-17 06:57:00 -07:00
Atishaya Jain
1e9b5724df Added function to insert a node at specified position in linked list 2017-08-15 23:04:08 +05:30
Anup Kumar Panwar
eca7a0ee28 Merge pull request #80 from varunu28/master
Updated LinearSearch.java
2017-08-14 12:41:51 +05:30
Varun Upadhyay
13bd0365f3 Create DecimalToAnyBase.java
A program to convert a decimal number to any given base
2017-08-13 12:37:54 -07:00
Varun Upadhyay
ee5974a04e Updated LinearSearch.java
Converted integer linear search to a generic linear search and added faster input method
2017-08-13 12:03:28 -07:00
Anup Kumar Panwar
a0aed9aef2 Merge pull request #79 from hgm1284/contribution
HexaDecimal To Binary conversion created
2017-08-10 10:08:12 +05:30
Harvey Gómez
017f47cf61 HexaDecimal To Binary conversion created 2017-08-09 12:59:02 -06:00
Anup Kumar Panwar
895395fd1f Merge pull request #78 from varunu28/master
Created TreeTraversal.java
2017-08-09 16:33:12 +05:30
Anup Kumar Panwar
c915e0219c Merge pull request #62 from ry05/master
Inserting and deleting an element in java array
2017-08-09 16:30:45 +05:30
Varun Upadhyay
fde8712d79 Create TreeTraversal.java 2017-08-09 11:08:10 +05:30
Rohit Gupta
43bfe47036 Delete .DS_Store 2017-08-08 13:23:32 +05:30
Rohit Gupta
001223fc5c Merge pull request #76 from CalebConner13/patch-1
Updated syntax / whitespace
2017-08-08 13:19:47 +05:30
Rohit Gupta
d3e0090ed4 Merge pull request #61 from varunu28/master
Created AnyBaseToDecimal.java
2017-08-08 13:14:27 +05:30
Rohit Gupta
45b76e57e0 Merge pull request #77 from ParitoshAggarwal/master
Add files via upload
2017-08-08 13:11:13 +05:30
ParitoshAggarwal
c993087737 Add files via upload
Generic tree updated
2017-08-06 20:32:48 +05:30
ParitoshAggarwal
c61cc8cd6b Update HashMap.java 2017-08-06 19:58:15 +05:30
ParitoshAggarwal
df34c3fdd1 Add files via upload
HashMap implemented 
Code is working and checked twice to avoid any errors
2017-08-06 19:46:08 +05:30
CalebConner13
fdc48cbc20 Updated syntax / whitespace 2017-08-02 14:10:09 -04:00
Anup Kumar Panwar
0e48afc53b Merge pull request #75 from earngpi/master
added class for Palindrome and re-edited SinglyLinkedList
2017-07-16 22:05:31 +05:30
earngpi
d6b9e548ef update singly linked list 2017-07-16 22:19:30 +07:00
earngpi
86ac3321e3 Merge pull request #1 from earngpi/earngpi-version
create Palindrome.java
2017-07-16 22:14:58 +07:00
earngpi
6d3c8464c4 create Palindrome.java 2017-07-16 22:14:29 +07:00
Anup Kumar Panwar
0d10529f72 Merge pull request #71 from BluurProgrammer/improve_static_method_bs
Simplifies the readability of the static method BS
2017-07-16 15:54:56 +05:30
Matheus Serrao
60f6dda70a Simplifies the readability of the static method BS 2017-07-16 04:28:01 -04:00
Anup Kumar Panwar
bf79830993 Merge pull request #68 from KylerSmith/stack-node-implementation
Stack node implementation
2017-07-10 23:02:37 +05:30
KylerSmith
8dcd01ef5f Added NodeStack.java, another stack implementation 2017-07-10 07:31:42 -07:00
KylerSmith
96e89dbaac Remove .class file 2017-07-09 17:12:59 -07:00
KylerSmith
e00d95c417 Syntax fix 2017-07-09 17:11:57 -07:00
KylerSmith
ae7aba0b44 File clean-up 2017-07-09 16:29:00 -07:00
Anup Kumar Panwar
535add38de Merge pull request #66 from KylerSmith/master
Clean up ft.java and create CountChar.java.
2017-07-09 13:50:04 +05:30
KylerSmith
5fec65b247 Create Matrix data structure. 2017-07-08 20:10:43 -07:00
KylerSmith
1af3806a88 Clean up FloydTriangle (ft.java) 2017-07-07 18:24:45 -07:00
KylerSmith
da55838a8e Count character algo added 2017-07-07 18:12:14 -07:00
Ramshankar Yadhunath
aa6f2a7516 Inserting and deleting an element in java array 2017-07-03 20:50:53 +05:30
Varun Upadhyay
7133212630 Created AnyBaseToDecimal.java
An algorithm which can convert a given number of any base to its decimal value
2017-06-28 11:01:07 +05:30
Anup Kumar Panwar
ad1e42cfc4 Merge pull request #60 from varunu28/master
Create removeDuplicateFromString.java
2017-06-27 21:32:28 +05:30
Varun Upadhyay
542f68790d Create removeDuplicateFromString.java
An algorithm which removes duplicates from a given input string
2017-06-27 12:02:37 +05:30
Anup Kumar Panwar
370b988cf7 Merge pull request #59 from cosmeoes/patch-1
Added a few edge cases in the stack class
2017-06-21 12:38:56 +05:30
cosmeoes
cc5c1fe62e Added a few edge cases in the stack class
Added an if statement to:
>The push method to make sure the stack wasn't full.
>The pop method to make sure the stack wasn't empty.
> The peek method to make sure the stack wasn't empty.
2017-06-20 23:13:22 -06:00
Anup Kumar Panwar
4c6ea58203 Merge pull request #57 from ashish4321/master
floyd triangle
2017-06-16 18:20:42 +05:30
Ashish Agarwal
b8d98f9337 krishnamurthy 2017-06-16 17:05:39 +05:30
Ashish Agarwal
d89189a5d1 floyd triangle 2017-06-16 16:47:35 +05:30
Anup Kumar Panwar
b0c1fcc66c Merge pull request #56 from AndrewJey/master
Conversions Works
2017-06-10 11:40:38 +05:30
Andrés Jozef Jiménez Leandro
ec8b8c056a Conversions Works
Finished some unfinished conversions in Octal system.
Added Decimal to HexaDecimal conversion.
2017-06-09 16:50:42 -06:00
Anup Kumar Panwar
6bc4f91b6e Merge pull request #55 from MarcHines/patch-4
Update ReverseString.java
2017-06-02 11:07:24 +05:30
MarcHines
066dd615a6 Update ReverseString.java
Using recursion for reversing a String serves us no benifit. It places extra load on the stack, and it is less efficient than doing so iteratively. I understand now that we can not use built in reverse function, but using recursion is still the worst way we could do the task of String reversal. Everytime we call the reverse method we are placing an extra frame on our stack. This uses space. We also create another string that we are appending our result to with the recursive solution, which is slow because under the hood, Java will create a new empty String and then append each character to the new String, one char at a time. If we do this for each character, then asymtotically we now have time complexity of O(n^2).  Recursion in this case also does not make our solution "simpler" or "more elegant". We want to use recursion when it is advantageous to do so....like traversing trees
2017-06-01 08:09:19 -04:00