Category Archives: Uncategorized

Wanderful chatbot

Wanderful.io has published a chatbot, who can chat with you and help you find apartments in San Francisco and Bay area. Check it out: http://m.me/wanderful.io Advertisements

Posted in Uncategorized | Leave a comment

How to find an apartment and roommates

Find an interesting website to find apartment and roommates in the Bay Area and San Francisco: http://www.wanderful.io Wanderful is an online marketplace for apartments and roommates. By partnering with luxury apartments, they provide renters more options for apartments sharing besides … Continue reading

Posted in Apartment rental and roommate finding, Uncategorized | Leave a comment

How to design chatbot

Chatbot vs GUI Chatbot is an alternative User Interface besides website and app, providing service to users. The advantage of conversational: 1. Easy to understand and simple to use. 2. Provides permanent canonical record. 3. Feel far more human. The … Continue reading

Posted in Uncategorized | Leave a comment

Anagrams

Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. C++: 01 class Solution { 02 public: 03     vector<string> anagrams(vector<string> &strs) { 04         // Start typing your C/C++ … Continue reading

Posted in Uncategorized | Leave a comment

Connect the nodes in the same level

Given a binary tree, link all the nodes in the same level. C++: 01 void enList(Node** head, Node* cur) 02 { 03     if(cur==NULL) 04         return; 05     if(*head==NULL){ 06         cur->prv=cur; 07         cur->next=cur; … Continue reading

Posted in Uncategorized | Leave a comment

Word Search

Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or vertically neighboring. The same letter cell may … Continue reading

Posted in Uncategorized | 3 Comments

Implement strstr() to find a substring in a string

Write C code to implement the strstr (Search for a substring) function. Do not use any system library such as strlen. Sponsored: https://www.wanderful.io has published a chatbot, who can chat with you and help you find apartments in San Francisco … Continue reading

Posted in String, Uncategorized | Leave a comment