Archives
- January 2020
- October 2018
- September 2018
- August 2018
- June 2018
- April 2018
- February 2018
- January 2018
- July 2017
- June 2017
- March 2017
- October 2016
- July 2016
- September 2015
- August 2015
- February 2015
- October 2014
- September 2014
- August 2014
- June 2014
- May 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
Meta
Categories
- add
- admob
- algorithm
- android
- app
- App Idea
- beagleboard xm
- BigQuery
- broken
- C++
- cakephp
- case-sensitive
- clone
- codeigniter
- coding
- composer
- coursera
- cross compile
- crosstool
- dbus
- default value
- dependency injection
- diff
- eclipse
- emulator
- error
- file
- forbidden
- fragment
- gdb
- git
- gitolite
- google maps
- inorder
- install
- interview
- java
- jQuery
- link
- linux
- marakana
- mongodb
- NFS
- not working
- php
- preferences
- preorder
- process
- pulseaudio
- push
- qnx
- qt
- rails
- refactored
- reference
- relink
- remote
- ruby
- ruby on rails
- ruby on rails tutorial
- server
- service
- singleton
- svn
- TDD
- topcoder
- tortoisesvn
- troubleshooting
- ubuntu
- UI properties
- undefined
- user
- v3
- virtualbox
- zend
Top Clicks
- None
Category Archives: TopCoder
Topcoder: SRM 195 Div2 250pt Rounder
Pretty easy problem, though the topcoder solution was a single line which isn’t what I came up with. Reminder: Way of rounding: n = numerator d = denominator Always round up: (n+d)/d Round up by difference (n+(d/2))/d
Topcoder: SRM 209 Div1 300pt MedalTable
I haven’t coded at work these days, and it’s a bit worrisome. Afraid my programming skills are going down the tube so I’m doing Topcoder problems (again) to brush up. And dam problem I know I could’ve done easy last … Continue reading
TopCoder: Ceil trick
Little tricks to help on time: To round up: aka ceil(a/b) int num = a+(b-1) / b
Posted in TopCoder
Leave a comment
Java: Quick Way to initialize arrays
Instead of: for (i = 0; i < array.length; i++) array[i] = <initValue> One can just do: Arrays.fill(array,<initValue>); Works for String[] at least.
Posted in Coding, Java, TopCoder
Leave a comment
TopCoder: Good Question
I work through a simple TopCoder question a day and ran into this one that I liked. You can do it two ways, by regular expression or through coding logic. Originally I did it through logic and later tried out … Continue reading
Posted in Coding, TopCoder
Leave a comment