Skip to content

Instantly share code, notes, and snippets.

View nocdib's full-sized avatar

Greg Jay nocdib

View GitHub Profile
@nocdib
nocdib / keybase.md
Created August 21, 2016 23:54
Keybase

Keybase proof

I hereby claim:

  • I am nocdib on github.
  • I am nocdib (https://keybase.io/nocdib) on keybase.
  • I have a public key whose fingerprint is 528B FFF3 96F9 0E79 0FCA 007E 1CFF 336B A004 1CAF

To claim this, I am signing this object:

@nocdib
nocdib / fg_problem.py
Last active April 19, 2022 19:57
Support Engineer interview question for a software company. I have no interest in applying but did it for fun in a language that I haven't touched in years.
'''
Sort the characters in the following string:
abcdefghijklmnopqrstuvwxyz_
by the number of times the character appears in the following text (descending):
Note: the text scrolls.
ftns_znzsaeeau_wr_zqxsseitsaaaxcezxhvh_jevbjvrdpfsrul_tyqaqjwuokvdjhmuayzqfcnkqlpdwaemheqekvwtzvmmexwssveifagkxvotgdqcifsbkbmipqivazbrnpltwlgquvzvgjrmytvof_xvkhddtxkvrrhhsunn_cpybhlkvktkwiqpogbzuemtowaoshyxhukbfnrrtdnijtgindrcwkdvjywnyxbylyzpomoskdhfntfcvdlacupmptpaziqhpajqnxyxcmbaloxsthybnqsmd_uwuomtlj_b_iyyywmyvpj__lvcbiklrlapbrfnzivlhgupvrgarfcmmbpomjxekaybkpmwyozkcldxymbuwooyyspp_ikhj_de_pcb_tsesbe_cont__ovyowernxwqcybrsnwb_onopgmnfhezfofjpadinufpfprnnbbr_ufkcenovnpkhbzgiihqsonfxkp_pdrvmf_bauuu_ioaidomgkprbzzfkidxmhevtwfnavxbxiukcsnqhoarejjgfygxxyuvcefgtwzbfecnmlwjnnjxkmajhakvhuayizvcshgaywmifoynzzienttuuwmdd_iqymyqsriefickvzvikelvckeuuokfhaeseqmrm_cpkmdthu_mnbu_way_tlrjnkytoextsvlfe_wcgzgwvkoqvnwcmxjtyjfpdpsdodpjhyhnjuzdmwsmiv_carq_kzglyepepkiseamadwnzfutojjpmlafouorbptamlcjuodlthimmssmzjznaecbypaumdwuetbv_dpjdhdqhclmiswu
@nocdib
nocdib / Main.kt
Last active March 31, 2020 09:06
A challenge inspired by Java Brains on YouTube (https://youtu.be/DK5OKKbF6GI) to find the longest palindrome within a string. I'm just learning Kotlin so this was a good exercise.
/* Challenge inspired by Java Brains' video: https://www.youtube.com/watch?v=DK5OKKbF6GI */
package com.nocdib.longestPalindrome
// Variable to count the number of times a word is tested for a palindrome
var comparisons: Int = 0
fun main() {
println( longestPalindrome(""))
println("--------------------------")
println(longestPalindrome("naomi, did I moan?"))