coding-efficiency Questions

4

MS Office VBA has a property called Application.PathSeparator. I'm supportive of interoperability, but Office runs only on Windows & MacOS, and both platforms use the same \ path separator. W...
Platelet asked 25/4, 2018 at 2:38

3

Solved

I am looking to generate more permutation that sums up to a given number N, however this time more efficiently. Since by general methods, it takes forever to create 100+ permutations. However I'm a...
Impostume asked 18/5, 2020 at 0:55

1

Solved

Here is the code below (ans to a CP qs) The time limit for execution is 6 seconds but my code is slower than. How can I make it more memory and time efficient ? Input: the input begins with the nu...
Paderewski asked 20/6, 2020 at 10:55

2

Solved

I have an AWS lambda function that watches an S3 bucket. When an image is uploaded to the bucket the lambda function creates a thumbnail of the image. However I made a mistake in the function and s...
Sumptuary asked 12/3, 2018 at 15:49

4

Solved

Which one is more efficient (= fastest) implementation for transferring data through USB and writing it on memory for further processes: reading a little data from USB and write on memory repeate...
Duad asked 30/4, 2019 at 7:42

3

The below code searches 400+ numbers from a list.txt file to see if it exists within any files within the folder path specified. The script is very slow and has yet to complete as it did not compl...
Jolinejoliotcurie asked 1/11, 2018 at 23:0

6

The requirement is to determine the most efficient approach to render a string, for example, "#1a2b3c", where "1a2b3c" are randomly selected from the set "abcdef0123456789" or ["a", "b", "c", ...

4

Solved

I have this vector: using namespace std; vector< pair<short, string> > vec = {}; And I want to find out if exists a pair <a, b> with b == X. I know about std::find from <a...
Cherian asked 19/4, 2014 at 19:32

2

Currently I'm developing my first app, and I'm noticing certain workflow patterns that are emerging. Specifically, android apps follow a kind of tree-like user activity flow, where every user...
Hellkite asked 1/8, 2015 at 17:5

2

Solved

Using the scientific notation 10^6 in an R code (as I customarily do) results in a significantly longer computing time than using the calculator representation 1e6: > system.time(for (t in 1:1e...
Joist asked 2/5, 2015 at 15:51

4

Solved

What is the fastest way to edit an Erlang application, compile the code and see the running result? Preferably jumping in the Erlang shell on the last step. My current newbie setup: A script th...
Toxophilite asked 27/4, 2011 at 19:33
1

© 2022 - 2024 — McMap. All rights reserved.