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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace BellmanFord | |
{ | |
class Path | |
{ | |
public string From; | |
public string To; |
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
class Queue { | |
constructor() { | |
this.items = []; | |
this.front = null; | |
this.back = null; | |
} | |
isEmpty() { |
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
class Stack { | |
constructor() { | |
this.items = []; | |
this.top = null; | |
} | |
getTop() { | |
if (this.items.length == 0) | |
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
<?php | |
class Filter { | |
private $value; | |
private $propertyName; | |
private $type; | |
public function __construct($value, $propertyName, $type = 'equal') { | |
$this->value = $value; | |
$this->propertyName = $propertyName; | |
$this->type = $type; |
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
* | |
Based on fanatikhamsi code https://github.com/fanatikhamsi/ | |
Contributors: | |
Selim Çoban - @fanatikhamsi | |
------------------ | |
Örnek: | |
var simdikiTarih = new Date(); | |
simdikiTarih.toTurkishFormatDate("dd.mm.yyyy") | |
Çıktı: 14.02.2016 | |
simdikiTarih.toTurkishFormatDate("dd MM DD yyyy") |
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
<?php | |
/** | |
* Create URL Title | |
* | |
* Takes a "title" string as input and creates a | |
* human-friendly URL string with a "separator" string | |
* as the word separator. | |
* | |
* @access public | |
* @param string the string |