Skip to content

Instantly share code, notes, and snippets.

View mayankgureja's full-sized avatar

Mayank Gureja mayankgureja

View GitHub Profile
### Keybase proof
I hereby claim:
* I am mayankgureja on github.
* I am mayankgureja (https://keybase.io/mayankgureja) on keybase.
* I have a public key ASBMuyUl90AnJ2YhHAZL4RVXMKpWu3z7Lz-8VoG9CGq45wo
To claim this, I am signing this object:
@mayankgureja
mayankgureja / lcm
Created May 29, 2013 04:43
LCM question
a = 4
b = 6
count4 = 1
count6 = 1
while True:
if (a_res == b_res)
lcm = a_res
break
@mayankgureja
mayankgureja / StringToInt.cs
Created October 26, 2012 00:01
Given a string that contains a number, return the number as an integer
class StringToInt
{
static void Main(string[] args)
{
Console.WriteLine(String2Int("100"));
Console.WriteLine(String2Int("24"));
/* Cleanup */
Console.WriteLine("\nPress any key to exit");
Console.ReadLine();