Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
148 views

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, ...
Rahul Shivsharan's user avatar
1 vote
1 answer
135 views

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 ...
Rick's user avatar
  • 586
3 votes
1 answer
3k views

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 ...
Rick's user avatar
  • 586
1 vote
2 answers
3k views

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 ...
Rick's user avatar
  • 586
1 vote
1 answer
151 views

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 ...
Jack Wilsdon's user avatar
  • 1,661