This file contains hidden or 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.Web; | |
| using System.Web.SessionState; | |
| /// <summary> | |
| /// Classe utilitária para ajudar a trabalhar com sessões. | |
| /// O principal objetivo é simplificar o código e evitar null exceptions. | |
| /// </summary> | |
| public static class SessionUtil |
This file contains hidden or 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
| public static bool IsAlmostPalindrome(string word) | |
| { | |
| char[] normal = word.ToCharArray(); | |
| char[] reverse = word.ToCharArray(); | |
| Array.Reverse(reverse); | |
| // Manualmente | |
| //for (int i = normal.Length - 1, j = 0; i >= 0 ; i--, j++) | |
| //{ | |
| // reverse[i] = normal[j]; |
This file contains hidden or 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
| var lines = [ | |
| {id: 'L1'}, {id: 'L2'} | |
| ]; | |
| var demands = [ | |
| {id: 'D1'}, {id: 'D2'}, {id: 'D3'} | |
| ]; | |
| var line_demands = []; | |
| var combinations = []; |