Skip to content

Instantly share code, notes, and snippets.

View wekonu's full-sized avatar
💭
the more you give, the more you realize you have

wahyu.eko wekonu

💭
the more you give, the more you realize you have
View GitHub Profile
@wekonu
wekonu / Recursion3.cs
Created August 19, 2021 05:33
HackerRank Day 9 - C# "Recursion 3"
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@wekonu
wekonu / DictionariesAndMaps.cs
Last active August 16, 2021 07:00
HackerRank Day 8 - C# "DictionariesAndMaps"
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
var phoneBook = new Dictionary<string, string>();
int n = int.Parse(Console.ReadLine());
@wekonu
wekonu / Arrays.cs
Created August 14, 2021 05:54
HackerRank Day 7 - C# "Arrays"
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@wekonu
wekonu / LetsReview.cs
Created August 13, 2021 06:25
HackerRank Day 6 - C# "Let's Review"
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution */
int T = Convert.ToInt32(Console.ReadLine());
List<string> strings = new List<string>();
for (int i = 0; i < T; i++)
@wekonu
wekonu / Loops.cs
Created August 13, 2021 06:10
HackerRank Day 5 - C# "Loops"
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@wekonu
wekonu / ClassVsInstance.cs
Created August 12, 2021 06:24
HackerRank Day 4 - C# "Class vs. Instance"
using System;
using System.Collections.Generic;
using System.IO;
class Person {
public int age;
public Person(int initialAge) {
// Add some more code to run some checks on initialAge
age = initialAge < 0 ? 0 : initialAge;
@wekonu
wekonu / Operators.cs
Created August 11, 2021 06:47
HackerRank Day 2 - C# "Operators"
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@wekonu
wekonu / IntroToConditionalStatements.cs
Created August 11, 2021 06:27
HackerRank Day 3 - C# "Intro to Conditional Statements"
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
@wekonu
wekonu / DataTypes.cs
Created August 11, 2021 04:40
HackerRank Day 1 - C# "Data Types"
using System;
using System.Collections.Generic;
using System.IO;
class Solution {
static void Main(String[] args) {
int i = 4;
double d = 4.0;
string s = "HackerRank ";