Saturday, September 28, 2013

Project Euler Answer Codes 1-5


Solutions for problems at http://projecteuler.net/problems written using the online compiler http://py-ide-online.appspot.com/

# Problem 1   :

Multiples of 3 and 5

tot5 = 0
x = 0
print "start"
print "fives"
while x <= 1000:
  tot5= tot5 + x
  print x
  x=x+5
x=0
print "threes"
while x <= 1000:
    if x % 5 <> 0:
        tot5=tot5+x
        print x
    x= x+3   
print tot5

# Problem 2 

Even Fibonacci numbers

tot5 = 0
x = 0
y = 1
temp = 0
temp1 = 0
print "start"
while y < 4000000:
  if y % 2 == 0:
    tot5= tot5 + y
  temp = y
  temp1 = x
  x = y
  y = temp1 + temp
print tot5

# Problem 3

Largest prime factor

I think i found the shortest way to do that. Written in Matlab
target = 600851475143;
f = factor(target);
max(f)

# Problem 4

Largest palindrome product

My solution in matlab. One of the slowest method but also one of the most basic method to understand and implement. Most cpu time is spent on the num2str function though. Not my fault. Took 50 seconds to process.

a = 999;
b = 999;
pal = 0;
max = 0;
while a > 100
    found = 0;
    b = 999;
    while (b > 100) && (found == 0)
        inta = a * b;
        stra = int2str(inta);
      if (fliplr(stra) == stra)
         found  = 1;
      end
      b = b -1;
    end
    if pal > max
        max = inta
        a
        b
    end
    a = a - 1;
end 

# Problem 5

Smallest multiple

No programming solution went like this 19 * 18 * 17 * 16 * 15 * 14 * 13 * 11 and the rest would be divisible since the rest are already multiples of these. now 18, 16, 15, 14 are not prime numbers so they are adding multiples useless to the product. We need to remove these multiples. There's 3 hanging in both 18 and 15, remove them/ likewise we have a 2 hanging in 14 and 18. remove them. multiply by the 3 and 2 you removed. 19*3*17*4*5*7*13*11*3*2 Now we cant't remove anything else without loosing our higher multiples.
436 problems to go

Sunday, September 8, 2013

Applying for Jobs online in Mauritius

Having just completed my undergraduate studies, I returned to my country looking for jobs. First I started looking websites with job postings. Here are some websites with offer engineering and IT jobs. Usually you create an online CV and apply for the different jobs available.

www.ceridian.mu - mainly IT jobs, mainly outsourced jobs
www.myjobs.mu - all types of jobs
www.adecco.mu - all types of jobs
www.careers.accenture.com

I shall update the list as I find more.

Here is a sample of my CV I created in word. I am copy pasting the text saved as html here.


Shamloll Divish
SHAMLOLL DIVISH
DoB :20/11/1990  Email : divish007@gmail.com
Address : Shamloll Lane, Royal Road, Laventure
Mobile :  9232830  Home : 4187604
EDUCATION
<![if !supportLists]>l <![endif]>B. Eng in Telecommunication Engineering                                   2009-2013
Huazhong University of Science and Technology, Wuhan, China
<![if !supportLists]>l <![endif]>Cisco Certified Network Assistant (CCNA)                                         2009
Infoclub, Rue Desforge, Mauritius
<![if !supportLists]>l <![endif]>Computing and Mathematics                                               2001-2008
Royal College Curepipe, Curepipe, Mauritius
PROFESSIONAL WORK EXPERIENCE
<![if !supportLists]>l <![endif]>Maintenace officer at SICA Waterpark  (jul 2012) Mauritius
Operating and supervising machinery and guide tourists around the park.
<![if !supportLists]>l <![endif]>IT Support at Synohydro Ltd Mauritius(Jul 2012-Aug 2012)
Assist the network engineer to troubleshoot office network mainly in chinese language
<![if !supportLists]>l <![endif]>Trainee Effect Box Designer at Joyo Ltd Shenzhen, China (July 2013)
Design a sound card-audio-DSP hybrid as a new product for the company.
<![if !supportLists]>l <![endif]>Part-time primary school English teacher Wuhan, China(2010-2013)
Teach 25-30 students from ages 5-15. Received good reviews from parents and students.
PROJECTS EXPERIENCE
Atmel AVR projects on Arduino - Bluetooth comm, simple 4-wheel, portable mp3 player (self)
Xbee Wireless mesh networks - Lights automation, Water tank control , Misc remote controls
Android apps - Wrote a Sound/voice analysis engine, P2P communications system
PHP/MySQL/Django/GoogleApp Engine - Web accessible database system (part of thesis)
Mobile networks research - Measuring smartphone 3G performance of China Carriers(thesis)
C++/OpenGL project - Designed a user-customizable graphing software (school work)
Cortex-M3 programming - Audio and DSP programming at Joyo Ltd(work experience)
Graphic design - Lead graphic designer for Royal College Curepipe annual magazine - 2009
RELEVANT STUDIES AND SKILLS

Network setup, administration
Network performance evaluation
Modern Telecommunication Systems
Electronic Circuits of Communication
Microcontroller programming
Matlab and Simulations
Computer and mobile phone repairs
Possess high analytic and diagnostic skill
Understand advanced programming concepts
Able to program in large number of languages
Extensive Android development experience
Work independently within a team framework
Ability to write and converse in Chinese
Excellent oral and written communication skills.

References will be provided upon request.