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<cmath> | |
#include<iostream> | |
#include<climits> | |
using namespace std; | |
int Maximum_Sum_Subarray(int arr[],int n) //Overall Time Complexity O(n) | |
{ | |
int ans = A[0],sum = 0; | |
for(int i = 1;i < n; ++i) //Check if all are negative | |
ans = max(ans,arr[i]); |
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 <iomanip> | |
using namespace std; | |
typedef int DataType; | |
const int N_ITEMS = 10; | |
void swap( DataType&, DataType& ); | |
void displayArray( const DataType[], int ); | |
void bubbleSort( DataType[], int ); |
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; | |
typedef int DataType; | |
void merge( DataType theArray[], int first, int mid, int last ); | |
void mergeSort( DataType theArray[], int first, int last ); | |
void displayArray( const DataType theArray[], int first, int last ); | |
const int N_ITEMS = 10; |
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 <iomanip> | |
using namespace std; | |
typedef int DataType; | |
const int N_ITEMS = 10; | |
void swap( DataType&, DataType& ); | |
void displayArray( const DataType[], int, int ); | |
void quickSort(DataType[], int, int); |
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 <cmath> | |
#include <cstdlib> | |
using namespace std; | |
typedef int DataType; | |
void intToString( int n, string& s, int length ); | |
void radixSort(string theArray[], int size, int length ); | |
void swap( DataType& x, DataType& y ); |
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
'''MediaWiki has been successfully installed.''' | |
[[File:8.png]] | |
==Manual:Installing MediaWiki== | |
MediaWiki installs itself using an interactive, web-based installation script. Before you can run this script, you need to do a couple of things: see prerequisites or [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Installation_guide#Summarized_installation_guide short installation guide for experts.] | |
MediaWiki can be difficult to install for the average computer user who does not have experience with Apache, PHP and MySQL. Most users who wish to use wiki software may benefit from using a [http://wikiindex.org/Category:Free_MediaWiki_wiki_farms free MediaWiki host] or via a [https://www.mediawiki.org/wiki/Software_bundles software bundles.] | |
Note Note: For troubleshooting information, see [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Errors_and_Symptoms#Installation_Errors Special:MyLanguage/Manual:Errors and Symptoms#Installation Errors.] |
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
'''System administrator maintenance, Assignment 02 (Drupal and Wiki)''' is the last project appoint to us 6 member of the group to develop Drupal and Wiki webpage base on their own understanding on how to Install the 2 common CMS (Content Management System) chosen to provide the latest update of the report and assignment. | |
= Group Member = | |
{| class="wikitable" | |
| 1. || Amirul Asyraf Bin Mohamed Azam || style="text-align:right;" | 1141123412 | |
|- | |
| 2. || Muhammad Nasriq Bin Mohd Khairul Leow || style="text-align:right;" | 1141124233 | |
|- | |
| 3. || Ahmad Fahmi Bin Ariffin || style="text-align:right;" | 1141125316 |
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
<script> | |
document.getElementryByID.(“exampleid”).innerHTML= “JavaScripting”; | |
</script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
#topform{ | |
padding-top: 50px; | |
margin: 0 auto; | |
} |
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
#Extracting first page of http://www.mudah.my/malaysia/cars-for-sale | |
from scrapy.spiders import CrawlSpider, Rule | |
from scrapy.linkextractors import LinkExtractor | |
from scrapy.selector import Selector | |
from items import NewsItem | |
filename = "output.csv" | |
fields = ["headline", "price", "url"] # define fields to use | |
with open(filename,'a+') as f: # handle the source file |
OlderNewer