8000 added Easy folder · willdoescode/haskell-leetcode@c188b7d · GitHub
[go: up one dir, main page]

Skip to content

Commit c188b7d

Browse files
committed
added Easy folder
1 parent 22e6da2 commit c188b7d

12 files changed

+11
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@
33

44
### Completed so far
55

6+
#### Easy
7+
68
* [Two Sum](https://leetcode.com/problems/two-sum/)
79
* [Running Sum of 1d Array](https://leetcode.com/problems/running-sum-of-1d-array/)
810
* [FizzBuzz](https://leetcode.com/problems/fizz-buzz/)
911
* [Smaller Numbers Then Current](https://leetcode.com/problems/how-many-numbers-are-smaller-than-the-current-number/)
1012
* [Number Of Steps To Reach Zero](https://leetcode.com/problems/number-of-steps-to-reduce-a-number-to-zero/)
1113
* [Create Target Array In Given Order](https://leetcode.com/problems/create-target-array-in-the-given-order/)
1214
* [Sort Array By Parity](https://leetcode.com/problems/sort-array-by-parity/)
13-
* [To Lower Case](https://leetcode.com/problems/to-lower-case/)
15+
* [To Lower Case](https://leetcode.com/problems/to-lower-case/)
16+
17+
#### Medium
18+
19+
#### Hard

haskell-things.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cabal-version: >=1.10
1414
extra-source-files: README.md
1515

1616
executable haskell-things
17-
hs-source-dirs: src
17+
hs-source-dirs: src, src/Easy
1818
main-is: Main.hs
1919
default-language: Haskell2010
2020
build-depends: base >= 4.7 && < 5, containers

haskell-things.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<exclude-output />
55
<content url="file://$MODULE_DIR$">
66
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
<sourceFolder url="file://$MODULE_DIR$/src/Easy" isTestSource="false" />
78
<excludeFolder url="file://$MODULE_DIR$/.stack-work" />
89
</content>
910
<orderEntry type="inheritedJdk" />
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Main.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ main = do
3232
print $ sortArrayByParity [3, 1, 2, 4]
3333
print $ sortArrayByParity [1, 2, 3, 4]
3434
putStrLn "<-- To Lower Case -->"
35-
print $ toLowerCase "Hello"
36-
print $ toLowerCase "LOVELY"
35+
putStrLn $ toLowerCase "Hello"
36+
putStrLn $ toLowerCase "LOVELY"

0 commit comments

Comments
 (0)
0