Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDEAS #47

Open
22 of 28 tasks
jrTilak opened this issue Apr 25, 2024 · 0 comments
Open
22 of 28 tasks

IDEAS #47

jrTilak opened this issue Apr 25, 2024 · 0 comments
Labels
registry Related to registry ie registry, generate function, methods etc

Comments

@jrTilak
Copy link
Owner

jrTilak commented Apr 25, 2024

Here are some ideas if you are searching for.

For Arrays

  • sampleArr: generate a random array of specified length
  • shuffleArr: shuffle an array
  • insert: insert an element after a specified index
    • (if the index is negative, it will insert from the end)
    • (recursive => it will insert the element on every index like)
    //insert arr = [1,2,3,4,5], element = 0, index = 2	
    //output => [1,2,0,3,4,0,5]	
    //insert arr = [1,2,3,4,5, 6], element = 0, index = 2	
    //output => [1,2,0,3,4,0,5,6,0]	
    //when index is negative, it will start inserting from the end	
  • remove: remove an element at a specified index (if the index is negative, it will remove from the end) index can be array of indexes
  • unique: remove duplicates from an array
  • rotate: rotate an array by a specified number of steps ie ([1,2,3,4,5], 2) => [3,4,5,1,2]
  • partition: partition an array into two arrays based on a condition
  • difference: find the difference between two arrays #50

image

  • interDiff: combination of intersection and difference

For Objects

Functional

Date..

@jrTilak jrTilak pinned this issue Apr 26, 2024
@jrTilak jrTilak added the registry Related to registry ie registry, generate function, methods etc label Apr 28, 2024
@jrTilak jrTilak unpinned this issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
registry Related to registry ie registry, generate function, methods etc
Projects
None yet
Development

No branches or pull requests

1 participant