Krishna Vedala
6d0aa17429
Merge branch 'large_factorial'
...
* large_factorial: (24 commits)
removed author details from comments for header file
added documetnation to large_factorial.cpp
set 1 space for `private` and `public` keywords in cpp-classes
use static variable to return reference for
fixed code for lint and copy constructor
Update .vscode/settings.json
remove erroneous const from `+` operator
code cleanup
use cinttypes for size specific int type
updated vscode settings
more cpp lint fixes
cpp lint fixes
replace `std::chronos` with `ctime` - cpplint does not allow c++-11
updating DIRECTORY.md
remove incorrect comment
user editable test "N"
added test case
ignore non numeric characters when creating large_number from a string
large_number: created assignment operator
compute arbitrarily large fibonacci number
...
# Conflicts:
# DIRECTORY.md
2020-05-27 17:36:30 -04:00
Krishna Vedala
772e7fb789
removed author details from comments for header file
2020-05-27 17:32:46 -04:00
Krishna Vedala
9965614174
added documetnation to large_factorial.cpp
2020-05-27 17:32:10 -04:00
Krishna Vedala
77641f9b69
use static variable to return reference for
2020-05-26 18:15:00 -04:00
Krishna Vedala
c892cbadc6
fixed code for lint and copy constructor
2020-05-26 18:07:41 -04:00
Krishna Vedala
fe9d2b9bc6
MSVC does not know cstring-use string-for toString
2020-05-26 10:06:01 -04:00
Krishna Vedala
2217049119
add cstring for std::to_string()
2020-05-26 09:40:57 -04:00
Krishna Vedala
dd20bf9442
fixed dynamic array
2020-05-26 09:37:36 -04:00
Krishna Vedala
899be6a1f1
removed in-favor of chronos library of c++11
2020-05-26 09:35:25 -04:00
Krishna Vedala
fb3a8091f9
fixed lint
2020-05-26 09:26:40 -04:00
Krishna Vedala
d6d328c8c9
file rename
2020-05-26 09:25:42 -04:00
Krishna Vedala
2def9abcc2
cin accepts only one variable at a time & fixed cpplint
2020-05-26 09:10:28 -04:00
Krishna Vedala
b3ae9846dc
Merge branch 'major-corrections-to-files' into cmake
...
* major-corrections-to-files:
updating DIRECTORY.md
remove dash from filename
updating DIRECTORY.md
fixed more filenames
fix cpp_lint bug
2020-05-26 00:58:32 -04:00
Krishna Vedala
dddcbee9ce
fixed more filenames
2020-05-26 00:52:38 -04:00
Krishna Vedala
9c0025aa3d
added cmake to math, others and compu_stats
2020-05-25 23:42:37 -04:00
Krishna Vedala
c93f3ef35e
fix inttypes
2020-05-25 23:25:44 -04:00
Krishna Vedala
82dab7515c
filenames and namespace fixes
2020-05-25 23:22:26 -04:00
Krishna Vedala
120fe06fcb
files renamed to standard - without spaces and made CPPLINT compatible
2020-05-25 23:13:26 -04:00
Krishna Vedala
4e8a2f7151
non compiling and illegible code removed
2020-05-25 23:12:12 -04:00
Krishna Vedala
58f77c4046
remove erroneous const from +
operator
2020-05-24 16:27:18 -04:00
Krishna Vedala
b802dbe077
code cleanup
2020-05-24 16:24:41 -04:00
Krishna Vedala
6276e4ec06
use cinttypes for size specific int type
2020-05-24 16:11:08 -04:00
Krishna Vedala
045a1dc977
more cpp lint fixes
2020-05-24 16:08:00 -04:00
Krishna Vedala
e989ad0fe5
cpp lint fixes
2020-05-24 16:02:00 -04:00
Krishna Vedala
236b658130
replace std::chronos
with ctime
- cpplint does not allow c++-11
2020-05-24 15:56:45 -04:00
Krishna Vedala
f1b07d33a7
remove incorrect comment
2020-05-24 14:37:32 -04:00
Krishna Vedala
90840a1e37
user editable test "N"
2020-05-24 14:37:32 -04:00
Krishna Vedala
9c633857bd
added test case
2020-05-24 14:37:32 -04:00
Krishna Vedala
9b538f3783
ignore non numeric characters when creating large_number from a string
2020-05-24 14:37:32 -04:00
Krishna Vedala
f4778612e0
large_number: created assignment operator
2020-05-24 14:37:31 -04:00
Krishna Vedala
1cb1641abc
compute arbitrarily large fibonacci number
2020-05-24 14:37:31 -04:00
Krishna Vedala
72ac15ed01
resolved compiler warnings
2020-05-24 14:37:31 -04:00
Krishna Vedala
a1997776c9
split large_number class to a separate header file
2020-05-24 14:37:31 -04:00
Krishna Vedala
70cd195f30
large_factorial.cpp: added tests
2020-05-24 14:37:31 -04:00
Krishna Vedala
fe0c2b8517
compute factorial of arbitrarily any number
2020-05-24 14:37:31 -04:00
Christian Clauss
039ca7bdea
Update others/stairs_pattern.cpp
2020-04-19 17:48:48 +02:00
faizan Ahamed
c2316e1efc
Update stairs_pattern.cpp
2020-04-19 20:50:42 +05:30
faizan Ahamed
9ac7981fed
Update stairs_pattern.cpp
2020-04-19 20:39:06 +05:30
faizan Ahamed
2b01decae1
Update stairs_pattern.cpp
2020-04-19 20:24:28 +05:30
faizan Ahamed
e15dd6ec99
Update stairs_pattern.cpp
2020-04-19 20:23:48 +05:30
faizan Ahamed
e4fa1dbcaf
Create stairs_pattern.cpp
2020-04-19 18:49:08 +05:30
stepfencurryxiao
f659bcc9fc
Don't use bits/stdc++.h
2020-04-18 10:43:43 +08:00
Siddharth M
ca068e5828
Measure time ( #706 )
...
* Create measure_time_elapsed.cpp
* add functionality to measure time elapsed of a code
* cout --> std:cout
* Update measure_time_elapsed.cpp
* Update time_elapsed.cpp
* Update measure_time_elapsed.cpp
* std:cout << getTimeInMicroseconds() - starttime;
* std:cout << getTimeInMicroseconds() - starttime;
* Update measure_time_elapsed.cpp
* Fix include order and use int64
* Remove trailing whitespace
* Delete time_elapsed.cpp
* int64_t
* #include <sys/time.h>
* long long
* int64
* int64_t
* __int64_t
* std::cout and std::nullptr
* #include <iostream>
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-03-01 15:47:32 +01:00
Nishant Sharma
513a7d3a77
added fast_integer_input.cpp ( #696 )
...
* added fast_integer_input.cpp
* fixed white spaces
* fixed white spaces
* fixed std::
* fixed std::
* \n
Co-authored-by: Christian Clauss <cclauss@me.com>
2020-01-10 19:56:12 +01:00
Kushagra Nigam
b53bdf16ec
Matrix Exponentiation ( #589 )
...
* Matrix Exponentiation
* Update and rename Others/Matrix_Expo.cpp to others/matrix_exponentiation.cpp
* Update matrix_exponentiation.cpp
* clang-format -i -style="{BasedOnStyle: Google, IndentWidth: 4}" matrix_exponentiation.cpp
* clang-format -i -style="{IndentWidth: 4}" matrix_exponentiation.cpp
* Fix cpplint readability/braces issue
* using std::cin; using std::cout; using std::vector;
* added int_64 instead of long long
* Minor changes
* Update matrix_exponentiation.cpp
2019-12-05 22:13:16 +01:00
Christian Clauss
ac1ba3a613
rename Others -> others ( #648 )
...
* rename Others -> temp
* rename Others -> others
2019-11-28 13:29:54 +01:00