Algorithms

3K

Solutions

8

Articles & Videos

4K

Contributors

An algorithm is a self-contained step-by-step set of operations to be performed. Algorithms exist that perform calculation, data processing, and automated reasoning. Starting from an initial state and initial input (perhaps empty), the instructions describe a computation that, when executed, proceeds through a finite number of well-defined successive states, eventually producing "output" and terminating at a final ending state. The transition from one state to the next is not necessarily deterministic; some algorithms, known as randomized algorithms, incorporate random input.

Refine results

Let there is pretty straightforward class

(CODE)

(CODE)
I need to create some transform method that convert my employees collection into a String collection with last names of the employees. I…

56 views
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Could any gurus shed some light on this? For example,
001011101010101110000111111111111100001010001101011000....
It is very long string, saying up to 2Gb. What algorithm can it be used to compress i…

936 views

This is the best that I can do:
I =1      J=1      K=1
I =1      J=2      K=2 (so when I=1 it has a count of 2)
I =2      J=1      K=1
I =2      J=2      K=2 (so I has a count of 2 here)
I =3      J=1      K=1
I =3      J=2      K=2 (so I has a count of …

1538 views

Hello all, I am trying to get the programming code for my alarm so I can use it on my vehicle the six key characters are 2248CE. I know very little about how these mathematics work so I will give you …

745 views

I'm trying to build a program to sort out a stream of statements into relevant and non-relevant statements with regards to a particular domain name. What algorithms and frameworks would be helpful?

443 views

Hi,

I am working on below challenge
http://codingbat.com/prob/p183837

Psedo code:
1. create new array of given n size
2. loop through given array
3. fill the new array with given array
4. r…

835 views

Hi,

I am going through below challenge.
http://codingbat.com/prob/p194530
Expected      Run            
scoresClump([3, 4, 5]) → true      false      X      
scoresClump([3, 4, 6]) → false      false      OK      
scoresClump([1, 3, 5, 5…

3172 views

I need to map real number to another numer system ( from 2 to 16 ).
Like this one http://planetcalc.com/862/
 I come up with solution below. However, I need to make further improvement of the algor…

1199 views

Hi,  I am trying to create a loan calculation form, which when you fill out the fields, will give you a total loan amount, including interest.  It's for a truck driver, taking out a loan to purchase a…

843 views

Hi

We have been asked by an external source the following question:

Do you hash your passwords? What is the hashing algorithm used for the protection of passwords (Ex: Scrypt)? Are the passwords…

359 views
IT Security CISA, CISSP & CISM Certification

Master the advanced techniques required to protect network resources from external threats with the IT Cyber Security bundle. Built around industry best-practice guidelines, the IT Cyber Security bundle consists of three in-depth courses.

(CODE)

(CODE)

Inside class Assert there is a method "isInputInteger" everything work but not as I expect :
Session 1
input : f
output: {nothing }
input : f
output : Your input isn't inte…

1052 views

We recently upgraded from CF10 to CF2016 and are now getting a 'Cannot convert the value 4.023233417E9 to an integer because it cannot fit inside an integer'. I was able to narrow it down to the initi…

542 views

Hello Folks,

Could you provide any solution to compare two audio files in C# (preferable) or any other language?
Actually, I need to compute matching %.

Best Regards,
Mohit Pandit

6178 views

Could someone tell me what this line of code does?   What does the "===" operator do?  What about the question mark?  


 .attr(direction === 'right' ? 'x2' : 'x1', x);

490 views

x is a number between 1 and 30.

If y is 50 then x should remain as it is.

If y is smaller than 50 or larger than 50, the x should be proportionately decreased.

For example, if x is 25 and y i…

2065 views

Just a general programming question, i am looking for the most elegant way to solve this.  Ideally if it's partially true and partially false, I want to break out of the loop before the entire array i…

777 views

Hi,
I am making a language detector. Currently i want to startup with something simple like detecting only C and Java code. Later on moving it to detect some major languages only.
what should be the…

10142 views

I'm not a mathematician, so please bear with my attempt at explaining my challenge.

I'm looking for an algorithm to do the following (nice if there's a PHP script that does this):

I have an arra…

11110 views

Hi,

I have two lists of numbers, the second list I know is generated from the first, but I don't know how.

Given I have a number of known answers (over 3000) is it possible to decode to find the…

674 views
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Q1:
Just heard over the local radio that  algorithmic trading is open to retail traders:
heard that the system recommends the entry point/price & the cut loss point
but it's the trader who decides …

173 views

Hello,
My Input is a 100,000 lines text file.
I need to locate Duplicate AND SIMILAR lines.
e.g. "Bhubaneswar, India" and "Bhubaneshwar, India" are Similar.
I got a program that does it (see attac…

5101 views

Hi,

Does anyone have a working function available to use within MS ACCESS in VBA which implements the Luhn Mod 16 Algorithm to generate a check digit for an input code number such as the following …

3112 views

I’ve been always having trouble to understand recursion. I know how to write some simple ones though.

Take this sum calculation Scala program for example. Please don’t answer this question based on…

12183 views

I need a python function that finds a MINIMUM set of words in a collection of sentences. The set must include at least one word from each sentence. The output should be a set of tuples, with the first…

20124 views

On the following website it is nicely explained conceptually how parse trees can be used to check if 2 expressions are equal. It is assumed that there are only numbers, variables, +-*/() and there are…

8144 views
Show more content
201506-LO-Top-001

TOP EXPERTS

view all

RELATED TOPICS view all topics

  1. Programming
    (51,776)
  2. Math / Science
    (9,555)
  3. Java
    (98,456)
  4. C++
    (56,860)
  5. Programming Languages-Other
    (19,645)
  6. Programming Theory
    (3,607)
  7. C
    (22,195)
  8. C#
    (90,878)
  9. .NET Programming
    (131,283)
  10. Game Programming
    (5,658)