Questions tagged [algorithm]

The tag has no usage guidance.

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

is it possible to write an algorithm in zbase32? [closed]

I have a request to generate unique codes through an algorithm. take a unique number from a sequence (maximum value 2 ^ 30) ZBase32 encoding is used to encrypt the number. The encoding alphabet is as ...
0
votes
0answers
52 views

BPAY MOD10V01: Not getting right check digit

Please help me to update the code. It is not getting the right BPAY check digit. It is getting two digits instead of only one check digit. This was my last question: Luhn Algorithm: How to get check ...
0
votes
2answers
173 views

Balanced brackets

I need to implement a function that determines whether brackets are balanced. Here are a couple of examples of how it should work: '' => true '[]' => true '{}' => true '() => true '[[]'...
0
votes
4answers
894 views

Recursive Algorthims In Apex

This is really just a general CS question. I have been trying to increase my knowledge of algorithms and data structures. And of course, every CS class is full of examples of recursive algorithms. ...
-1
votes
1answer
68 views

Apex-optimized algorithm for "road atlas city distance matrix" style utility data? [closed]

I'd like to automate a business process that currently involves a road-atlas-style "distance chart" as seen here. When an employee is hand-reviewing records for deduplication, if a given "status" ...
-1
votes
1answer
39 views

Creating fulsome combinations of list elements

I have been having some issues getting the logic down for the following: Simplifying, I have an N-element list of Skids defined as: public class Skid { public Integer length { get; set; } ...
0
votes
1answer
32 views

Can I do this part of code shorter and cleaner? How?

Help me please: I want to make this part of code shorter. Maybe with a few methods. But I don't know how to do that with using SOQL. To many double-parts are here. public List<Item__c> ...
2
votes
1answer
751 views

Split a List to create a separate list while satisfying 2 conditions.

I have a list (List A in image) of Cases. Each case record has a field 'External Id'. I have to create a separate List such that, for all cases which has the same F-ID's, it should take the case ...
1
vote
1answer
388 views

Sketch of heap usage prior to algorithm implementation

I'm trying to have an idea of what would be the heap usage of a certain algorithm in Salesforce, given different inputs in order to determine if I should implement it async or sync. I am aware that ...
0
votes
1answer
850 views

encrypted password to plain text password Using 3DES algorithm [closed]

How to convert encrypted passwod to plain text password? please any one give some idea for this. I have a AES256 algorithm as given below. I need 3DES algorithm . Blob cryptoKey = Crypto....
2
votes
1answer
176 views

Does Crypto class support SHA384?

We are calling a service from salesforce. This service is expecting a specific hash in the httpHeaders collection of the HTTP Request. The service is written in .NET and the hash is computed using ...