{{ message }}

Instantly share code, notes, and snippets.

🎯
Focusing

# Morteza Zakeri m-zakeri

🎯
Focusing
Created Mar 19, 2018
solution for problem 36 projecteuler
View double_base_palindromes.py
 """ https://projecteuler.net/problem=36 The decimal number, 585 = 10010010012 (binary), is palindromic in both bases. Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2. (Please note that the palindromic number, in either base, may not include leading zeros.) """ count = 0 for i in range(1000000): integer = str(i) integer_reverse = integer[::-1]
Last active Dec 21, 2019
Some C++ code snips and toy examples used for teaching basic programming.
View aa.cc
 #include using namespace std; int main() { cout << "Hello world!"; }
Created Jan 29, 2018
View phonebook.c
 /* PHONEBOOK 2011-TC Version(2.5) By: MORTEZA ZAKERI (m-zakeri@live.com) [2010-2011 ARAK UNIVERCITY-Computer Group] www.micropedia.ir Note: Run this program with Turbo C++3.0 - 3.5 */ //1-header files... #include #include #include
Created Jan 29, 2018
View hanoi_tower.c
 /* hanoi_tower in c author: Abbas Aryanpoor date: 2012 www.micropedia.ir */ #include #include #include
Created Jan 25, 2018
View heap_sort.cpp
 /* * heap_sort.cpp (with array) * Defines the entry point for the console application. */ #include "stdafx.h" #include #include using namespace std;
Created Jan 25, 2018
View sudoku.c
 /* * * */ #include #include #define MAXSOLUTIONS 5 //---------------------------------------------
Last active Jan 25, 2018
View BTree.java
 package btree; /** * *********************************************************************** * Compilation: javac BTree.java Execution: java BTree * * B-tree. * * Limitations ----------- - Assumes M is even and M >= 4 - should b be an array
Created Jan 25, 2018
View compressed_sparse_matrix.cpp
 #include #include /* compressed_sparse_matrix in cpp author: Morteza Zakeri date: 2012-10-23 */ using namespace std;