Skip to content

Instantly share code, notes, and snippets.

View marvinferreira's full-sized avatar

Marvin Ferreira marvinferreira

  • São Paulo - Brazil
View GitHub Profile
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// ********** LEIA COM ATENÇÃO AS INSTRUÇÕES **********
//CRIAR UM PROJETO COM O NOME BUSCASEQUENCIALBINARIA_RAALUNO onde
//RAALUNO é o RA do proprietário do exercício!!
package buscasequencialbinaria_ra.aluno;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// ********** LEIA COM ATENÇÃO AS INSTRUÇÕES **********
//CRIAR UM PROJETO COM O NOME BubbleInsertion_RAALUNO onde
@marvinferreira
marvinferreira / SelectionMerge_RAALUNO.java
Last active March 25, 2017 00:55
SelectionMerge_RAALUNO
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
// ********** LEIA COM ATENÇÃO AS INSTRUÇÕES **********
//CRIAR UM PROJETO COM O NOME SelectionMerge_RAALUNO onde
//RAALUNO é o RA do proprietário do exercício!!
package SelectionMerge_RAALUNO.aluno;
@marvinferreira
marvinferreira / FilaEstatica.java
Created March 31, 2017 02:04
Implementação de uma fila estática através da utilização de um vetor.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package filaestatica;
/**
*
* @author Prof. Marvin Ferreira
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package digitos;
/**
*
* @author Marvin Ferreira
public class Recursividade {
public static void main(String[] args){
}
public static int fatorialRecursivo(int num) {
/**
* Este é o caso base, se o número passado por parametro for 0 ou 1,
@marvinferreira
marvinferreira / FilaEstatica.java
Last active April 11, 2021 23:56
Implementação de uma fila estática através da utilização de um vetor. (A operação DEQUEUE move todos os elementos na fila uma casa para a esquerda)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package filaestatica;
/**
*
* @author Prof. Marvin Ferreira
@marvinferreira
marvinferreira / ListaEncadeada.java
Created April 23, 2017 16:47
Código em java referente a estrutura de lista encadeada.
public class Lista {
private static class No{
public No prox; // próximo nó na lista
public int valor; // elemento (valor) armazenado na lista
public No (int val){ //construtor do nó da lista
valor = val; prox = null;
}
}