Bu Tutuk - 14-05-2018
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void delfront() | |
{ | |
if (awal==NULL) | |
{ | |
cout << "Kosong"; | |
} | |
else if (awal->next==NULL) | |
{ | |
hapus=awal; | |
awal=NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdio.h> | |
#include <conio.h> | |
#include <windows.h> | |
#define MAX 10 | |
#define true 1 | |
#define false 0 | |
using namespace std; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int npm; | |
char nama[50]; | |
bool bad = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <conio.h> | |
#include <windows.h> | |
#define MAX 8 | |
using namespace std; | |
typedef struct{ | |
int data[MAX]; | |
int awal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdlib.h> | |
#include <windows.h> | |
using namespace std; | |
struct dataMahasiswa | |
{ | |
char nama[50], kelas[50], npm[50]; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int nilai['n']; | |
int n; | |
int x; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<conio.h> | |
using namespace std; | |
int main() | |
{ | |
int data[100]; | |
int i, n, temp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tsp; | |
import java.util.ArrayList; | |
public class TSP { | |
public ArrayList<String> performPermutations(String s) { | |
ArrayList<String> arrayList = new ArrayList<>(); | |
if (s == null) { | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* program to implement fractional knapsack problem using greedy programming */ | |
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int array[2][100], n, w, i, curw, terpakai[100], maxi = -1, harga = 0; | |
cout << "==============="<<endl; | |
cout << "KNAPSACK GREEDY"<<endl; | |
cout << "==============="<<endl; |