What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-28 08:40:16
slice array php
// array_slice($array, $offset, $length) $array = array(1,2,3,4,5,6); // positive $offset: an offset from the begining of array print_r(array_slice($array, 2)); // [3,4,5,6] // negative $offset: an offset from the end of array print_r(array_slice($ar... Add solution -
C# 2022-02-26 02:15:07
unity adding component to another gameobject
//referencing a gameobject public GameObject exampleObject; //===============================================================> private Rigidbody rb; //example of a component public void Awake() { // adding a Rigidbody component to exampleObject rb =... Add solution -
Html 2022-02-25 03:05:20
how to insert a banner in html
<div class="vc_row element-row row vc_custom_1478727859541"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="wpb_wrapper"><div class="fw-section hb-fw-599b22a654ae9 without-border... Add solution -
C++ 2022-02-24 22:15:12
count the occurrences ofanagram
//this solution is for when both the string have same type of character //example: aabaabaa and aaba #include <bits/stdc++.h> using namespace std; int main() { string s,ptr; cout<<"Enter the first string:"<<endl; ... Add solution -
C++ 2022-02-24 21:15:04
sliding window maximum sum subarray
#include <bits/stdc++.h> using namespace std; int main() { int n; cout<<"enter the size of the array:"<<endl; cin>>n; int arr[n]; cout<<"Enter the elements of the array:"<<endl;... Add solution -
C++ 2022-02-23 04:00:07
pure virtual function in c++
#include <iostream> #include <string> //Pure virtual function or inteface allows us to define a function in a base class that doesn't have an implementation or definition in the base class and force sub classes to implement that function //P... Add solution -
C++ 2022-02-22 16:50:05
quicksort in code
// A full c++ quicksort algorithm no bs // quicksort in code #include <iostream> using namespace std; void QuickSort(int arr[], int start, int end); int Partition(int arr[], int start, int end); void SwapArrMem(int arr[], int a, int b); int main... Add solution -
Javascript 2022-02-22 13:00:04
what is the use of angularjs
please subscribe my channel - https://bit.ly/2Me2CfB AngularJS is a structural framework for dynamic web applications. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application components clearly and s... Add solution -
Other 2022-02-21 06:05:09
owl-spacing--m
.owl-spacing--m > * + * { margin-top: 1em; } Add solution