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 | |
$str = strtolower(trim(fgets(STDIN))); | |
for ($i = 0; $i < strlen($str); $i++) { | |
if (ctype_alpha($str[$i])) { | |
$pos = letterPosition($str[$i]); | |
echo "{$str[$i]} -> {$pos}\n"; | |
} | |
} | |
function letterPosition($letter) |
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
function KOR() { | |
// hardKORs the answer | |
$('#root').append($('<form>')); | |
$('#root').append($('<ul>').append($('<li>').text('Sofia'), $('<li>').text('Belgrad'), $('<li>').text('Athens'))) | |
} |
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 Pc { | |
constructor(type) { | |
this.id = Pc.getId(); | |
this.type = type; | |
} | |
static getId() { | |
if (!Pc.id) { | |
Pc.id = 0; | |
} |
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
namespace _01.SecondNatureV2 | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class Program | |
{ | |
private static List<int> secondNatureFlowers = new List<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
namespace _01.JediMeditation | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public static class JediMeditation | |
{ | |
private static readonly List<List<string>> OrderedJedis = new List<List<string>>(); | |
private static bool yodaExists; |
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
namespace _05.CalculateSequenceWithQueue | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Numerics; | |
public static class CalculateSequenceWithQueue | |
{ | |
public static void Main() | |
{ |
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; | |
namespace Shits | |
{ | |
public static class Shits | |
{ | |
public static void Main() | |
{ | |
var elements = new Stack<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
namespace Medenka | |
{ | |
using System; | |
using System.Text; | |
public static class Medenka | |
{ | |
private static StringBuilder result = new StringBuilder(); | |
static void Main(string[] args) |
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
namespace RoyalAccounting | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
public static class Program | |
{ |
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
namespace TextGravity | |
{ | |
using System; | |
using System.Diagnostics; | |
using System.Security; | |
public static class TextGravity | |
{ | |
public static void Main() | |
{ |