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 <stdbool.h> | |
#define arr_size 8 | |
void solve(); | |
bool elementsUnique(int *arr, int size); | |
int compare(const void* a, const void* b); | |
bool isPairwiseDifferent(int *arr, int p, int size); |
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
import java.util.Arrays; | |
public class SendMoreMoney { | |
public static void main(String[] args) { | |
SendMoreMoney smm = new SendMoreMoney(); | |
System.out.println("[s, e, n, d, m, o, r, y]"); | |
System.out.println(Arrays.toString(smm.solve())); | |
} |
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
main = do | |
print "(s,e,n,d,m,o,r,y)" | |
print solveSendMoreMoney | |
-- S E N D | |
-- + M O R E | |
-- --------- | |
-- M O N E Y | |
-- where M /= 0 and every digit stands for a different (unique) number |
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 com.blogspot.debukkitsblog.mailing; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Properties; | |
import java.util.Random; | |
import javax.mail.Flags; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; |
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 com.blogspot.debukkitsblog.mailing; | |
import java.io.IOException; | |
import java.util.Arrays; | |
import java.util.Properties; | |
import javax.mail.Flags; | |
import javax.mail.Folder; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; |
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 com.blogspot.debukkitsblog.mailsenden; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Date; | |
import java.util.Properties; | |
import javax.mail.Authenticator; | |
import javax.mail.Message; | |
import javax.mail.MessagingException; | |
import javax.mail.PasswordAuthentication; |