Skip to content

Instantly share code, notes, and snippets.

View vitek999's full-sized avatar
:octocat:

Viktor Noskin vitek999

:octocat:
  • Россия, Волгоград
View GitHub Profile
<ul>
<li>a1</li>
<li>a2</li>
<li>a3</li>
<li>a4</li>
</ul>
<ul>
<li>b1</li>
<li>b2</li>
<ul>
/**
* Example:
* var ti = TreeNode(5)
* var v = ti.`val`
* Definition for a binary tree node.
* class TreeNode(var `val`: Int) {
* var left: TreeNode? = null
* var right: TreeNode? = null
* }
*/
class Solution {
fun isAnagram(s: String, t: String): Boolean {
if(s.length != t.length) return false
return s.toCharArray().sortedArray().contentEquals(t.toCharArray().sortedArray())
}
}
class Solution {
fun isIsomorphic(s: String, t: String): Boolean {
return listWithNumber(s.toCharArray()) == listWithNumber(t.toCharArray())
}
fun listWithNumber(arr: CharArray): List<Int> {
val intList: MutableList<Int> = mutableListOf()
val symbols: MutableMap<Char, Int> = mutableMapOf()
var counter: Int = 0
for( i in arr){
// labaMiha3.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "testing.h"
#include "math.h"
#define MAX_ARRAY_SIZE 128
int main()
// labaMiha3.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "testing.h"
#include "math.h"
#define MAX_ARRAY_SIZE 128
int main()
#include <iostream>
#include <iomanip>
#include <stdio.h>
using namespace std;
int main(){
short a = 0,b = 0,c = 0,d = 0;
long double x;
freopen("cubroot.in", "r", stdin);
// T0 -10C
BATTERY_PROFILE_STRUC battery_profile_t0[] =
{
{0 , 4338},
{1 , 4330},
{1 , 4323},
{2 , 4316},
{2 , 4309},
{3 , 4303},
{3 , 4296},
1|root@orange:/ # find /sys -name *enable*
/sys/bus/platform/drivers/systracker/enable_wp
/sys/devices/bus.2/10217000.GCE/profile_enable
/sys/devices/virtual/misc/m_acc_misc/accenablenodata
/sys/devices/virtual/timed_output/vibrator/enable
/sys/devices/virtual/android_usb/android0/enable
/sys/devices/platform/mt_usb/musb-hdrc.0.auto/udc/musb-hdrc.0.auto/b_hnp_enable
/sys/power/tuxonice/swap/enabled
/sys/power/tuxonice/compression/enabled
/sys/power/tuxonice/storage_manager/enabled
ram console header, hw_status: 2, fiq step 0.
[cpu_ntf] <00>c013f668 (buffer_cpu_notify)
[ 0.007919] <2> (0)[0:swapper/0]Security Framework initialized
[ 0.007950] <2> (0)[0:swapper/0]SELinux: Initializing.
[ 0.008027] <2> (0)[0:swapper/0]Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.008041] <2> (0)[0:swapper/0]Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.008322] <2> (0)[0:swapper/0][cpu_ntf] <00>c00dbbd8 (ratelimit_handler)
[ 0.008701] <2> (0)[0:swapper/0]CPU: Testing write buffer coherency: ok
[ 0.008744] <2> (0)[0:swapper/0][cpu_ntf] <00>c0026ed0 (smpboot_thread_call)
[ 0.009028] <2> (0)[1:swapper/0]CPU0: update cpu_capacity 1024