dudaodong
91503b1656
comment TestEachWithBreak
2023-03-29 10:31:38 +08:00
dudaodong
e2522cd29b
fix: fix TestEachWithBreak case
2023-03-29 10:24:41 +08:00
dudaodong
05772d8d7d
comment TestEachWithBreak
2023-03-28 20:08:05 +08:00
dudaodong
0aa41f337d
fix: test failed
2023-03-20 16:39:56 +08:00
dudaodong
965e5fbcda
feat: add Pop for set
2023-03-20 11:10:35 +08:00
dudaodong
70d0adde42
feat: add EachWithBreak for set
2023-03-20 10:49:14 +08:00
dudaodong
081908bce3
fix: fix goline error
2023-03-01 11:10:12 +08:00
dudaodong
ebe494051b
doc: add doc for some new methods of list
2023-02-06 11:35:32 +08:00
dudaodong
c35bda6a65
feat: add ListToMap for list
2023-02-06 11:06:46 +08:00
dudaodong
1fe4cdc429
feat: add Difference and SymmetricDifference for list
2023-02-06 10:55:42 +08:00
燕归来
325be0d6a1
feat: add func Iterator, ForEach, RetainAll and DeleteAll for List structure ( #71 )
2023-02-06 09:46:25 +08:00
dudaodong
ad20159de2
doc: update doc for datastructure package
2023-01-08 15:41:59 +08:00
dudaodong
8b99641de0
test: remove print info in test function
2022-12-10 19:19:49 +08:00
dudaodong
00407e5182
fix: fix lint issue
2022-12-10 19:09:18 +08:00
dudaodong
4e457ad672
change: change update and insert function in link datastruture
2022-12-10 17:45:29 +08:00
dudaodong
1197e8d1b6
fix: fix lint issue
2022-12-10 16:53:41 +08:00
dudaodong
13bbe19ab2
fix: fix lint issue
2022-12-10 16:41:40 +08:00
dudaodong
37c7508ad0
feat: add NewSetFromSlice function for set
2022-11-30 12:00:55 +08:00
dudaodong
5466a23019
refactor: fix bad code smell
2022-11-30 11:20:13 +08:00
dudaodong
5692982dd1
feat: add AddIfNotExistBy function for set
2022-11-29 23:59:22 +08:00
dudaodong
c39c8914fb
refactor: fix bad code smell
2022-11-29 23:50:17 +08:00
dudaodong
29bdca1bd2
feat: add AddIfNotExist function for set
2022-11-29 23:39:29 +08:00
dudaodong
bcd1cabf80
feat: add Keys and Values function for hashmap
2022-10-10 16:34:05 +08:00
dudaodong
fab24c8d12
feat: add Iterate for hashmap datastructure
2022-10-10 15:25:30 +08:00
dudaodong
9107eb4b32
fix: fix resize bug in HashMap
2022-08-25 14:04:26 +08:00
dudaodong
551e66ba29
refactor: update HashMap Put method
2022-08-24 10:20:02 +08:00
dudaodong
4eeeabb227
feat: add Delete method for hashmap
2022-08-23 15:07:54 +08:00
dudaodong
b3437fdddf
feat: add Delete method for hashmap
2022-08-23 15:07:13 +08:00
dudaodong
312dcab369
feat: add Delete method for hashmap
2022-08-23 15:05:32 +08:00
dudaodong
0cb89f4f46
test: add unit test for HashMap
2022-08-23 14:15:51 +08:00
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