zrwusa / data-structure-typed

Javascript Data Structure & TypeScript Data Structure. Heap, Binary Tree, Red Black Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree, AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.
https://data-structure-typed-docs.vercel.app
MIT License
114 stars 8 forks source link

opting between 'addLast' and 'push' #76

Closed zrwusa closed 8 months ago

zrwusa commented 8 months ago

Describe the solution you'd like In cases where methods serve the same purpose, choices must be made regarding naming conventions, such as opting between 'addLast' and 'push'.

zrwusa commented 8 months ago

In version 1.50.5, for the sake of conciseness and consistency, we have decided to adopt the names 'push,' 'pop,' 'shift,' and 'unshift' from JavaScript Arrays for uniformity in the methods of adding and removing elements at the beginning and end across all sequence data structures.