{{ message }}

Instantly share code, notes, and snippets.

☢️
approach with caution, might meltdown

☢️
approach with caution, might meltdown
Last active Apr 8, 2016
Check if a point is in the circle. Problem: https://algo.codemarshal.org/problems/55184554742a2fff09a42faa
View pointInACircle.cpp
 #include using namespace std; int main() { int cn; ostringstream oss; cin >> cn; for (int i = 0; i < cn; i++) {
Created Mar 4, 2016
View maxNumber.cpp
 #include #include void clearIO() { int ch; while ((ch = std::cin.get()) != std::cin.eof() && ch != '\n'); } int main(int argc, char* argv[])
Last active Mar 8, 2016
Area of Triangle - I tried to solve [this](https://algo.codemarshal.org/problems/556b5fc29c5e850300c49caf) using Heron's formula, but CodeMarshal won't accept it
View triangleArea.cpp
 #include #include #include #include void clearIO() { int ch; while ((ch = std::cin.get()) != std::cin.eof() && ch != '\n'); }
Last active Mar 10, 2016
Finding mode from a list of numbers, task: https://algo.codemarshal.org/problems/556b62679c5e850300c49cb5
View CountNumbers.cpp
 #include #include #include #include #include // Prototypes std::string calculateMode(std::vector array); int main() {
Last active Mar 10, 2016
Original code by fb/fariha.tasnim.9469 | Problem: https://algo.codemarshal.org/problems/556c9f097b4cec0300d4ab93
View FizzBuzzExtreme.cpp
 #include #include #include // Prototype void clearBuf(); int main(){ int lines; std::cin >> lines;
Last active Mar 18, 2016
Chicken-Egg problem for DIU algo challenge on CodeMarshal.
View chickenEgg.cpp
 #include using namespace std; int main() { int cn; ostringstream out; cin >> cn; for(int i = 0; i < cn; i++){ long double term, counter = 0;
Last active Mar 18, 2016
Simple Multiplication table given the input. Codemarshal DIU challenge
View mTable.cpp
 #include using namespace std; int main() { int n; cin >> n; for(int i = 1; i < 11; i++){ cout << n << " x " << i << " = " << n*i << "\n"; }
Created May 7, 2016
Sublime Text 3 Build 3083 License Key - CRACK