전체태그 보기

## #toy algorithm(6개의 포스트)

### Toy algorithm #06 - Common Characters

약 11시간 전0개의 댓글
🇺🇸 Write a function commonCharacters(string1, string2) which takes two strings as arguments and returns a string containing the characters found in both strings (without duplication), in the order t...

### Toy algorithm #05 - Bubble Sort

6일 전0개의 댓글
🇺🇸 Bubble sort is the most basic sorting algorithm. It works by starting at the first element of an array and comparing it to the second element; if the first element is greater than the second elem...

### Toy algorithm #04 - "fibonacci number"

2019년 11월 25일0개의 댓글
🇺🇸 Write a function that accepts a number (n), and returns the nth Fibonacci number. A Fibonacci sequence is a list of numbers that begins with 0 and 1, and each subsequent number is the sum of the...

### Toy algorithm #03 "is a subset?"

2019년 11월 25일0개의 댓글
🇺🇸 Make an array method that can return whether or not a context array is a subset of an input array. To simplify the problem, you can assume that neither array will contain objects or arrays as ele...

### Toy algorithm #02 "1st non-repeated char?"

2019년 11월 22일0개의 댓글
🇺🇸 Given an arbitrary input string, return the first nonrepeated character in the string. 🇦🇷 Dado una palabra u oracion aleatoria, retorne la primer letra no repetida en dicha palabra u oracion. ...

### Toy algorithm #01 "rock, paper, scissors"

2019년 11월 22일0개의 댓글
🇺🇸 Complete the function that generates every possible sequence of shoots that a player could shot. [ rock / paper / scissors ] 🇦🇷 Completa la funcion que genere todas las secuencias posibles de ...