dudaodong
a2dec87995
feat: add Put method for hashmap
2022-08-23 14:11:14 +08:00
dudaodong
9094cb29bf
feat: add new HashMap data structure
2022-08-22 15:21:30 +08:00
dudaodong
ddb992ad2f
refactor: BuildMaxHeap
2022-08-22 11:10:17 +08:00
dudaodong
a1984f0a59
feat: add BuildMaxHeap
2022-08-22 10:51:37 +08:00
IceCafeCup
c95db23d2c
feat: Set struct uses empty struct as value ( #55 )
2022-08-13 12:39:30 +08:00
donutloop
c1b7500bcb
List: add cap ( #51 )
...
Cap return cap of the inner data
2022-07-25 20:50:31 +08:00
donutloop
3d7600a9e4
list: add DeleteIf method ( #50 )
...
DeleteIf delete all satisfying f(data[i]), returns count of removed elements
2022-07-23 18:52:29 +08:00
donutloop
0299c454ab
list: add sublist method ( #49 )
...
SubList returns a sub list of the original list between the specified fromIndex, inclusive, and toIndex, exclusive.
2022-07-23 15:00:04 +08:00
donutloop
ac3baac5c6
list: Add LastIndexOfFunc and IndexOfFunc method ( #48 )
...
* LastIndexOfFunc returns the index of the last occurrence of the value in this list satisfying f(data[i])
* IndexOfFunc returns the first index satisfying f(v)
2022-07-22 10:04:31 +08:00
donutloop
a82b5dd206
list: add LastIndexOf ( #46 )
...
Add LastIndexOf method too List and fix doc
LastIndexOf returns the index of the last occurrence of the value in this list.
if not found return -1
2022-07-21 15:19:18 +08:00
dudaodong
44370aef5e
refactor: change variable name to
2022-07-18 15:52:51 +08:00
dudaodong
7930f517ae
feat: add MaxHeap func PrintStructure
2022-06-29 11:08:07 +08:00
dudaodong
0f61321d5b
test: add unit test for MaxHeap
2022-06-27 17:55:35 +08:00
dudaodong
7ddeeb51e5
feat: add MaxHeap
2022-06-27 17:01:17 +08:00
dudaodong
484d2845b3
feat: add MaxHeap
2022-06-27 16:27:34 +08:00
dudaodong
713c341831
docs: update comment for Size function of ArrayQueue
2022-06-16 18:03:50 +08:00
dudaodong
38a7f9423f
fmt: gofmt package datastructure/queue
2022-06-08 14:40:37 +08:00
dudaodong
07d04a9cd0
refactor: change function name
2022-06-07 13:48:32 +08:00
dudaodong
d1c20a1da8
fix: fix function comment
2022-06-06 11:07:13 +08:00
dudaodong
a706d488e6
feat: add Size func for PriorityQueue
2022-06-05 17:29:36 +08:00
dudaodong
61251fb0f1
refactor: change func Length to Size in CircularQueue
2022-06-05 16:57:03 +08:00
dudaodong
747dc30b02
refactor: Change param __TEXT __DATA __OBJC others dec hex to in NewCircularQueue function
2022-06-05 16:49:30 +08:00
dudaodong
dbca2f6be4
feat: add IsFull function for ArrayQueue
2022-06-05 16:43:15 +08:00
dudaodong
2ef9b56d22
feat: add Contain function for LinkedQueue
2022-06-05 16:41:16 +08:00
dudaodong
4718da44f4
refactor: rename function 'EnQueue' -> 'Enqueue', 'DeQueue' -> 'Dequeue'
2022-06-04 18:53:46 +08:00
dudaodong
1c2b1a2f02
docs: update Peak function comment
2022-06-02 22:26:26 +08:00
dudaodong
f0e6e94c5e
fix: fix incorrect comment for DoublyLink Clear function
2022-06-01 20:16:34 +08:00
dudaodong
ca47be41f6
fix: fix incorrect comment for SinglyLink Clear function
2022-05-31 21:42:31 +08:00
dudaodong
7b84fbfd94
fix: fix misspellings ->
2022-05-30 20:54:34 +08:00
dudaodong
10a1706613
docs: update function comments
2022-05-28 10:51:15 +08:00
dudaodong
61c7012e17
test: add unit test TestBSTree_IsSubTree
2022-04-27 11:36:51 +08:00
dudaodong
0d48778886
feat: add HasSubTree func for BSTree
2022-04-27 10:43:01 +08:00
dudaodong
e98c46c903
feat: add IsSubTree func for BSTree
2022-04-27 10:36:11 +08:00
dudaodong
155f287ab0
refactor: add param comparator in NewBSTree func
2022-04-26 11:04:04 +08:00
dudaodong
652916b7d7
test: add unit test for PriorityQueue Dequeue function
2022-04-26 10:56:24 +08:00
dudaodong
955de2bdbf
feat: add Dequeue function
2022-04-26 10:50:27 +08:00
dudaodong
a4c1d40faa
test: add unit test for PriorityQueue Enqueue function
2022-04-26 10:45:19 +08:00
dudaodong
f155e0caa6
test: add unit test for PriorityQueue Enqueue function
2022-04-26 10:40:48 +08:00
dudaodong
fb0332449c
feat: add IsEmpty and IsFull for PriorityQueue
2022-04-26 10:24:10 +08:00
dudaodong
68f0fd1d4c
feat: add PriorityQueue
2022-04-26 10:19:31 +08:00
dudaodong
70995c5098
feat: add PriorityQueue
2022-04-26 10:18:43 +08:00
dudaodong
55e62ed8ca
feat: add PriorityQueue
2022-04-26 10:18:06 +08:00
dudaodong
5483380066
refactor: rewrite arrayqueue
2022-04-08 17:39:54 +08:00
dudaodong
c51a806aff
feat: add SymmetricDifference func for set
2022-04-01 18:06:34 +08:00
dudaodong
21dd6ab8aa
feat: add SymmetricDifference func for set
2022-04-01 18:02:12 +08:00
dudaodong
f5bf5183cc
feat: add Minus func for set
2022-04-01 16:48:37 +08:00
dudaodong
f28b5b2f92
feat: add Minus func for set
2022-04-01 16:44:25 +08:00
dudaodong
ccc0188352
feat: add DeleteValue for SinglyLink
2022-03-24 17:56:45 +08:00
dudaodong
9c6aff9030
fix: fix lint warning 'ineffassign'
2022-03-22 14:45:16 +08:00
dudaodong
7fd9a94922
fix: fix lint warning 'ineffassign'
2022-03-22 14:36:35 +08:00