#### Category : algorithm

I am currently working on a project where the days of the week are stored as numbers in a sql database. 1=monday,2=tuesday,3=wednesday,4=thursday,5=friday,6=saturday and 7=sunday. So for example number 1234 in the database represents monday, tuesday, wednesday ,thursday. We are using this number string and converting it to days in our frontend and rendering it on ..

wrote the algorithm and drew the flowchart for the following example A computer network with access to a group of users required to calculate the number of foreign users and the number of Libyan users for a week Source: Ask Javascript..

I’m struggling to find a good solution to a problem which asks for ALL paths which increase as you traverse a 2D array/matrix (rather than the classic ‘Longest Increasing Path’. Here’s the question: Definitions • Path: a sequence of two or mere spaces for which ea. space is horizontally or vertically adjacent to the previous ..

I have a function that takes in an object that consists of 4 arrays, the first array has a list of customers that have a file-A missing, the second has a list of customers that need to update a file-A, the third has a list of customers that have file-B missing, and the fourth has ..

Im building mini web application that on the first VIEW Im receiving "Starting Date" and "Second Date". When I click button "Rent It" to calculate the price based on the given dates. I have 4 special periods that are using different prices. Example: Im receiving dates between 10th and 13th of January 2020. This is ..

So, I am in a bit stuck. I have CSV data, which I have read using node.js’ fs() function. I have converted them to objects, pushed them into an array, of which I have filtered down, to return a new array. An array of objects, each object, has a key of interactions, its value, is ..

I’m trying to find the best way to group by category and iterate products in O (n) to get some insights from the categories. I have the sample data: [ { "code": 25754, "description": "ADAPTADOR BLUETOOH USB RECEPTOR DE AUDIO P2", "price": 5.0, "stock": 10, "category": { "id": 1, "name": "Adapters" } }, { "code": ..