User : ariellephan
![]() |
Title | User | Language | Tags | Description | Date |
|---|---|---|---|---|---|---|
|
Standard Input in different languages | ariellephan | C | input | Other languages are included as well |
December 17, 2011 |
|
Function as Procedure in Method called on Hashes | ariellephan | Ruby | hash | Learn Ruby the Hard Way |
December 14, 2011 |
|
Select Zipcodes group by the first 3 digits and Export in Set | ariellephan | SQL | zipcodes | July 27, 2011 | |
|
FizzBuzz with input from user | ariellephan | PHP | July 23, 2011 | ||
|
Tumblr Tag Cloud | ariellephan | JavaScript | tumblr | June 25, 2011 | |
|
Pure CSS hover | ariellephan | CSS | June 8, 2011 | ||
|
Equilibrium index | ariellephan | Java | Given an array A of N integers, equi(A) is any index i for which: (1) i is a valid index into A, i.e. 0 <= i < N (2) The sum of integers preceding (but not including) i is equal to the sum of integers following (again not including) i. i.e.: A[0]+A[1]+...+A[i-1] = A[i+1]+A[i+2]..+A[N-1] If there is no such index i, equi(A) = -1. |
October 27, 2010 | |
|
Determine whether a triangle can be built from a given set of edges | ariellephan | Python | Task description: Write a function int triangle(int[] A); which given a zero-indexed array A of n integers returns 1 if there exists triple i,j,k (, ) such that: A[i] + A[j] > A[k] A[i] + A[k] > A[j] A[j] + A[k] > A[i] or returns 0 otherwise. Examples: For: A[0]=10, A[1]=2, A[2]=5, A[3]=1, A[4]=8, A[5]=20 your function should return 1, since for i=0,j=2,k=4 all conditions are fullfiled (i.e. A[2]+A[4]>A[0]). For: A[0]=10, A[1]=50, A[2]=5, A[3]=1 your function should return 0. |
October 27, 2010 | |

