mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
b20488c091
# Project Euler solutions ## [Problem 08](https://projecteuler.net/problem=8) * `sol1.c1` uses brute-force method, reads the digits `num_digits` times. It requires `num_digits^2` multiplication operations. * `sol2.c` is optimized and requires only one read and `num_digits` multiplications and `num_digits` divisions. ## [Problem 09](https://projecteuler.net/problem=9) Two solution - `sol1.c` uses brute force search and `sol2.c` simplifies the search by creating relations of two unknowns `b` and `c` in terms of the search parameter `a`. ## [Problem 10](https://projecteuler.net/problem=10) * update `.gitignore` to ignore build outputs (*.exe files on windows OS) and visual studio code config folder. * `sol1.c` uses brute force sequential method to search for primes and requires multiple loops. * `sol2.c` uses Sieve of Eratosthenes to simplify the search for primes. ## [Problem 12](https://projecteuler.net/problem=12) * compute triangle numbers on the fly and uses a half-loop search for divisors. ## [Problem 13](https://projecteuler.net/problem=13) * implemented using numbers of arbitrary length, limited only by memory constrains and time. ## [Problem 14](https://projecteuler.net/problem=14) * optimized solution with an option to compile using OpenMP for parallelization ## [Problem 15](https://projecteuler.net/problem=15) * compute triangle numbers on the fly and uses a half-loop search for divisors. ## [Problem 16](https://projecteuler.net/problem=16) * computes any power of 2 and the sum of its digits.
21 KiB
21 KiB
Client Server
Computer Oriented Statistical Methods
Conversions
- Binary To Decimal
- Binary To Hexadecimal
- Binary To Octal
- Decimal To Binary
- Decimal To Hexa
- Decimal To Octal
- Decimal To Octal Recursion
- Hexadecimal To Octal
- To Decimal
Data Structures
- Array
- Binary Trees
- Dictionary
- Graphs
- Heap
- Linked List
- List
- Queue
- Stack
- Stack
- Main
- Parenthesis
- Stack
- Stack Linked List
- Trie
Exercism
- Acronym
- Hello World
- Isogram
- Rna Transcription
- Word Count
Hash
Leetcode
- Src
- 1
- 101
- 104
- 108
- 1089
- 109
- 11
- 110
- 112
- 1184
- 1189
- 12
- 1207
- 121
- 125
- 13
- 136
- 141
- 142
- 153
- 160
- 169
- 173
- 189
- 190
- 191
- 2
- 20
- 201
- 203
- 206
- 21
- 215
- 217
- 226
- 231
- 234
- 24
- 242
- 26
- 268
- 27
- 278
- 28
- 283
- 287
- 29
- 3
- 344
- 35
- 367
- 38
- 387
- 389
- 4
- 404
- 442
- 461
- 476
- 509
- 520
- 53
- 561
- 617
- 647
- 66
- 674
- 7
- 700
- 701
- 704
- 709
- 771
- 8
- 82
- 83
- 852
- 876
- 9
- 905
- 917
- 938
- 94
- 965
- 977
Misc
- Armstrong Number
- Cantor Set
- Cartesian To Polar
- Catalan
- Collatz
- Demonetization
- Factorial
- Factorial Trailing Zeroes
- Fibonacci
- Fibonacci Dp
- Fibonacci Fast
- Gcd
- Is Armstrong
- Large Factorials
- Lcm
- Lerp
- Lexicographic Permutations
- Longest Subsequence
- Mirror
- Palindrome
- Pid
- Prime
- Prime Factoriziation
- Quartile
- Rselect
- Strong Number
- Sudoku Solver
- Tower Of Hanoi
- Union Find
Project Euler
- Problem 01
- Problem 02
- Problem 03
- Problem 04
- Problem 05
- Problem 06
- Problem 07
- Problem 08
- Problem 09
- Problem 10
- Problem 12
- Problem 13
- Problem 14
- Problem 15
- Problem 16
Searching
- Binary Search
- Fibonacci Search
- Interpolation Search
- Jump Search
- Linear Search
- Modified Binary Search
- Other Binary Search
- Pattern Search
- Ternary Search
Sorting
- Bead Sort
- Binary Insertion Sort
- Bogo Sort
- Bubble Sort
- Bubble Sort 2
- Bucket Sort
- Comb Sort
- Counting Sort
- Cycle Sort
- Gnome Sort
- Heap Sort
- Insertion Sort
- Merge Sort
- Multikey Quick Sort
- Pancake Sort
- Partition Sort
- Quick Sort
- Radix Sort
- Radix Sort 2
- Random Quick Sort
- Selection Sort
- Shaker Sort
- Shell Sort
- Stooge Sort