Skip to content
View Akshayprmar's full-sized avatar
💭
learning new things..
💭
learning new things..

Block or report Akshayprmar

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Akshayprmar/README.md

Interview Question :-

Q:1:

let race = function() {
  setTimeout(() => console.log("timeout"), 0);
  setImmediate(() => console.log("immediate"));
  process.nextTick(() => console.log("nextTick"));
  console.log("current event loop");
}
race()

O/P:

current event loop
nextTick
timeout
immediate

Q2: Find Target Value

function findPair(array,target){
  array.sort(function(a,b){return a-b})
  console.log(array)
  let firstIndex=0
  let lastIndex =array.length-1
  let finalArray=[]
  while(firstIndex<lastIndex){
      let sum =array[firstIndex]+array[lastIndex]
      console.log("sum",sum)
      if(sum===target){
          finalArray.push(`${array[firstIndex]},${array[lastIndex]}`)
          console.log("target",sum)
          firstIndex++
          lastIndex--
      }else if(sum<target){   
          firstIndex++
          console.log("firstIndex",firstIndex)
      }else{
          lastIndex--
          console.log("lastIndex",lastIndex)
      }
  }
    console.log(finalArray) 
}

findPair([1,2,3,4,5,6,7,9],10)

Q:

const promise1 = Promise.resolve(3)

async function abc () {
  let data = await promise1
  console.log(data) //3
  return data
}
console.log('****', abc()) //Promise { <pending> }

Other Topics

Event loop
concurrency
io
close
non blocking io
API
protocol
url Desiging
Hosting
promise and .all and fail cases
Object key finding Complexity - O(N)
HATEOAS

From <https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api> 



Indexing
DynamoDB
Global Positionining Indexing
Single Table Desiging
IIFE
Micro Service Architecture


-OLAP and OLDP
-ideapotenstional such as GET,PUT,DELETE
- API Standard Rules
-Optimize API RESPONSE
   - DATABASE
-Caching

js
node js
react js
typescript
docker
aws
tdd- jest/jasmine/karma- equivalent
scrum environment
postgresql- DB
hands on on ds/algos
 
 
no sql db- mongo, dynamo
radis cache
kafka/ rabbit/ kinesis- msg streaming services
vue js- good to have
 
 
good to know jenkins and kubernetes
 
 
services
deployment
unit test cases- write own
closures/ scope- js
js is oops? it support oops
current trends in js
current ecma script standard

Popular repositories Loading

  1. coding-Question coding-Question Public

    C++ 2

  2. coreui-with-redux-react coreui-with-redux-react Public

    JavaScript 2 6

  3. Amazon-preparation Amazon-preparation Public

    Data-structure and algorithm

    PHP 1

  4. sytem_design_interview_Information sytem_design_interview_Information Public

    1

  5. countries_cities_list countries_cities_list Public

    all over world country and city list

    JavaScript 1

  6. system-design-interview system-design-interview Public

    PHP 1