Skip to content

Instantly share code, notes, and snippets.

View dkp1903's full-sized avatar
🎯
Focusing

Dushyant Pathak dkp1903

🎯
Focusing
View GitHub Profile
@dkp1903
dkp1903 / LinkedListCreate.cpp
Created May 22, 2021 03:07
A modular object oriented class based implementation of Linked List
#include<bits/stdc++.h>
using namespace std;
class Node {
int key;
Node* next;
public:
int getKey() {
return key;
ServerResponse {
_events: [Object: null prototype] { finish: [Function: bound resOnFinish] },
_eventsCount: 1,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
@ ./src/index.js
ERROR in ./src/pages/LanguageSettings/LanguageSettings.js
Module not found: Error: Can't resolve '../../batteries/components/shared/ErrorToaster' in 'F:\19-9 and later\Projects\arc-dashboard\src\pages\Lan
guageSettings'
@ ./src/pages/LanguageSettings/LanguageSettings.js 56:0-74 371:86-98
@ ./src/pages/LanguageSettings/index.js
@ ./src/components/AppLayout/AppsRouteContainer.js
@ ./src/components/AppLayout/index.js
@ ./src/pages/AppWrapper/AppWrapper.js
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
int duper(vi a)
{
int slow = a[0];
int fast = a[a[0]];
while(fast != slow)
#define vector<int> vi;vi NGE(vi a){ stack<int>s; vi next(a.size()); int n = a.size(); for(int i = n-1; i >= 0; i--) { while(!s.empty() && s.top() <= a[i]) s.pop(); if(s.empty()) next[i] = -1; else next[i] = s.top();
s.push(a[i]); }
return next;}
# Step 1: defining the likelihood function
def likelihood(y,pi):
import numpy as np
ll=1
ll_in=range(1,len(y)+1)
for i in range(len(y)):
ll_in[i]=np.where(y[i]==1,pi[i],(1-pi[i]))
ll=ll*ll_in[i]
return ll
import { AppPage } from './app.po';
import { browser, by, logging, element } from 'protractor';
import { protractor } from 'protractor/built/ptor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
<div id="dash" style="margin:50px">
<div class="ui-g ui-fluid">
<div class="ui-g-12 ui-md-3" >
<p-card header="Select/Add Stock: " >
<div class="wrapper-1">
<div>
<select
[(ngModel)] = "defaultStock"
(ngModelChange) = 'catcher($event)'>
<option
.dropdown:hover .dropdown-content { display: block; border-radius: 5px;}
::ng-deep .chart {
background-color: rgb(68, 117, 117) !important;
color: rgb(252, 252, 252) !important;
}
.btn:hover{
font-weight:700;
}