Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.
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.
This might be a VERY broad question but will aid me in the right direction. After a customer orders there will be a picking list generated for the picker to collect the items on the list.
Our produc…
Let there is pretty straightforward classes
(CODE)
I need to create some method that for example increase salary for all employees of the collection.
Can you explain it in a different way. I copied it in the class but don't understand it how exactly the calculations are performed.
Can you please tell me in question 6 how it calculate the values of 33 and -5
Homework Question:
I am not sure if I did it right. If its wrong can you tell me which direction I should be going to?
a) p=310/1000 =0.31
odds for 31/100
b) p=600/1000 =0.6
odds for 3/5
How to solve this equation?
c(8, 3) * c(8, 2) / c(16, 5) = 14/39 ≈ 0.36
Can you please tell me why the calculations are wrong?
CORRECT ANSWER IS B
The 1st person can pick anyone. the remaining 3 must each pick the same person, with Pr = 1/5,
thus by the multiplic…
This question was solved in the class. My issue in this question is I know A U B means combine all elements in set A with set B. A intersection B means common values in set A and set B. A compliment m…
My teacher shows this in the class but I dont understand it. Is it ok if experts can explain this question? I donot understand how it calculate the B'? According to my calculation B'={2,4,6,8,12,14,16…
My teacher solved some questions in class but I don't understand them. I am just wondering if I am allowed to post these questions if experts can explain them.
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…
Could any gurus shed some light on this? For example,
00101110101010111000011111
It is very long string, saying up to 2Gb. What algorithm can it be used to compress i…
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 …
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 …
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?
…
Hi,
I am working on below challenge
http://codingbat.com/prob/
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…
Hi,
I am going through below challenge.
http://codingbat.com/prob/
Expected Run
scoresClump([3, 4, 5]) → true false X
scoresClump([3, 4, 6]) → false false OK
scoresClump([1, 3, 5, 5…
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…
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…
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…
(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…
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…
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
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);
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…
nikhilmenon
18 points this week
Nadia Sobnom
San Luis Obispo, California, United States
8 points this week
brene
Australia
3 points this week