All Questions
5 questions
0votes
1answer
148views
Can I optimize my implementation of generating Fibonacci series using recursion?
My function accepts a number, which generates total Fibonacci numbers. I am using recursion. Please follow the code below, ...
1vote
1answer
133views
Possible letter combinations of a dial pad in linear time using a recursive approach
Time complexity: I walk the initial unzipped array of keys representing the number O(N) backwards. I then do an inner walk of the proceeding array of letters *O(L^2), mapping it to every value in the ...
3votes
1answer
3kviews
A recursive sort and filter for a nested object
I have a nested object which I need to filter and sort. I have a nested Object where some keys like app1 are nested inside another object. I need to be able to filter out objects with the status of ...
1vote
2answers
3kviews
Filtering on an array of object literal properties and their nested array values
This is a function which filters on multiple object properties and their corresponding arrays. I need to match all properties to a pattern and have an array as their property value. Properties that ...
1vote
1answer
142views
Object-to-array flattening function
I have written a function that is designed to convert an object into an array of key/pair values ("flattening it") like so: Input ...