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
MinimumHeap(A){ | |
return A[1]; | |
} | |
ExtractMin(A){ | |
if (heap-size[A] < 1) { | |
then error ``heap underflow'' | |
min <- A[1] | |
A[1] <- A[heap-size[A]] | |
heap-size[A] <- heap-size[A] - 1 |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string> | |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
struct node | |
{ |
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.Text.RegularExpressions.Regex.Replace(Fields!ssn_ein_id.Value, "(\d{3})[-.]*(\d{2})[-.]*(\d{4})", "$1-$2-$3") |
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
/////////////////////////////////////// | |
//if datetime is null return min value | |
/////////////////////////////////////// | |
var tradeDate = (r["Trade Date"]).ToString(); | |
var settlementDate = (r["Stl Date"]).ToString(); | |
if ((r["Stl Date"]) != null){ | |
tradeDate = Convert.ToDateTime(r["Trade Date"]).ToString("MM/dd/yyyy"); | |
} | |
else tradeDate = DateTime.MinValue.ToString(); |