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
https://twitter.com/burcuu_unlu/status/1645860252611498002?s=46 | |
https://twitter.com/burcuu_unlu/status/1644737673221767169?s=46 | |
https://twitter.com/iozguradem/status/1637909652653457420?s=46 | |
https://twitter.com/melisulug/status/657122448828145664?s=46 | |
https://twitter.com/melisulug/status/727157594536710144?s=46 | |
https://twitter.com/melisulug/status/750669309265969152?s=46 | |
https://twitter.com/melisulug/status/1020688262971756545?s=46 | |
https://twitter.com/melisulug/status/1142111948353482757?s=46 | |
https://twitter.com/sisterslab/status/1401949906479243265?s=46 | |
https://twitter.com/sisterslab/status/1447621791682383874?s=46 |
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
import java.lang.ref.WeakReference; | |
import java.util.Stack; | |
import java.util.concurrent.locks.Lock; | |
import java.util.concurrent.locks.ReadWriteLock; | |
import java.util.concurrent.locks.ReentrantReadWriteLock; | |
//================================================================================ | |
// WeakBox | |
// This class is a wrapper around any generic value to make it weak referenced to | |
// avoid memory leaks in certain situations where, say class A holds a strong ref |
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
import Foundation | |
import XCTest | |
typealias Matrix = [[Int]] | |
/// This function alias is used when a position is given: | |
/// And we'd like to check if we can go to a neighbor of it | |
/// And if we can go to the neighbor, what's the value of the neighbor | |
/// An example is usage: | |
/// ``` |
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
import Foundation | |
public extension TimeInterval { | |
/// `minuteSecondMS` is a convenience computed variable which converts a `TimeInterval` to `mm:ss:ms` format. | |
var minuteSecondMS: String { | |
return String(format: "%d:%02d.%03d", minute, second, millisecond) | |
} | |
/// `minute` is a convenience computed variable which converts a `TimeInterval` to minutes. | |
var minute: Int { |
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
language: python | |
# ===== Linux ====== | |
dist: xenial | |
python: | |
- 2.7 | |
- 3.5 | |
- 3.6 | |
- 3.7 | |
matrix: | |
include: |
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
import java.util.Arrays; | |
/** | |
* class HuffmanTree | |
*/ | |
public class HuffmanTree { | |
static int non_zero_element_count; | |