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
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