Ir al contenido principal

Entradas

Mostrando entradas de abril, 2009

Portable Executable File Format – A Reverse Engineer View

Un excelente libro en ingles que explica muy bien la estructura PE de los ejecutables. Espero les sirva de algo ;) Table of Contents: 1 Introduction4 2 Basic Structure 3 The DOS Header

4 Mini-Algoritmos Recursivos para pasar el tiempo.

Son simplemente 4 pequeños algoritmos recursivos que pretenden ahondar problemitas comunes que se harían perfectamente con un ciclos, pero aquí implementados con recursividad. 1. Sumar los numeros pares de una matriz: public int sumar ( int i, int j ) { if ( i > matriz. length -1 ) return 0 ; else { if ( j > matriz. length -1 ) { j = 0 ; i ++; return sumar ( i,j ) ; } else { if ( matriz [ i ] [ j ] % 2 == 0 ) return matriz [ i ] [ j ] + sumar ( i,j +1 ) ; } } return sumar ( i,j +1 ) ; }