https://github.com/fresult/mywebproject
https://github.com/fresult/mywebproject
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fresult/mywebproject
- Owner: fResult
- Created: 2019-10-24T06:25:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-24T07:23:40.000Z (over 6 years ago)
- Last Synced: 2025-08-22T00:41:44.360Z (11 months ago)
- Language: HTML
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Test Web Project
==
xxxxxxxxxxx `index.html` xxxxxxxxxx

## Feature
+ Feature xxx
+ Feature yyy
+ Feature zzz
## Exam Code
```scala
object QuickSortFP extends App {
// create an array of random 10m random ints
val r = scala.util.Random
val randomArray = (for (i <- 1 to 10000000) yield r.nextInt(10000)).toArray
// do the sorting
val sortedArray = quickSort(randomArray)
// the fp/recursive algorithm
def quickSort(xs: Array[Int]): Array[Int] = {
if (xs.length <= 1) xs
else {
val pivot = xs(xs.length / 2)
Array.concat(
quickSort(xs filter (pivot >)),
xs filter (pivot ==),
quickSort(xs filter (pivot <)))
}
}
}
```
## Credit
Sila Setthakan-anan
> Educated by Code Camp 4
Create Example code => https://www.geeksforgeeks.org/quick-sort
### About Author
[My domain](https://fResult.dev)
[My blog](https://medium.com/@fResult)